Skip to content

PHP7.1 "non-numeric value encountered" warning from /core/menu/megamenu.php #74

@jimmisonr

Description

@jimmisonr

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.


Linked Conversation

Conversation Subject:

Message:
No additional details provided

View Conversation


Linked Conversation

Conversation Subject: R: Problem with quix 5.2.2 on joomla 3

Message:
No additional details provided

View Conversation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions