Menu Bar generating errors?

Menubar Menu Bar generating errors?

  • Author
    Post
  • #9262 Reply
    Frank
    Guest

    When I posted a question about these errors on the WP help forums it was suggested that the menubar plugin was generating the errors.

    Notice: Trying to get property of non-object in /usr/share/wordpress/wp-includes/link-template.php on line 317

    Notice: Trying to get property of non-object in /usr/share/wordpress/wp-includes/link-template.php on line 331

    You can see an example here: https://pianoworld.com/find-a-professional/piano-dealers/
    Any idea what might be causing this and how it can be fixed?

    Thank you for any help.
    Best,
    Frank B.

    #9263 Reply
    andrea
    Plugin Author

    Hi Frank,

    That can happen when you add a page to a menu, then remove the page without removing it from the menu.

    In the page you mentioned the last menu item is empty, and that could be the problem. Most likely you can remove the PHP Notice if you remove the last menu item from your menu.

    #9264 Reply
    Frank
    Guest

    Wow, that was easy.
    Thank you for the quick reply Andrea, it appears that was the issue.

    Best,

    Frank B. / Piano World

Reply to: Menu Bar generating errors?
My Information