Hi, is this still an issue? Can you swap bucket and then swap back to see if that resolves?
I still have this error: Warning: strtolower() expects parameter 1 to be string
When I tried to change the bucket, I get this error: Error saving bucket: Failed to retrieve bucket region.
I cannot create a bucket either.
I’m still having this issue! Can someone please help?
So I can try to recreate –
- What region is the bucket located in?
- What is the IAM policy you are using?
- Is your WP install hosted on EC2?
What do you mean by “Is your WP hosted on EC2?”
Regoin: US standard
IAM Policy:
{
“Statement”: [
{
“Effect”: “Allow”,
“Action”: [
“s3:ListBucket”,
“s3:GetBucketLocation”,
“s3:ListBucketMultipartUploads”
],
“Resource”: “arn:aws:s3:::truepotentialmedia”,
“Condition”: {}
},
{
“Action”: [
“s3:AbortMultipartUpload”,
“s3:DeleteObject*”,
“s3:GetObject*”,
“s3:PutObject*”
],
“Effect”: “Allow”,
“Resource”: [
“arn:aws:s3:::truepotentialmedia/*”
]
},
{
“Effect”: “Allow”,
“Action”: “s3:ListAllMyBuckets”,
“Resource”: “*”,
“Condition”: {}
}
]
}
Just figured out what EC2 is and the answer is no. Our site is hosted on a VPS.
Thanks for the info. And just to check you are using the most up to date versions of this plugin (0.8.2) and AWS (0.2.2)?
Can you try changing your policy (temporarily), to
{
“Statement”: [
{
“Effect”: “Allow”,
“Action”: [
“s3:ListBucket”,
“s3:GetBucketLocation”,
“s3:ListBucketMultipartUploads”
],
“Resource”: “arn:aws:s3:::*”,
“Condition”: {}
},
{
“Action”: [
“s3:AbortMultipartUpload”,
“s3:DeleteObject*”,
“s3:GetObject*”,
“s3:PutObject*”
],
“Effect”: “Allow”,
“Resource”: [
“arn:aws:s3:::*”
]
},
{
“Effect”: “Allow”,
“Action”: “s3:ListAllMyBuckets”,
“Resource”: “*”,
“Condition”: {}
}
]
}
I get this error now with the policy you sent:
S3 Policy is Read-Only — You need to go to Identity and Access Management in your AWS console and manage the policy for the user you’re using for this plugin. Your policy should look something like the following:
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Allow”,
“Action”: “s3:*”,
“Resource”: “*”
}
]
}
I have the up to date plugins
Hi, sorry about this! Can you try this policy:
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “Stmt1422543245000”,
“Effect”: “Allow”,
“Action”: [
“s3:CreateBucket”,
“s3:DeleteObject”,
“s3:Put*”,
“s3:Get*”,
“s3:List*”
],
“Resource”: [
“arn:aws:s3:::*”
]
}
]
}
Still getting the same error: S3 Policy is Read-Only
For some reason everything is working perfectly now!