• halo, I get a warning on my website, how is that possible?

    Warning: Attempt to read property “cap_key” on null in /public_html/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 4662

    [04-Feb-2024 18:24:46 UTC] PHP Warning: Attempt to read property “name” on bool in /wp-admin/nav-menus.php on line 1215
    [04-Feb-2024 18:25:35 UTC] PHP Warning: Attempt to read property “name” on bool in /public_html/wp-admin/nav-menus.php on line 1215
    [04-Feb-2024 18:25:41 UTC] PHP Warning: Attempt to read property “cap_key” on null in /public_html/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 4662
    [04-Feb-2024 18:25:41 UTC] PHP Warning: Attempt to read property “name” on bool in /public_html/wp-admin/nav-menus.php on line 1215
    [04-Feb-2024 18:25:52 UTC] PHP Warning: Attempt to read property “cap_key” on null in /public_html/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 4662
    [04-Feb-2024 18:25:52 UTC] PHP Warning: Attempt to read property “name” on bool in /public_html/wp-admin/nav-menus.php on line 1215

    this happens when I add a menu item to any menu such as the main menu. After saving I get this message

    • This topic was modified 4 months, 1 week ago by Mati.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    That looks like one of those “this should never happen” warnings. It suggests that either something is updating metadata for a non-existent user, or an existing user cannot be loaded for some reason.

    Anyway, the warning itself should be easy to fix. Please try the development version of the plugin – it includes a patch for this.

    Thread Starter Mati

    (@mattheus)

    thank you, i replace the plugin but still i get a error a php warning in my debug log

    [05-Feb-2024 19:17:28 UTC] PHP Warning: Attempt to read property “name” on bool in /public_html/wp-admin/nav-menus.php on line 1215
    [05-Feb-2024 19:17:34 UTC] PHP Warning: Attempt to read property “name” on bool in /wp-admin/nav-menus.php on line 1215
    [05-Feb-2024 19:18:35 UTC] PHP Warning: Attempt to read property “name” on bool in /wp-admin/nav-menus.php on line 1215

    • This reply was modified 4 months, 1 week ago by Mati.
    Plugin Author Janis Elsts

    (@whiteshadow)

    Those are different warnings and they look like they might not be related to this plugin. As as test, maybe you could deactivate the plugin for a day (for example) and see if new warnings stop appearing? If they still show up, they’re probably caused by something else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.