Menubar › Menu Bar generating errors?
-
AuthorPost
-
Frank
GuestWhen 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.andrea
Plugin AuthorHi 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.
Frank
GuestWow, that was easy.
Thank you for the quick reply Andrea, it appears that was the issue.Best,
Frank B. / Piano World
-
AuthorPost