WordPress.org

Ready to get started?Download WordPress

Forums

Error mesages in WordPress (addon development) (2 posts)

  1. AndyWalpole
    Member
    Posted 2 years ago #

    Hi folks,

    I'm just creating my first WordPress plugin.

    When I set the error message level to everything (-1) in the module I'm getting some odd error messages:

    Strict standards: Declaration of Walker_Category_Checklist::start_lvl() should be compatible with that of Walker::start_lvl() in C:\wamp\www\wordpress\wp-admin\includes\template.php on line 52

    As you would expect when I turn off strict errors it disappears

    When I alter the error reporting level in the config file to below I'm not receiving the strict error messages like above:

    define('WP_DEBUG', true); // false
    if (WP_DEBUG) {
      define('WP_DEBUG_LOG', false);
      define('WP_DEBUG_DISPLAY', true);
      error_reporting(-1);
    }

    As the error messages are strict the code will work fine but it has unsettled me a bit.

    Is this anything to worry about? What is causing it? I've searched for an answer on the net but I cannot find an explanation

  2. h0tw1r3
    Member
    Posted 2 years ago #

    It's simply stating:

    Walker_Category_Checklist::start_lvl(&output, $depth, $args)

    function does not accept the same arguments as it's parent class

    Walker::start_lvl(&output)

    It's not the best programming practice, but it won't make your site go boom boom or anything.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.