Skip to content

Trying to access array offset on value of type bool #162

@capnolithyl

Description

@capnolithyl

We are currently switching our websites from PHP 7.4 to PHP 8 and encountered an issue in the WP dashboard (/wp-admin/index.php).

Warning: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/adminimize/inc-setup/dashboard.php on line 154

Here is the line in question:

$value['title'] = ($value['title'] == FALSE) ? [] : $value['title'];

I think there needs to be another check if $value is an array. I came across this a couple times since switching to PHP 8.

The warnings show up above the div#wpwrap about 70 times or so and make the dashboard nigh unusable. Sometimes the menu items just disappear. As soon as you're in one of the submenus the warnings disappear and you can use the dashboard normally as long as you don't go back to /wp-admin/index.php.

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