This is the line 59 that is causing the issue
I’ve commented it out and it seems to work now, but I can’t seem to work out why its doing it
if ($cat->parent != 0) {
$output .= get_category_parents($cat->term_id, true, ” “.$sep.” “);
} else {
//$output .= ‘term_id).'”>’.$cat->name.’ ‘.$sep.’ ‘;
}