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

exclamation-circle Error after changing to PHP 7.2

More
6 years 1 month ago #22794 by Alexey
Email send

Best Regards
Alexey

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

More
6 years 1 month ago #22797 by AGab
Yes it may not be the exact same problem but often in the answer provides guidance giving us an oppty to make the correction in a similar situation. Mine I think I posted is with the coming soon extension. Thanks
a

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

More
6 years 1 month ago #22802 by HaiND
Hi again
I have reply you via email , please check
if still have problem, please contact us, pleased to assist you
Thanks

Best Regards
--HaiND--

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

More
6 years 1 month ago #22806 by Alexey
Hi
I reply for your answer

Best Regards
Alexey

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

More
5 years 10 months ago #24132 by GLWBC

HaiND wrote: 2: with problem line 747
you can edit from line 737 to line 747

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('megacss3-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('megacss3-colwidth', 200);
}
//$colw = 200;
if (is_null($colw) || !is_numeric($colw)){
$colw = 200;
}
$width += $colw;
}

Hope it will help you
Thanks

This did not work for me for the error on line 747. I fixed this by inserting the following line:
(int)$width = 0;
before line 737, so that the code now looks like:
if (!$width) {
    (int)$width = 0;
    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('megacss3-colwidth', 200);
            //$colw = 200;
        if (is_null($colw) || !is_numeric($colw))
            $colw = 200;
        $width += $colw;
    }
}

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

More
5 years 10 months ago #24136 by HaiND
Hi again
Sorry for late reply,
if still have problem, please contact us, pleased to assist you
Thanks

Best Regards
--HaiND--

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

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