Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Iain Poulson

    (@polevaultweb)

    Hi, is this still an issue? Can you swap bucket and then swap back to see if that resolves?

    Thread Starter leblancj2

    (@leblancj2)

    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.

    Thread Starter leblancj2

    (@leblancj2)

    I’m still having this issue! Can someone please help?

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    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?
    Thread Starter leblancj2

    (@leblancj2)

    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”: {}
    }
    ]
    }

    Thread Starter leblancj2

    (@leblancj2)

    Just figured out what EC2 is and the answer is no. Our site is hosted on a VPS.

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    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)?

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    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”: {}
    }
    ]
    }

    Thread Starter leblancj2

    (@leblancj2)

    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”: “*”
    }
    ]
    }

    Thread Starter leblancj2

    (@leblancj2)

    I have the up to date plugins

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    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:::*”
    ]
    }
    ]
    }

    Thread Starter leblancj2

    (@leblancj2)

    Still getting the same error: S3 Policy is Read-Only

    Thread Starter leblancj2

    (@leblancj2)

    For some reason everything is working perfectly now!

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

The topic ‘Warning: strtolower() expects parameter 1 to be string’ is closed to new replies.