PHP 7.2 Throws Warning Message in maximenuckmobile

PHP 7.2 Throws Warning Message in maximenuckmobile was created by jimbrooking

Posted 6 years 5 months ago #46035
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.

Replied by ced1870 on topic PHP 7.2 Throws Warning Message in maximenuckmobile

Posted 6 years 5 months ago #46042
Hi
could you confirm the version of the maximenu mobile plugin that you have ?
CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by jimbrooking on topic PHP 7.2 Throws Warning Message in maximenuckmobile

Posted 6 years 5 months ago #46061
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.

Replied by ced1870 on topic PHP 7.2 Throws Warning Message in maximenuckmobile

Posted 6 years 5 months ago #46063
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

by ced1870

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

Replied by jimbrooking on topic PHP 7.2 Throws Warning Message in maximenuckmobile

Posted 6 years 5 months ago #46064
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.

Replied by ced1870 on topic PHP 7.2 Throws Warning Message in maximenuckmobile

Posted 6 years 5 months ago #46071
it is ok now, the 2.0.22 version fixes this :)

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: jimbrooking

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

Time to create page: 0.687 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 795 guests and one member online