Is there any more to the HTTP error message? If so, could you post a screenshot of the error?
Thanks
Thanks for the screenshot. Would it be possible to try a couple of things to track this issue down?
Can you try uploading another image whilst check your browser’s debugging console for errors? For instructions on how to do this, see https://deliciousbrains.com/wp-migrate-db-pro/doc/debugging-browser-console-errors/.
Then could you edit your wp-config.php file to allow debugging (http://codex.ww.wp.xz.cn/Editing_wp-config.php#Debug) and add instead of define( 'WP_DEBUG', false ); this code:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', true );
Then when you next upload some media and get the error, can you check your wp-content/debug.log file for any errors that might have been thrown.
Feel free to post any logs or error messages to me here or on the issue on GitHub – https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/183
Cheers
Thanks for the reply, I get these errors:
Fatal error: Uncaught exception 'Aws\Common\Exception\InvalidArgumentException' with message 'EU is not a valid region for Amazon Simple Storage Service' in /var/www/html/.../public_html/wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php:131
Stack trace:
#0 /var/www/html/.../public_html/wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php(183): Aws\Common\Client\AbstractClient::getEndpoint(Object(Guzzle\Service\Description\ServiceDescription), 'EU', 'https')
#1 /var/www/html/.../public_html/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php(764): Aws\Common\Client\AbstractClient->setRegion('EU')
#2 /var/www/html/.../public_html/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php(256): Amazon_S3_And_CloudFront->set_s3client_region(Array)
#3 [internal function]: Amazon_S3_And_CloudFront->wp_update_attachment_metadata(Array, 3114) #4 /var/www/html/... in /var/www/html/.../public_html/wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php on line 131
Awesome thanks for that, that helps!
How long ago was the bucket created? In your AWS console, what does it say as the region of that bucket?
Version 0.7.2 has just been released with this fixed – let us know if you have further issues.
Thanks for the swift update! It works now.