• Good afternoon, I configured the Offload Media Lite plugin to save my files in amazon s3, but it is not working for me, help please.

    site_url(): https://desarrolloglobal.edu.pe
    home_url(): https://desarrolloglobal.edu.pe
    Table Prefix: ybs_
    WordPress: 6.0.1
    Web Server: Apache
    PHP: 7.4.30
    MySQL: 5.7.38
    ext/mysqli: yes
    PHP Memory Limit: 768M
    WP Memory Limit: 40M
    Memory Usage: 6 MB
    Blocked External HTTP Requests: None
    WP Locale: es_ES
    Organize offloads by month/year: Enabled
    WP_DEBUG: No
    WP_DEBUG_LOG: No
    WP_DEBUG_DISPLAY: Yes
    SCRIPT_DEBUG: No
    WP Max Upload Size: 256 MB
    PHP Time Limit: 120
    PHP Error Log: php_errorlog
    WP Cron: Enabled
    fsockopen: Enabled
    allow_url_fopen: Enabled
    OpenSSL: OpenSSL 1.1.1n FIPS  18 Mar 2022
    cURL: 7.66.0
    Zlib Compression: Enabled
    PHP GD: 2.2.5
    Imagick: Disabled
    Basic Auth: Disabled
    Proxy: Disabled
    
    Media Files: 105
    Offloaded Media Files: 0
    Not Offloaded Media Files: 105
    
    Number of Image Sizes: 7
    
    Names and Dimensions of Image Sizes: 
    thumbnail (150x150)
    medium (300x300)
    large (1024x1024)
    1536x1536 (1536x1536)
    2048x2048 (2048x2048)
    post-thumbnail (none)
    
    WP_CONTENT_DIR: /home/customer/www/desarrolloglobal.edu.pe/public_html/wp-content
    WP_CONTENT_URL: https://desarrolloglobal.edu.pe/wp-content
    UPLOADS: Not defined
    WP_PLUGIN_DIR: /home/customer/www/desarrolloglobal.edu.pe/public_html/wp-content/plugins
    WP_PLUGIN_URL: https://desarrolloglobal.edu.pe/wp-content/plugins
    
    AS3CF_PROVIDER: Not defined
    AS3CF_BUCKET: Not defined
    AS3CF_REGION: Not defined
    AS3CF_SETTINGS: Not defined
    
    Local URL:
    https://desarrolloglobal.edu.pe/wp?content/uploads/2022/08/photo.jpg
    Offload URL:
    https://wdesarrollo.s3.amazonaws.com/wp?content/uploads/2022/08/09101453/photo.jpg
    
    OME Metadata Version: 12
    
    Custom tables:
    ybs_as3cf_items: Ok
    
    Storage Provider: Amazon S3
    Use Server Roles: Off
    Key File Path: N/A
    Access Keys Set: Yes
    Access Key ID Define: AS3CF_AWS_ACCESS_KEY_ID
    Secret Access Key Define: AS3CF_AWS_SECRET_ACCESS_KEY
    
    Bucket: wdesarrollo
    Region: (empty)
    Block All Public Access: Disabled
    
    Copy Files to Bucket: On
    Enable Path: On
    Custom Path: wp-content/uploads/
    Use Year/Month: On
    Object Versioning: On
    
    Delivery Provider: Amazon S3
    Rewrite Media URLs: On
    
    Force HTTPS: Off
    
    Remove Files From Server: On
    
    Active Theme Name: BuddyBoss Child
    Active Theme Version: 1.0.1
    Active Theme Folder: buddyboss-theme-child
    Parent Theme Name: BuddyBoss Theme
    Parent Theme Version: 2.0.5
    Parent Theme Folder: buddyboss-theme
    
    Active Plugins:
    ACF Frontend Pro (v3.2.9) by Shabti Kaplan
    Advanced Custom Fields PRO (v5.12.3) by Cerebros deliciosos
    Advanced Custom Fields: Repeater Field (v1.1.1) by Elliot Condon
    Advanced Custom Fields: Theme Code Pro (v2.5.3) by Hookturn with Ben Pearson
    Custom Post Type UI (v1.12.1) by WebDevStudios
    Doubly (v1.0.29) by Unlimited Elements
    Dynamic.ooo - Dynamic Content for Elementor (v2.7.1) by Dynamic.ooo
    Elementor (v3.6.7) by Elementor.com
    Elementor Pro (v3.7.2) by Elementor.com
    JetEngine (v3.0.1) by Crocoblock
    JetSmartFilters (v2.3.12) by Crocoblock
    Rank Math SEO (v1.0.94) by Rank Math
    Rank Math SEO PRO (v3.0.15.1) by Rank Math
    SiteGround Central (v2.0.8) by SiteGround
    SiteGround Optimizer (v7.2.0) by SiteGround
    SiteGround Security (v1.3.0) by SiteGround
    Skyboot Custom Icons for Elementor - Elementor Icons library (v1.0.5) by Skybootstrap
    Unlimited Elements for Elementor (Premium) (v1.5.18) by Unlimited Elements
    WP Offload Media Lite (v2.6.2) by Delicious Brains
    WP Rocket (v3.11.4) by WP Media
    
    Drop-ins:
    advanced-cache.php - advanced-cache.php

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Delicious Brains

    (@deliciousbrains)

    > it is not working for me

    Please can you expand on that?

    Anything in your debug.log when adding a new Media Library item?

    https://deliciousbrains.com/why-use-wp-debug-log-wordpress-development/

    Any error notices in WP Offload Media Lite’s settings page?

    -IJ

    Same here, and nothing in the debug log.

    I upload a file, but it does not get copied to S3 (and neither deleted from server).

    • This reply was modified 2 years, 3 months ago by Elías.

    I leave my debug info:

    site_url(): https://batallasrap.com
    home_url(): https://batallasrap.com
    Database Name: iirvsvss_wp322
    Table Prefix: wpl5_
    WordPress: 6.0.1
    Web Server: LiteSpeed
    PHP: 7.4.30
    MySQL: 5.5.5
    ext/mysqli: yes
    PHP Memory Limit: 512M
    WP Memory Limit: 40M
    Memory Usage: 4 MB
    Blocked External HTTP Requests: None
    WP Locale: en_US
    Organize offloads by month/year: Enabled
    WP_DEBUG: Yes
    WP_DEBUG_LOG: Yes
    WP_DEBUG_DISPLAY: Yes
    SCRIPT_DEBUG: No
    WP Max Upload Size: 1 GB
    PHP Time Limit: 30
    PHP Error Log: /home/iirvsvss/public_html/wp-content/debug.log
    WP Cron: Enabled
    fsockopen: Enabled
    allow_url_fopen: Enabled
    OpenSSL: OpenSSL 1.1.1k  FIPS 25 Mar 2021
    cURL: 7.61.1
    Zlib Compression: Enabled
    PHP GD: bundled (2.1.0 compatible)
    Imagick: Enabled
    Basic Auth: Disabled
    Proxy: Disabled
    
    Media Files: 1
    Offloaded Media Files: 0
    Not Offloaded Media Files: 1
    
    Number of Image Sizes: 6
    
    Names and Dimensions of Image Sizes: 
    thumbnail (150x150)
    medium (300x300)
    large (1024x1024)
    1536x1536 (1536x1536)
    2048x2048 (2048x2048)
    
    WP_CONTENT_DIR: /home/iirvsvss/public_html/wp-content
    WP_CONTENT_URL: https://batallasrap.com/wp-content
    UPLOADS: Not defined
    WP_PLUGIN_DIR: /home/iirvsvss/public_html/wp-content/plugins
    WP_PLUGIN_URL: https://batallasrap.com/wp-content/plugins
    
    AS3CF_PROVIDER: Not defined
    AS3CF_BUCKET: Not defined
    AS3CF_REGION: Not defined
    AS3CF_SETTINGS: Defined
    AS3CF_SETTINGS Keys: access-key-id, provider, secret-access-key
    
    Local URL:
    https://batallasrap.com/wp-content/uploads/2022/08/photo.jpg
    Offload URL:
    https://s3.eu-west-3.amazonaws.com/batallasrap.com/wp-content/uploads/2022/08/photo.jpg
    
    OME Metadata Version: 12
    
    Custom tables:
    wpl5_as3cf_items: Ok
    
    Storage Provider: Amazon S3
    Use Server Roles: Off
    Key File Path: N/A
    Access Keys Set: Yes
    Access Key ID Define: Not defined
    Secret Access Key Define: Not defined
    
    Bucket: batallasrap.com
    Region: eu-west-3
    Block All Public Access: Disabled
    
    Copy Files to Bucket: On
    Enable Path: On
    Custom Path: wp-content/uploads/
    Use Year/Month: On
    Object Versioning: Off
    
    Delivery Provider: Amazon S3
    Rewrite Media URLs: On
    
    Force HTTPS: Off
    
    Remove Files From Server: On
    
    Active Theme Name: Twenty Twenty-Two
    Active Theme Version: 1.2
    Active Theme Folder: twentytwentytwo
    
    Active Plugins:
    Code Snippets (v3.2.0) by Code Snippets Pro
    WP Offload Media Lite (v2.6.2) by Delicious Brains
    
    Plugin Author Delicious Brains

    (@deliciousbrains)

    @eliasgdj when you add a new Media Library item, anything logged to the /home/iirvsvss/public_html/wp-content/debug.log file?

    -IJ

    No (I said in my first message).

    Same here. No errors in configuration. No errors in debug.log. Just seems like it doesn’t work at all. Has it worked for ANYONE using S3?

    Dears, look the IAM Permissions on AWS

    If you are not granting all permittions needed, so you will have not success with this plugin. If you are using a “IAM User” without the policy “AmazonS3FullAccess”, so the plugin will not upload the file to your bucket.

    If you are creating a IAM User restricted to a specific bucket (recommended, sure!), please continue reading…

    Let’s see below a example of the “Policy Rules” that you MUST grant to the IAM User (copy this JSON to your Policy).

    Replace YOURBUCKETNAME in the example.

    {
      "Version":"2012-10-17",
      "Statement":[
        {
          "Sid":"BucketLevel",
          "Effect":"Allow",
          "Action":[
            "s3:ListBucket",
            "s3:GetBucketLocation",
            "s3:GetBucketPublicAccessBlock",
            "s3:PutBucketPublicAccessBlock"
          ],
          "Resource":"arn:aws:s3:::YOURBUCKETNAME"
        },
        {
          "Sid":"AccountLevel",
          "Effect":"Allow",
          "Action":"s3:ListAllMyBuckets",
          "Resource":"*"
        },
        {
          "Sid":"ObjectLevel",
          "Effect":"Allow",
          "Action":[
            "s3:PutObject",
            "s3:GetObject",
            "s3:DeleteObject",
            "s3:PutObjectAcl"
          ],
          "Resource":"arn:aws:s3:::YOURBUCKETNAME/*"
        }
      ]
    }

    Other important detail is that in the Plugin settings, you should be able to see the Bucket Access Status, it must show Enable or Disable, but if shows “Unknown” so probably the Plugin will not work.

    You must see something like this: “Block All Public Access Disabled

    Don’t forget to read the manual of the plugin about the IAM Custom Policy at Custom IAM Policy for Amazon S3

    Regards,
    Good Luck!!

    Same here.
    No errors in configuration. Permission all good.
    No errors in debug.log.
    Just seems like it doesn’t work at all.

    Has the lite version tested before?

    Plugin Author Delicious Brains

    (@deliciousbrains)

    @cubean please try v3.0.0.

    If you still have issues, please visit WP Offload Media’s settings page and let me know if you see any warning notices. If there’s no warning, please post your diagnostic info from the Support tab.

    -IJ

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Files are not uploaded to S3’ is closed to new replies.