Title: Strict standards error message
Last modified: August 21, 2016

---

# Strict standards error message

 *  [difreo](https://wordpress.org/support/users/difreo/)
 * (@difreo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/strict-standards-error-message-1/)
 * Hi, could You please update the code to remove strict standards errors? It affects
   lines 1257 to 1291 of post-expirator.php
    is `function start_lvl(&$output, $depth,
   $args) {` should be `function start_lvl(&$output, $depth = 0, $args = array()){`
   full, changed code:
 *     ```
       class Walker_PostExpirator_Category_Checklist extends Walker {
       	var $tree_type = 'category';
       	var $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); //TODO: decouple this
   
       	var $disabled = '';
   
       	function setDisabled() {
       		$this->disabled = 'disabled="disabled"';
       	}
   
       	function start_lvl(&$output, $depth = 0, $args = array()) {
       		$indent = str_repeat("\t", $depth);
       		$output .= "$indent<ul class='children'>\n";
       	}
   
       	function end_lvl(&$output, $depth = 0, $args = array()) {
       		$indent = str_repeat("\t", $depth);
       		$output .= "$indent</ul>\n";
       	}
   
       	function start_el(&$output, $category, $depth = 0, $args = array(), $current_object_id = 0) {
       		extract($args);
       		if ( empty($taxonomy) )
       			$taxonomy = 'category';
   
       		$name = 'expirationdate_category';
   
       		$class = in_array( $category->term_id, $popular_cats ) ? ' class="expirator-category"' : '';
       		$output .= "\n<li id='expirator-{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="expirator-in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' '.$this->disabled.'/> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>';
       	}
   
       	function end_el(&$output, $category, $depth = 0, $args = array()) {
       		$output .= "</li>\n";
       	}
       }
       ```
   
 * [https://wordpress.org/plugins/post-expirator/](https://wordpress.org/plugins/post-expirator/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rose](https://wordpress.org/support/users/thorned-rose/)
 * (@thorned-rose)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/strict-standards-error-message-1/#post-5015677)
 * [@difreo](https://wordpress.org/support/users/difreo/) Thanks for this – fixed
   the plugin not working for me 🙂
 *  [Iamdez](https://wordpress.org/support/users/iamdez/)
 * (@iamdez)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/strict-standards-error-message-1/#post-5015711)
 * I’m also experiencing these. Here’s the diff:
 *     ```
       Index: post-expirator.php
       ===================================================================
       --- post-expirator.php  (revision 316)
       +++ post-expirator.php  (working copy)
       @@ -1264,17 +1264,17 @@
                       $this->disabled = 'disabled="disabled"';
               }
   
       -       function start_lvl(&$output, $depth, $args) {
       +       function start_lvl(&$output, $depth = 0 , $args = Array() ) {
                       $indent = str_repeat("\t", $depth);
                       $output .= "$indent<ul class='children'>\n";
               }
   
       -       function end_lvl(&$output, $depth, $args) {
       +       function end_lvl(&$output, $depth = 0, $args = Array() ) {
                       $indent = str_repeat("\t", $depth);
                       $output .= "$indent</ul>\n";
               }
   
       -       function start_el(&$output, $category, $depth, $args) {
       +       function start_el(&$output, $category, $depth = 0, $args = Array(), $current_object_id = 0 ) {
                       extract($args);
                       if ( empty($taxonomy) )
                               $taxonomy = 'category';
       @@ -1285,7 +1285,7 @@
                       $output .= "\n<li id='expirator-{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="expirator-in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' '.$this->disabled.'/> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>';
               }
   
       -       function end_el(&$output, $category, $depth, $args) {
       +       function end_el(&$output, $category, $depth = 0, $args = Array() ) {
                       $output .= "</li>\n";
               }
        }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Strict standards error message’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Iamdez](https://wordpress.org/support/users/iamdez/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/strict-standards-error-message-1/#post-5015711)
 * Status: not resolved