• Catchable fatal error: Object of class WP_Error could not be converted to string in /nfs/c06/h02/mnt/89623/domains/iamsteve.me/html/wp-includes/general-template.php on line 517

    i can’t figure out for the life of me what i did wrong, as most of the modifications to my site i had been doing were only to do with the blog posts page

    if you look at https://iamsteve.me – error
    if you look at https://iamsteve.me/blog – fine

    so i undone plugins i installed, removed some codes i added, checked the general-template.php line 517 – didn’t seem out of the ordinary heres the code;

    // Determines position of the separator and direction of the breadcrumb
    	if ( 'right' == $seplocation ) { // sep on right, so reverse the order
    		$title_array = explode( $t_sep, $title );
    		$title_array = array_reverse( $title_array );          // LINE 517
    		$title = implode( " $sep ", $title_array ) . $prefix;
    	} else {
    		$title_array = explode( $t_sep, $title );
    		$title = $prefix . implode( " $sep ", $title_array );
    	}
    
    	$title = apply_filters('wp_title', $title, $sep, $seplocation);
    
    	// Send it out
    	if ( $display )
    		echo $title;
    	else
    		return $title;

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Steve McKinney

    (@stemckinney)

    i commented out line 517, and it appears to be working, though i would like someone with far more knowledge than me to help out whether this is a fine solution or could point me in the direction to making it work with the line intact

    many thanks in advance

    edit: i commented the wrong line in the above post to show line 517, it is actually
    $title_array = explode( $t_sep, $title ); and it makes the titles of the page have an error in instead

    Thread Starter Steve McKinney

    (@stemckinney)

    bump

    I am having the same “Catchable Fatal Error” on general-template.php line 513. I am a complete newcomer when it comes to WordPress and would appreciate some help. It’s just the homepage I’m having this error on, and only if I set homepage to show posts instead of static page. Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Catchable fatal error” how to solve?’ is closed to new replies.