Title: Object cannot be converted to string error
Last modified: August 19, 2016

---

# Object cannot be converted to string error

 *  [Gadgetgod](https://wordpress.org/support/users/gadgetgod/)
 * (@gadgetgod)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/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_

Viewing 1 replies (of 1 total)

 *  [Baycentric](https://wordpress.org/support/users/baycentric/)
 * (@baycentric)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/object-cannot-be-converted-to-string-error/#post-2024835)
 * Try updating the WooFramework. Admin > Theme Menu > Update Framework.

Viewing 1 replies (of 1 total)

The topic ‘Object cannot be converted to string error’ is closed to new replies.

## Tags

 * [string](https://wordpress.org/support/topic-tag/string/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Baycentric](https://wordpress.org/support/users/baycentric/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/object-cannot-be-converted-to-string-error/#post-2024835)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
