×
Support Offline :
Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time:
Our Time:
Forum
JUX Member Forum - Restricted to Members Only
JUX Mega Menu Extensions
JUX Mega Menu
Error in menu when changing php 7.1
Error in menu when changing php 7.1
Less
More
Posts: 2
Thank you received: 0
5 years 8 months ago #25176
by Luis Alfonso Martínez A.
When updating the php version of the server, an error appears in the Jux Megamenu component
Warning: A non-numeric value encountered in /home4/pvirtual/public_html/modules/mod_jux_megamenu/helper.php on line 620
what is there to do
Please Log in or Create an account to join the conversation.
Less
More
Posts: 4926
Karma: 49
Thank you received: 334
5 years 8 months ago #25184
by HaiND
Hi again
Thank you for feedback us, I will instructions custom it
in file: ...modules\mod_jux_megamenu\helper.php
you can edit from line 611 to line 621
for ($col = 0; $col < $cols; $col++) {
$colw = $this->items[$pid]->megaparams->get('colw' . ($col + 1), 0);
if (!$colw)
$colw = $this->items[$pid]->megaparams->get('colw');
if (is_null($colw) || !is_numeric($colw))
$colw = $this->getParam('megacss-colwidth', 200);
//$colw = 200;
if (is_null($colw) || !is_numeric($colw))
$colw = 200;
$width += $colw;
}
edit:
for ($col = 0; $col < $cols; $col++) {
$colw = $this->items[$pid]->megaparams->get('colw' . ($col + 1), 0);
if (!$colw){
$colw = $this->items[$pid]->megaparams->get('colw');
}
if (is_null($colw) || !is_numeric($colw)){
$colw = $this->getParam('megacss-colwidth', 200);
}
//$colw = 200;
if (is_null($colw) || !is_numeric($colw)){
$colw = 200;
$width += $colw;
}
}
Hope it will help you
Thanks
Best Regards
--HaiND--
Please Log in or Create an account to join the conversation.
Forum
JUX Member Forum - Restricted to Members Only
JUX Mega Menu Extensions
JUX Mega Menu
Error in menu when changing php 7.1
Time to create page: 0.048 seconds