• Resolved Fastmover

    (@fastmover)


    PHP Strict standards warnings filling error log:

    Declaration of Conditional_Widgets_Walker_Page_Checklist::start_lvl() should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array)

    Declaration of Conditional_Widget_Walker_Category_Checklist::end_lvl() should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array)

    Declaration of Conditional_Widget_Walker_Category_Checklist::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0)

    Declaration of Conditional_Widget_Walker_Category_Checklist::end_el() should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array)

    These simply mean the object you’ve extended, being the Walker, needs to have the parameters match exactly to the parent class you are extending because they are defined as Abstract methods. More information about this can be found at:

    To fix these issues you, you simply need to update both walkers defined in cets_conditional_widgets.php

    This is as simple as changing lines 517 and 552 from:
    function start_lvl(&$output, $depth, $args) {
    to:
    function start_lvl( &$output, $depth = 0, $args = array() ) {

    Change lines 522 and 557 from:
    function end_lvl(&$output, $depth, $args) {
    to:
    function end_lvl( &$output, $depth = 0, $args = array() ) {

    Change line 527 and 562 from:
    function start_el(&$output, $category, $depth, $args) {
    to:
    function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {

    Change lines 534 and 568 from:
    function end_el(&$output, $category, $depth, $args) {
    to:
    function end_el( &$output, $object, $depth = 0, $args = array() ) {

    This will fix all these PHP Strict standards warnings showing up in error logs when the error logging settings allow logging of strict standards, which i believe most do.

    I could very quickly make these changes if given permission to.

    https://wordpress.org/plugins/conditional-widgets/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error log filling up with PHP Strict standards warnings from this plugin.’ is closed to new replies.