Object cannot be converted to string error
-
Hi, i recently swapped themes to a better “Mortar” theme i bought from Woo themes.
Now on the majority of my posts i get the error :
“Catchable fatal error: Object of class WP_Error could not be converted to string in D:\Hosting\7493265\html\wp-content\themes\mortar\functions\admin-functions.php on line 620”These are lines 618 – 621:
“// no cache files – let’s finally resize it
$new_img_path = image_resize( $file_path, $width, $height, $crop );
$new_img_size = getimagesize( $new_img_path );
$new_img = str_replace( basename( $image_src[0] ), basename( $new_img_path ), $image_src[0] );”So line 620 is:
“$new_img_size = getimagesize( $new_img_path );”Is there something wrong with this line?
Any help would be greatly appreciated, thank you for your time.
-Michael – Gagdetgod
- The topic ‘Object cannot be converted to string error’ is closed to new replies.