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

exclamation-circle Error in menu when changing php 7.1

More
5 years 9 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.

More
5 years 9 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.

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