Forums

Object cannot be converted to string error (2 posts)

  1. Gadgetgod
    Member
    Posted 1 year ago #

    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

  2. Baycentric
    Member
    Posted 11 months ago #

    Try updating the WooFramework. Admin > Theme Menu > Update Framework.

Topic Closed

This topic has been closed to new replies.

About this Topic