Menubar › Menu Bar generating errors?
September 30, 2017 23:23 UTC #9262FrankGuest
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.
Frank B.October 1, 2017 09:21 UTC #9263andreaPlugin Author
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.October 1, 2017 14:43 UTC #9264FrankGuest
Wow, that was easy.
Thank you for the quick reply Andrea, it appears that was the issue.
Frank B. / Piano World