Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Non-Object error in Nav-Menu.php

Discussion in 'Misc WordPress Requests' started by pianoworldguy, Nov 19, 2017.

  1. pianoworldguy

    Guest

    Non-Object error in Nav-Menu.php, by pianoworldguy

    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/cus...nel]=nav_menus&return=/wp-admin/nav-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.

    Non-Object error in Nav-Menu.php
     
    #1

Share This Page

Web Hosting