Support » Plugin: Multilevel Navigation Menu » Deprecated: Non-static method

  • Resolved jamesmohr

    (@jamesmohr)


    Fedora release 31 (Thirty One)
    PHP 7.3.17
    Wordpress 5.5

    I have two sites running on my server, both WP version 5.5 and both have Version 1.0.1 of the Multilevel Navigation Menu. One works fine and in the other I am getting these message on every page (as far as I can see):

    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_register_menu() should not be called statically in /data/home/linux-tu/public_html/wp-includes/class-wp-hook.php on line 287

    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_add_menu() should not be called statically in /data/home/linux-tu/public_html/wp-includes/class-wp-hook.php on line 287

    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_setting_display() should not be called statically in /data/home/linux-tu/public_html/wp-includes/class-wp-hook.php on line 287

    Notice: Undefined variable: mnmwp_menu_shortcode in /data/home/linux-tu/public_html/wp-content/plugins/multilevel-navigation-menu/multilevel-navigation-menu.php on line 285

    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_assets() should not be called statically in /data/home/linux-tu/public_html/wp-includes/class-wp-hook.php on line 287

    When I deactivate the plugin, the messages do not appear.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jamesmohr

    (@jamesmohr)

    I figured it out!

    Site 1: wp-config.php:define( ‘WP_DEBUG’, true);
    Site 2: wp-config.php:define( ‘WP_DEBUG’, false );

    Setting WP_DEBUG to false in Site 1 did the trick.

    Plugin Author Laxman Prajapati

    (@laxman-prajapati)

    Done, Thanks!

    This is not really a fix. It just hides the messages. Are you working on a fix for these issues? They appear frontend and backend:

    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_register_menu() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287
    
    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_add_menu() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287
    
    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_setting_display() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287
    
    Notice: Undefined variable: mnmwp_menu_shortcode in /Users/username/Sites/blah/web/app/plugins/multilevel-navigation-menu/multilevel-navigation-menu.php on line 285
    
    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_assets() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287
    
    Deprecated: contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /Users/username/Sites/blah/web/wp/wp-includes/functions.php on line 5234
    
    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_menu_selection_admin_notice() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287
    
    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_menu_page() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287

    In the admin and:

    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_register_menu() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287
    
    Deprecated: Non-static method Multilevel_Navigation_Menu_WP::mnmwp_frontend_assets() should not be called statically in /Users/username/Sites/blah/web/wp/wp-includes/class-wp-hook.php on line 287

    Frontend.

    Thanks!

    • This reply was modified 8 months, 1 week ago by davoc.
    Plugin Author Laxman Prajapati

    (@laxman-prajapati)

    Hello @davoc

    We will cover this on next update.

    Thanks,
    Laxman P

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated: Non-static method’ is closed to new replies.