vdwerff
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problems when upgrading PHP from 5.6 to 7(.3)Adnan, this works! And now for real ??
Thank you very muchForum: Fixing WordPress
In reply to: Problems when upgrading PHP from 5.6 to 7(.3)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 ;
?>Forum: Fixing WordPress
In reply to: Problems when upgrading PHP from 5.6 to 7(.3)Thank you so much Adnan!
This works perfectly. Thank you for your time and have a wonderful day.
Forum: Fixing WordPress
In reply to: Problems when upgrading PHP from 5.6 to 7(.3)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
In reply to: Problems when upgrading PHP from 5.6 to 7(.3)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.