• Resolved pixeledmedia

    (@pixeledmedia)


    Hi there,

    I get nothing but this error: ‘HTTP error’, when I try to upload an image in my Media Library.

    I’ve also updated my IAM policy to this…

    {
      "Version": "2012-10-17",
      "Statement": [
    	{
    	  "Effect": "Allow",
    	  "Action": "s3:*",
    	  "Resource": "*"
    	}
      ]
    }

    …but it also still showing the ‘S3 Policy is Read-Only’ message. I am using the 0.7.1 version of the code.

    I’ve tried to upload different image types, using different browsers; but it is still showing the ‘HTTP Error’ message in red when I try to upload anything to S3. Before I updated it, it wasn’t doing this.

    Thanks

    https://ww.wp.xz.cn/plugins/amazon-s3-and-cloudfront/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same problem here.

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    Is there any more to the HTTP error message? If so, could you post a screenshot of the error?

    Thanks

    Thread Starter pixeledmedia

    (@pixeledmedia)

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    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

    Thread Starter pixeledmedia

    (@pixeledmedia)

    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
    Plugin Contributor Iain Poulson

    (@polevaultweb)

    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?

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    Version 0.7.2 has just been released with this fixed – let us know if you have further issues.

    Thread Starter pixeledmedia

    (@pixeledmedia)

    Thanks for the swift update! It works now.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘HTTP Error’ is closed to new replies.