I'm having difficulties after updating the site's php, wordpress is returning error.
Before he informede rro Warning: Declaration of my_Walker_CategoryDropdown::start_el(&$output, $category, $depth, $args) should be compatible with Walker_CategoryDropdown::start_el(&$output, $category, $depth = 0, $args = Array, $id = 0)
adjusted to: class my_Walker_CategoryDropdown extends Walker_CategoryDropdown {
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0) {
$pad = str_repeat(' ', $depth * 3);
after the adjustment, the error disappeared and another one appeared now
Warning: Undefined property: WP_Error::$cat_ID on line 174
the code on that line is like this
add_filter('admin_footer_text', 'remove_footer_admin');
$category = get_category( get_query_var( 'cat' ) );
$cat_id = $category->cat_ID;
$url = get_category_link( $cat_id );
echo $url;
someone help me please