• After doing a major update in my site of all versions of WP and plugins, the s3 amazon plugin isn’t allowing any download of files.
    ———–
    error –
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    AuthorizationQueryParametersError
    <Message>
    Error parsing the X-Amz-Credential parameter; the region ‘us-east-1’ is wrong; expecting ‘us-west-2’
    </Message>
    <Region>us-west-2</Region>
    <RequestId>AA6BED3B00DD29C7</RequestId>
    <HostId>
    R/sA0r5urfPlcYXhnpGBNkH+OVK/wcgn3qRKkDdZH8e2MJiUD+AfCjiLsmHDImgg0xcAnSx9v3Y=
    </HostId>
    </Error>
    ——–

    After doing searching on the subject it seems like s3 isn’t supposed to be connected in any areas or regions (it should be global). Everything worked well until the update (at least I think it’s the update which is causing this problem).
    I have created a new key in AWS and figured this may help but it didn’t.
    Anyone knows this plugin/system well enough to tell me what can be the problem? I am clueless.

    thank you
    Iris.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi Iris

    Which plugin is it that you are working with?
    Usually WordPress adds a link to the plugin page here but I’m not seeing it.

    To my knowledge (I’ve been working with AWS S3 since ’08), S3 buckets are by region and if your objects (files within the bucket) are set in one region, say us-west and your settings within whatever plugin you are using is set to us-east then you will get an error.

    Keys will not solve this but changing the region in your plugin settings to the region your files are set for should fix it.

    – Steve D.

    Thread Starter irisMM

    (@irismm)

    Thank you Steve, it’s the woo themes S3 amazon plugin and after a recent update it’s not working any more. Everything worked fine before that update.
    I can’t see where I should change my plugin settings because the dashboard settings are very limited to password/keys/minutes for URL to expire.
    any suggestions?
    thank you
    Iris.

    Hi Iris,
    I’m just now learning WooCommerce so I’m not going to be as much help as I’d like to be but…

    If that is one of the premium extensions ($29) then you will likely get the best help from their support.

    When I went to that extensions page, I saw something about a recent update and possible issues as a result but not sure if that is what you are looking for.

    Here is the URL to that page and scroll down almost to the bottom looking for the paragraph title “WooCommerce 2.0 Support”
    https://docs.woothemes.com/document/amazon-s3-storage/

    Wish I could have been more helpful.

    – Steve D.

    Thread Starter irisMM

    (@irismm)

    Thank you so much Steve but this didn’t solve the problem ??
    Yes, it’s a full paid plugin. I contacted their support. It’s so wierd, everything worked great till my last update.
    Will keep you updated if you’d like that after they solve it.

    tnx!

    Hello Iris,

    Yes please keep me in the loop with whatever the solution turns out to be.

    Who knows, I may encounter a similar issue and having an idea of a possible solution will come in handy.

    Thank you and best of success.

    – Steve D.

    Thread Starter irisMM

    (@irismm)

    Can I ask which version of the plugin are you using? mine is 2.1.2
    also, do you have people around the world downloading your files? or is it only for personal / small authorised group people?
    mine are worldwide.
    thank you
    Iris.

    I’m not currently using the Amazon S3 plugin for WooCommerce nor am I using WooCommerce yet.

    I’m still in the learning stages of all things WooCommerce.

    I’ve been using Amazon S3 along with other Membership plugins like s2Member, Wishlist & MemberSonic on my various sites but none of these allow for a shopping cart type purchase like WooCommerce.

    Currently, if a buyer wants to purchase several of my products, they have to make individual purchases instead of adding the ones they want to a single ‘cart’ for a single purchase.

    All my digital downloads are hosted on S3 and are protected a couple different ways.

    1. They are all on a page that can only be accessed by paid members.
    2. The URLs cannot be shared because I have them set to private and I use a plugin called s3flowshield.

    My goal is to simply add WooCommerce shopping cart feature to my existing setup but in the event that is a no-go because my current plugins and setting will not play nice with WooCommerce, then the more I learn about WooCommerce and the various extensions, like the Amazon S3 one, the better prepared I’ll be if I have to make a complete changeover.

    – Steve D.

    Thread Starter irisMM

    (@irismm)

    Hello Steve, the problem was a dot “.” in the bucket name.
    After 2 years of using this plugin without any problem (with the dot in bucket name), suddenly the company decided the dot is not valid. After my recent update all downloads are errors.
    This is very disappointing as I need to change 200+ files URLs but they have no solution for me.

    Iris.

    WOW!
    The period in the naming of an s3 bucket is perfectly fine with Amazon. Here is the page that defines the naming restrictions and part of that is using the period:
    https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html

    Since this is part of the naming of buckets in AWS, I would think that the ‘problem’ is with the plugin creator and not AWS.

    Before you spend the money or time to change out all those file names, I’d show this URL to the plugins support and see when they will have their plugin fixed to comply with the naming rules of Amazon Web Services (AWS).

    I’d also look for any forums related to that plugin creator and/or WooCommerce and post your situation in there and see if others have had a similar issue and maybe there will be strength in numbers.

    As far as making the edits of the 200+ files, not sure if this will work in your situation but worth a try…

    First do a full backup of both files AND database – just in case the crap hits the fan.

    Then with a copy of the database, do a find & replace ( I use Notepad++ ) and find the original file names and replace with the new ones you created in S3.

    You might want to just try this with a single change to test if it is working.

    I think I remember hearing about batch renaming of buckets within AWS but I don’t recall where or if I were just wishing it was possible.

    – Steve D.

    Thread Starter irisMM

    (@irismm)

    If you know of any good forums to post in, i’d be happy to know… I am clueless about any…

    The plugins support isn’t taking responsibility over the issue, they said it may be AWS fault which is clearly not. I sent them the link you sent assuring a dot IS valid.

    I’m afraid I have no tech support option with amazon AWS (basic account) to consult with.

    Thank you Steve, appreciate your time and effort!

    Glad to know that it’s not just me, as I’ve only just installed this today. Without this thread, I would have been a bit lost trying to sort it out!

    I was having this issue – brand new to Amazon s3 and Woocommerce extension for it – I made the items ‘public’ and the problem went away.
    At least, this problem did ??

    I discovered it by clicking on the link in the Amazon bucket and got the same XML error.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Amazon s3 isn't allowing file download’ is closed to new replies.