try to enable WP_DEBUG or check your php logs to see if there’s any error. or to narrow down the problem try to temporarily
– deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems
Debug gives me many errors. I do not know how to fix them. And what could be the problem.
Deactivating wont work.
The default theme works fine!
So what the best next step?
These errors do I see when I click on a event:
Notice: Undefined offset: 0 in /home/dennis/domains/kvdehuier.nl/public_html/wp-content/themes/resportsive/functions.php on line 377
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/dennis/domains/kvdehuier.nl/public_html/wp-content/themes/resportsive/functions.php on line 377
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/dennis/domains/kvdehuier.nl/public_html/wp-content/themes/resportsive/functions.php on line 377
That’ll be the cause!
Take a look at line 377 of functions.php to see what that line is doing. Something is wrong with it.
If you’re not comfortable with editing code then you will need to contact the developer of the theme in order to get that fixed.
Cheers,
Phil
Hmm… this is the code:
Line 377 is this line: echo get_category_parents($category[0], true,’ ‘ . $delimiter . ‘ ‘);
//If you have a single post assigned to one category.
//If you don’t set a post to a category, WordPress will assign it a default category.
if ($num_cat <=1) //I put less or equal than 1 just in case the variable is not set (a catch all).
{
echo get_category_parents($category[0], true,’ ‘ . $delimiter . ‘ ‘);
//Display the full post title.
echo ‘ ‘ . get_the_title();
}
Fixed it myself with this line:
echo is_wp_error( $cat_parents = get_category_parents($category[0], true,’ ‘ . $delimiter . ‘ ‘)) ? ” : $cat_parents;