WordPress.org

Support

Support » How-To and Troubleshooting » Strict Standards: Declaration of Walker_Nav_Menu

Strict Standards: Declaration of Walker_Nav_Menu

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    razaali75

    @razaali75

    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() )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strict Standards: Declaration of Walker_Nav_Menu’ is closed to new replies.