WordPress.org

Ready to get started?Download WordPress

Forums

Amazon S3 Uploads
[resolved] Specified key doesn't work... (8 posts)

  1. Clifford Paulick
    Member
    Posted 2 years ago #

    This image: http://tourkick.com/wp-content/uploads/2010/10/01+bobbyGREY-1197421381-O-277x300.jpg

    Goes here: http://tourkick-uploads-8624c237.s3.amazonaws.com/2010/10/01+bobbyGREY-1197421381-O-277x300.jpg

    And throws this error:

    NoSuchKeyThe specified key does not exist.2010/10/01 bobbyGREY-1197421381-O-277x300.jpg883......GR/7Xs......Te/4......9IS/Vj......7ppcqk

    (I replaced text with ... to shorten it.)

    What's up?

    http://wordpress.org/extend/plugins/amazon-s3-uploads/

  2. Paul Barthmaier
    Contributor Day Volunteer
    Posted 2 years ago #

    Similar problem for me, but the plugin seems to work on my root site of Multisite. On a subdomain, I'm getting:

    Warning: S3::listBuckets(): [InvalidAccessKeyId] The AWS Access Key Id you provided does not exist in our records. in /public_html/mydomain.com/wp-content/plugins/amazon-s3-uploads/tpyo-amazon-s3-php-class/S3.php on line 222

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in public_html/mydomain.com/wp-content/plugins/amazon-s3-uploads/asssu-models.php on line 244

    Warning: S3::getBucketLocation(): [InvalidAccessKeyId] The AWS Access Key Id you provided does not exist in our records. in /public_html/mydomain.com/wp-content/plugins/amazon-s3-uploads/tpyo-amazon-s3-php-class/S3.php on line 222

    Is this a path issue? If so, where would I go to specify?

  3. atvdev
    Member
    Plugin Author

    Posted 2 years ago #

    I searched the net and the 'key' means file. So the problem is that a file is uploaded to S3 and the name on S3 is different from that in the wp db.

    At first I thought it is because of the space used in your filename, but I try putting manually a file to S3 with a space in it and it works normally with %20 or + replacing the space in url.
    After I tried using wp to upload a file with space in it, but wp changed the space with - and again the file uploaded to S3 normally and worked ok.

    So if you, can please look in your S3 folder for that file, or similar filename and tell me if you find something.

  4. Clifford Paulick
    Member
    Posted 2 years ago #

    AWS S3 screenshot: http://ScrnSht.com/ctjgwi

    Here's the S3 link, per S3: https://s3.amazonaws.com/tourkick-uploads-8624c237/2010/10/01%2BbobbyGREY-1197421381-O-277x300.jpg

    So the "+" needed to be converted to "%2B" in order for the URL to work.

    Reference: http://www.w3schools.com/tags/ref_urlencode.asp

  5. atvdev
    Member
    Plugin Author

    Posted 2 years ago #

    Plugin updated!

    That was tough one. WP uploads your file leaving + as is. But for a request + in url is translated to 'space', so I think WP should by default replace + to - in filenames.

    Anyway, in 1.09 I change + to - before the upload to S3. Also if a file with + is requested, the plugin fixes it to - in the Amazon and in wp db.

    Any solution with %2B didn't work as htaccess dont uderstand the difference between %2B and +

  6. Clifford Paulick
    Member
    Posted 2 years ago #

  7. mozakdesign
    Member
    Posted 1 year ago #

    Hi - I'm getting the following error across the top of my screen

    Warning: S3::listBuckets(): [SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your key and signing method. in /home/mozakweb/public_html/install/wp-content/plugins/amazon-s3-uploads/tpyo-amazon-s3-php-class/S3.php on line 222
    
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/mozakweb/public_html/install/wp-content/plugins/amazon-s3-uploads/asssu-models.php on line 276
    
    Warning: S3::getBucketLocation(content.mozakdesign.com): [SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your key and signing method. in /home/mozakweb/public_html/install/wp-content/plugins/amazon-s3-uploads/tpyo-amazon-s3-php-class/S3.php on line 222
  8. Clifford Paulick
    Member
    Posted 1 year ago #

    @mozakdesign - I'm sorry to say, but I don't think the plugin developer is around anymore. We haven't heard from him in months... It's a shame, this was the best S3 plugin around! Maybe try [ link removed ] if you really need quick help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic