Support » Plugin: WP Offload S3 Lite » Fatal error: Cannot use object of type WP_Error as array in /amazon-s3-and-cloud

Viewing 2 replies - 1 through 2 (of 2 total)
  • The fix for this has just been released as 0.9.5, let us know how that goes and thanks for your patience.

    Hello, I updated the plugin and fixed the error: WP_Error array as in …. wp-includes / media.php on line 196.

    But now, some products give me this error: Fatal error: Can not use object of type WP_Error as array in / var / www / html / wp-content / plugins / amazon-s3-and-CloudFront / classes / amazon-s3-and -cloudfront.php on line 1159

    I have commented the lines 1159-1165.

    These are:

    // We only need to encode said resized image files Error Can not use object of type array as WP_Error
    / * If (! Isset ($ data [‘sizes’])) {
    return $ data;
    }

    foreach ($ data [‘sizes’] as $ key => $ size) {
    $ data [‘sizes’] [$ key] [‘file’] = $ this-> encode_filename_in_path ($ data [‘sizes’] [$ key] [‘file’]);
    } * /

    So far, I’ve managed to fix the error.

    Any suggestions?

    Thank you for your great plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Cannot use object of type WP_Error as array in /amazon-s3-and-cloud’ is closed to new replies.