PHP 7.2 Throws Warning Message in maximenuckmobile

More
7 years 1 month ago #46035 by jimbrooking
I tried to set my PHP version to PHP 7.2 and the following warning message appears at the top of pages using MaxiMenuCK:


<br />
<b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/home/fearrin1/public_html/dev/plugins/system/maximenuckmobile/maximenuckmobile.php</b> on line <b>97</b><br />
<!DOCTYPE html>

(DOCTYPE included to show message placement.)

Thanks.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #46042 by ced1870
Hi
could you confirm the version of the maximenu mobile plugin that you have ?
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #46061 by jimbrooking
Hi

It's 2.0.17.

I see that 2.0.21 is available. Would that correct the problem?

Thanks.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #46063 by ced1870
I have checked, the code is similar but not on the same line.
please try to edit the file and replace
Code:
if (count($gfont_urls)) {
with
Code:
if ($gfont_urls && count($gfont_urls)) {

and tell me

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #46064 by jimbrooking
Yes, that corrected the problem. If you incorporate that change, please let me know so I can update the plugin on my site.

Thanks!

Jim

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #46071 by ced1870
it is ok now, the 2.0.22 version fixes this :)

Joomlack Webmaster and Developer
The following user(s) said Thank You: jimbrooking

Please Log in or Create an account to join the conversation.

Time to create page: 0.215 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 718 guests and 3 members online