You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code on line 337 of /core/menu/megamenu.php needs to be changed from $width += $colw; to $width = $colw; (remove the +).
This code is part of a if-statement that first of all tests for !$width. The error is thrown because in PHP7.1, it seems that you can no longer do mathematical operations (addition, in this case via the +=) on a null variable. The + should not have been used in the code at all because the if-statement already has established that $width is undefined or 0.
The text was updated successfully, but these errors were encountered:
The code on line 337 of /core/menu/megamenu.php needs to be changed from
$width += $colw;
to$width = $colw;
(remove the +).This code is part of a if-statement that first of all tests for
!$width
. The error is thrown because in PHP7.1, it seems that you can no longer do mathematical operations (addition, in this case via the +=) on a null variable. The + should not have been used in the code at all because the if-statement already has established that $width is undefined or 0.The text was updated successfully, but these errors were encountered: