Non-Object error in Nav-Menu.php
-
Error messages show up in admin when working on menus
Wondering if this is related to the problem I’m having with our menu no longer filling the entire allotted space.
https://pianoworld.com/ (note the black background showing on either side).Errors show up when working in admin here…
(https://pianoworld.com/wp-admin/customize.php?autofocus%5Bpanel%5D=nav_menus&return=%2Fwp-admin%2Fnav-menus.php)Notice: Trying to get property of non-object in /usr/share/wordpress/wp-includes/nav-menu.php on line 780
Notice: Trying to get property of non-object in /usr/share/wordpress/wp-includes/nav-menu.php on line 780
Notice: Trying to get property of non-object in /usr/share/wordpress/wp-includes/nav-menu.php on line 784
This is the section of code between lines 779 and 785
/** This filter is documented in wp-includes/post-template.php */
$original_title = apply_filters( ‘the_title’, $original_object->post_title, $original_object->ID );if ( ” === $original_title ) {
/* translators: %d: ID of a post */
$original_title = sprintf( __( ‘#%d (no title)’ ), $original_object->ID );
}Any help/suggestions would be appreciated.
Best,
Frank B.The page I need help with: [log in to see the link]
- The topic ‘Non-Object error in Nav-Menu.php’ is closed to new replies.