• I have three sites — two dev sites and one fresh WP install — all fail to connect to my bucket when I manually enter the bucket name.

    Plugin error:

    Error saving bucket — Error Getting Bucket Region —There was an error attempting to get the region of the bucket trnn-wordpress-media: Access Denied

    Logfile:

    [01-May-2016 02:06:11 UTC] WPOS3: There was an error attempting to get the region of the bucket trnn-wordpress-media: Access Denied

    The keys and bucket name are all correct as I can use s3cmd to list, get, put, and del files on the bucket.

    S3 permissions are:

    <blockquote>
    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "s3:CreateBucket",
                    "s3:DeleteObject",
                    "s3:Put*",
                    "s3:Get*",
                    "s3:List*"
                ],
                "Resource": [
                    "arn:aws:s3:::trnn-wordpress-media", "arn:aws:s3:::trnn-wordpress-media/*"
                ]
            }
        ]
    }
    </blockquote>

    Diagnostics:

    site_url(): http://wordpress.local
    home_url(): http://wordpress.local
    Database Name: wordpress_test
    Table Prefix: wp_
    WordPress: 4.5.1
    Web Server: Apache
    PHP: 5.6.10
    MySQL: 5.5.42
    ext/mysqli: yes
    PHP Memory Limit: 256M
    WP Memory Limit: 40M
    Blocked External HTTP Requests: None
    WP Locale: en_US
    Organize uploads by month/year: Enabled
    WP_DEBUG: No
    WP_DEBUG_LOG: No
    WP_DEBUG_DISPLAY: Yes
    SCRIPT_DEBUG: No
    WP Max Upload Size: 32 MB
    PHP Time Limit: 30
    PHP Error Log: /Applications/MAMP/logs/php_error.log
    WP Cron: Enabled
    fsockopen: Enabled
    OpenSSL: OpenSSL 0.9.8r 8 Feb 2011
    cURL: Enabled
    Zlib Compression: Enabled
    PHP GD: bundled (2.1.0 compatible)
    Imagick: Disabled

    Media Files: 0
    Media Files on S3: 0
    Number of Image Sizes: 5

    Names and Dimensions of Image Sizes:
    thumbnail (150×150)
    medium (300×300)
    large (1024×1024)
    post-thumbnail (none)

    WP_CONTENT_DIR: /Users/slam_13/sites/wordpress/wp-content
    WP_CONTENT_URL: http://wordpress.local/wp-content
    UPLOADS: Not defined
    WP_PLUGIN_DIR: /Users/slam_13/sites/wordpress/wp-content/plugins
    WP_PLUGIN_URL: http://wordpress.local/wp-content/plugins

    AWS_USE_EC2_IAM_ROLE: Not defined
    AS3CF_BUCKET: Not defined
    AS3CF_ASSETS_BUCKET: Not defined
    AS3CF_REGION: Not defined

    Bucket:
    Region:
    Copy Files to S3: Off
    Rewrite File URLs: Off

    URL Preview: http://s3.amazonaws.com//wp‑content/uploads/2016/05/01022900/photo.jpg

    Domain: path
    Enable Path: On
    Custom Path: wp-content/uploads/
    Use Year/Month: On
    SSL: request
    Remove Files From Server: Off
    Object Versioning: On

    Active Theme Name: Twenty Fifteen
    Active Theme Folder: twentyfifteen

    Active Plugins:
    Amazon Web Services (v0.3.5) by Delicious Brains
    WP Offload S3 Lite (v1.0.3) by Delicious Brains

    https://ww.wp.xz.cn/plugins/amazon-s3-and-cloudfront/

The topic ‘Error saving bucket — Error Getting Bucket Region’ is closed to new replies.