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