-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is "Aws\Common\Aws" ? #95
Comments
Interesting I am getitng this
I wonder if it is related... |
@spacedmonkey i would expect so, there are no "Aws\Common" mappings at all from what I could see. |
@twoSeats can you make sure you are using the latest stable release from https://github.com/humanmade/S3-Uploads/releases thanks! |
@joehoyle oh is that what it is? I'll give that a shot. |
Same problem. Newest version installed. |
Just setting this up for the first time - pulled the latest version, tried to run create-iam-user and had this problem with Aws\Common\Aws missing:
|
Same problem as @simonhampel here |
Any update on this, I am facing the same problem... |
I think this problem is coming from another copy of the AWS SDK being loaded which is a different version, could anyone confirm if they are using another aws sdk elsewhere in their codebase? Thanks! |
#133 resolves this issue for me. |
I just installed this plugin for the first time, and I am getting the error mentioned above. As @puckbag mentioned, it seems that the old SDK references are still present in the v2.0.0 release: S3-Uploads/inc/class-s3-uploads-wp-cli-command.php Lines 159 to 164 in 70d50a2
|
From what I've plucked on the v3 of the sdk, the iam instance should be created using
class. Something like $iam = new \Aws\Iam\IamClient( [
'profile' => 'default',
'region' => S3_UPLOADS_REGION,
'version' => 'latest',
] ); The rest of the methods are the same. https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-iam-2010-05-08.html This assumes that the plugin is installed using composer, and that lib |
I'm quite new to this, but I found that the solution by @dingo-d worked for me with some modification. I replaced this line:
with this code:
|
Yeah, this should work if you are not using |
Fixed using code from humanmade#95 (comment).
Ran into this issue just now on a fresh setup of v2.2.1 (latest stable at the time of writing). |
Have I done something wrong?
Just installed S3-Uploads & can't get verify or create-iam-user to work because of
When I checked the aws sdk autoloader, I can't seem to find a mapping for "Aws\Common\Aws" ... Just me?
The text was updated successfully, but these errors were encountered: