Title: vdwerff's Replies | WordPress.org

---

# vdwerff

  [  ](https://wordpress.org/support/users/vdwerff/)

 *   [Profile](https://wordpress.org/support/users/vdwerff/)
 *   [Topics Started](https://wordpress.org/support/users/vdwerff/topics/)
 *   [Replies Created](https://wordpress.org/support/users/vdwerff/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/vdwerff/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/vdwerff/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/vdwerff/engagements/)
 *   [Favorites](https://wordpress.org/support/users/vdwerff/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems when upgrading PHP from 5.6 to 7(.3)](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/)
 *  Thread Starter [vdwerff](https://wordpress.org/support/users/vdwerff/)
 * (@vdwerff)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/#post-12012720)
 * Adnan, this works! And now for real 🙂
    Thank you very much
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems when upgrading PHP from 5.6 to 7(.3)](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/)
 *  Thread Starter [vdwerff](https://wordpress.org/support/users/vdwerff/)
 * (@vdwerff)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/#post-12012618)
 * Sorry! I concluded to early, it seems the error is still happening.
 * _edit;_
    this is the code now:
 * }
    $mobilereparatie_walker= new mobilereparatie_walker();
 * class my_Walker_CategoryDropdown extends Walker_CategoryDropdown {
 *  function start_el(&$output, $category, $depth, $args, $id) {
    $pad = str_repeat(‘‘,
   $depth * 3);
 *  $cat_name = apply_filters(‘list_cats’, $category->name, $category);
    $output.
   = “\t<option class=\” ggg level-$depth\” value=\””.$category->slug.”\””; if (
   $category->term_id == $args[‘selected’] ) $output .= ‘ selected=”selected”‘; 
   $output .= ‘>’; $output .= $pad.$cat_name; if ( $args[‘show_count’] ) $output.
   = ‘  (‘. $category->count .’)’; if ( $args[‘show_last_update’] ) { $format = ‘
   Y-m-d’; $output .= ‘  ‘ . gmdate($format, $category->last_update_timestamp); }
   $output .= “</option>\n”; } } $mobilereparatie_walker_cat_d = new my_Walker_CategoryDropdown;?
   >
    -  This reply was modified 6 years, 8 months ago by [vdwerff](https://wordpress.org/support/users/vdwerff/).
    -  This reply was modified 6 years, 8 months ago by [vdwerff](https://wordpress.org/support/users/vdwerff/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems when upgrading PHP from 5.6 to 7(.3)](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/)
 *  Thread Starter [vdwerff](https://wordpress.org/support/users/vdwerff/)
 * (@vdwerff)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/#post-12012600)
 * Thank you so much Adnan!
 * This works perfectly. Thank you for your time and have a wonderful day.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems when upgrading PHP from 5.6 to 7(.3)](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/)
 *  Thread Starter [vdwerff](https://wordpress.org/support/users/vdwerff/)
 * (@vdwerff)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/#post-12012506)
 * Hi Adnan,
 * If i’m correct this is the piece of code which this occurs.
 * }
    $mobilereparatie_walker= new mobilereparatie_walker();
 * class my_Walker_CategoryDropdown extends Walker_CategoryDropdown {
 *  function start_el(&$output, $category, $depth, $args) {
    $pad = str_repeat(‘‘,
   $depth * 3);
 *  $cat_name = apply_filters(‘list_cats’, $category->name, $category);
    $output.
   = “\t<option class=\” ggg level-$depth\” value=\””.$category->slug.”\””; if (
   $category->term_id == $args[‘selected’] ) $output .= ‘ selected=”selected”‘; 
   $output .= ‘>’; $output .= $pad.$cat_name; if ( $args[‘show_count’] ) $output.
   = ‘  (‘. $category->count .’)’; if ( $args[‘show_last_update’] ) { $format = ‘
   Y-m-d’; $output .= ‘  ‘ . gmdate($format, $category->last_update_timestamp); }
   $output .= “</option>\n”; } } $mobilereparatie_walker_cat_d = new my_Walker_CategoryDropdown;?
   >
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems when upgrading PHP from 5.6 to 7(.3)](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/)
 *  Thread Starter [vdwerff](https://wordpress.org/support/users/vdwerff/)
 * (@vdwerff)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problems-when-upgrading-php-from-5-6-to-7-3/#post-12012167)
 * Hi Adnan,
 * Thank you for your quick response. I’ve checked the nav-walker.php file.
    It 
   looks like there are no lines with $args = Array anymore. All I see is $args 
   = array().
 * I’m I looking at the wrong direction or is there a different cause for the error?
 * Thanks in advance.

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