WordPress.org

Ready to get started?Download WordPress

Forums

Strict Standards: Declaration of Walker_Nav_Menu (3 posts)

  1. AlexNeo
    Member
    Posted 1 year ago #

    Hello guys,

    i am working at a big project, which we are lunching next weeks.
    After updating XAMPP to a new php version, there are a lot of Strict Standards Errors in the admin area like:

    Strict Standards: Declaration of Walker_Nav_Menu_Edit::start_lvl() should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in C:\xampp\htdocs\wp\wp-admin\includes\ajax-actions.php on line 844

    Strict Standards: Declaration of Walker_Nav_Menu_Edit::end_lvl() should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in C:\xampp\htdocs\wp\wp-admin\includes\ajax-actions.php on line 844

    Strict Standards: Declaration of Walker_Nav_Menu_Edit::start_el() should be compatible with Walker::start_el(&$output, $object, $depth, $args, $current_object_id = 0) in C:\xampp\htdocs\wp\wp-admin\includes\ajax-actions.php on line 844

    Strict Standards: Declaration of Walker_Nav_Menu_Checklist::start_lvl() should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in C:\xampp\htdocs\wp\wp-admin\includes\ajax-actions.php on line 844

    Strict Standards: Declaration of Walker_Nav_Menu_Checklist::end_lvl() should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in C:\xampp\htdocs\wp\wp-admin\includes\ajax-actions.php on line 844

    Strict Standards: Declaration of Walker_Nav_Menu_Checklist::start_el() should be compatible with Walker::start_el(&$output, $object, $depth, $args, $current_object_id = 0) in C:\xampp\htdocs\wp\wp-admin\includes\ajax-actions.php on line 844

    These errors are form a class, wordpress is using.

    I think everything is working and at the live-system i will switch off those errors, but thats not the best solution...

    Does someone know, wether those errors are up against this intern wordpress class (maybe not latest version?!) or could my theme using this class incorrectly?

    thanks a lot!
    Alex

  2. pan69
    Member
    Posted 1 year ago #

    I have the same problem on my dev environment. I get the impression that its a PHP strict issue of some sort caused by a bug in the WordPress code base. I'm running PHP 5.3.10.

    Any ideas are welcome.

    Cheers,
    Luke

  3. razaali75
    Member
    Posted 10 months ago #

    hi
    same problem on my side, i was just set $depth = 0 only and error removed.
    i was omit this little error :)

    So
    "Your child class must use the same signature: three arguments, the first one passed by reference. Every difference will raise the error you got"

    this is the signature

    function start_lvl( &$output, $depth = 0, $args = array() )

Topic Closed

This topic has been closed to new replies.

About this Topic