PHP 7.2 Throws Warning Message in maximenuckmobile
- jimbrooking
- Offline Topic Author
- Junior Member
- Posts: 23
- Thanks: 1
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:
Thanks.
(DOCTYPE included to show message placement.)
<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>
Thanks.
by jimbrooking
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
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.
- jimbrooking
- Offline Topic Author
- Junior Member
- Posts: 23
- Thanks: 1
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.
It's 2.0.17.
I see that 2.0.21 is available. Would that correct the problem?
Thanks.
by jimbrooking
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
with
and tell me
please try to edit the file and replace
Code:
if (count($gfont_urls)) {
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.
- jimbrooking
- Offline Topic Author
- Junior Member
- Posts: 23
- Thanks: 1
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
Thanks!
Jim
by jimbrooking
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.709 seconds