Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

file Help needed with Jux Easy Mega menu

More
5 years 11 months ago #24194 by Mart-Marie
I get the following error when trying to activate Easy Mega Menu:

Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp7\htdocs\jpsport\modules\mod_jux_easy_megamenu\includes\menu\menu.php on line 119

Im running on PH 7.2 on localhost

The error refers to this section in the menu.php file
if (@$children[$id] && $level <= $maxlevel) {
foreach ($children[$id] as $v) {
$id = $v->id;
$list[$id] = $v;
$list[$id]->children = count(@$children[$id]);
$list[$id]->level = $level;
$list = $this->treerecurse($id, $list, $children, $maxlevel, $level + 1);
}
}

And seems to sprung form this update in PHP7.2
7.2.0 count() will now yield a warning on invalid countable types passed to the array_or_countable parameter.

You're assistance in matter will be highly appreciated.

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

More
5 years 11 months ago #24224 by HaiND
Hi Mart-Marie
Sorry for late reply, we have 1 holiday weekend
You can send information login back-end via email: This email address is being protected from spambots. You need JavaScript enabled to view it.
I will check it for you soon
Thanks

Best Regards
--HaiND--

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

More
5 years 10 months ago #24371 by Armin
I have the same php version running and there is the same problem occurring:
Warning: count(): Parameter must be an array or an object that implements Countable in modules/mod_jux_easy_megamenu/includes/menu/menu.php on line 119.

Have you a solution already?

thanks!

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

More
5 years 10 months ago #24377 by HaiND
Hi Armin
Thank you for feedback us
please go to source code: modules/mod_jux_easy_megamenu/includes/menu/menu.php on line 119.

$list[$id]->children = count(@$children[$id]);

edit

$list[$id]->children = count($children[1]);

hope it will help you
THanks

Best Regards
--HaiND--

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

More
5 years 10 months ago #24405 by Armin
The warning has disappeared with this code change. Thank you.
Now that I can edit the menu I realise that the column width does not work as it should. I've added a second column to a menu item und put both of them to width 6 with the result you can see in the image.

any idea? or is this problem a known one?

Thanks for your support!

Screenshot here:
cdn.pbrd.co/images/HYOW30f.png

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

More
5 years 10 months ago #24417 by HaiND
Hi again
Can may conflict CSS, you can send information login back-end via email: This email address is being protected from spambots. You need JavaScript enabled to view it.
I will check it for you soon
Thanks

Best Regards
--HaiND--

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

Moderators: Jackie
Time to create page: 0.078 seconds
Powered by Kunena Forum