• Hi,
    I want some help regarding PHP upgradation. Previously my website was running on PHP version 7.3 or 7.4, but lately when i upgraded to version 8.1, it is giving a lot of errors. The erros mostly occured on the search.php.

    Whenever I search some string, it fills the whole page with errors. also, the admin header, page content, and footer vanish.

    The errors are just like those below:

    
    WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN /HOME/U274843758/DOMAINS/TUTSINSIDER.COM/PUBLIC_HTML/WP-INCLUDES/CLASS-WALKER-NAV-MENU.PHP ON LINE 158
    
    WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN /HOME/U274843758/DOMAINS/TUTSINSIDER.COM/PUBLIC_HTML/WP-INCLUDES/CLASS-WALKER-NAV-MENU.PHP ON LINE 158
    
    WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN /HOME/U274843758/DOMAINS/TUTSINSIDER.COM/PUBLIC_HTML/WP-INCLUDES/CLASS-WALKER-NAV-MENU.PHP ON LINE 158
    
    WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN /HOME/U274843758/DOMAINS/TUTSINSIDER.COM/PUBLIC_HTML/WP-INCLUDES/CLASS-WALKER-NAV-MENU.PHP ON LINE 158
    
    WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN /HOME/U274843758/DOMAINS/TUTSINSIDER.COM/PUBLIC_HTML/WP-INCLUDES/CLASS-WALKER-NAV-MENU.PHP ON LINE 158
    
    WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN /HOME/U274843758/DOMAINS/TUTSINSIDER.COM/PUBLIC_HTML/WP-INCLUDES/CLASS-WALKER-NAV-MENU.PHP ON LINE
    

    Also, when I navigated to the wp_nav_menu() function in my theme and removed it, the search page worked fine. Further, when I navigated to the class-walker-nav-menu.php file and removed the specifically mentioned line, the page worked just fine.
    kindly help me if anybody knows about the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Tuts Insider

    (@tutsinsider)

    Also, I am using the below code to generate my site navigation.

    
    wp_nav_menu( 
      array(
    	'menu'              => 'footer-menu', 
    	'theme_location'    => 'footer_menu', 
    	'menu_id'           => 'footerMenu', 
    	'fallback_cb'       => 'false', 
    	) 
    );
    
    Moderator t-p

    (@t-p)

    when I navigated to the class-walker-nav-menu.php file and removed the specifically mentioned line, the page worked just fine.

    class-walker-nav-menu.php is a CORE file.

    As the adage goes, don’t modify core files (unless you know what you are doing in there and are aware of the limitations and drawbacks this imposes). Modifications can cause security risks, performance degradation, broken plugins/themes, you will lose all changes when you next update the WordPress, etc.

    Also, when I navigated to the wp_nav_menu() function in my theme and removed it, the search page worked fine.

    What theme are you using?

    Acquired from?

    Thread Starter Tuts Insider

    (@tutsinsider)

    First of all, I am using my own developed theme. Secondly, I not meddling with the core files, I was just checking and tracing the error associated with the wp_nav_menu(). I have added the code for wp_nav_menu() in the comment.

    Now, the situation is this, the navigation is working perfectly fine on all other pages, except for the search page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgrading PHP 8.1 results in a load of CLASS-WALKER-NAV-MENU.PHP errors’ is closed to new replies.