• 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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Seventeen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

    I have the same issue – did you find the responsible plugin/theme?

    Hi
    I have the same issue – did you find the responsible plugin/theme?

    Thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Non-Object error in Nav-Menu.php’ is closed to new replies.