Not able to enable “Deliver Offloaded Media” using AS3CF_SETTINGS constant
-
As the title suggests, when I use AS3CF_SETTINGS constant in wp-config.php to set all the settings for the plugin, Deliver Offloaded Media option is disabled. All the images are offloaded to S3 bucket, but with the option to remove images from local storage on, the end result is that images are not displayed. HOWEVER, when I remove AS3CF_SETTINGS from the config file and configure all the settings manually in the console, everything works. Any idea how to fix this?
Diagnostic Info:
site_url(): https://dieyrmgv2nc4i.cloudfront.net
home_url(): https://dieyrmgv2nc4i.cloudfront.net
Database Name: support
Table Prefix: wp_
WordPress: 6.8.2
Web Server: Apache/2.4.64 (Amazon Linux) OpenSSL/3.2.2
PHP: 8.4.11
MySQL: 8.4.6
ext/mysqli: yes
PHP Memory Limit: 1024M
WP Memory Limit: 1024M
Memory Usage: 6 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: 200 MB
PHP Time Limit: 60
PHP Error Log: /var/log/php-fpm/www-error.log
WP Cron: Disabled
fsockopen: Enabled
allow_url_fopen: Enabled
OpenSSL: OpenSSL 3.2.2 4 Jun 2024
cURL: 8.11.1
Zlib Compression: Enabled
PHP GD: 2.3.3
Imagick: Disabled
Basic Auth: Disabled
Proxy: Disabled
Total Media Items: 4
Total Offloaded Media Items: 4
Total Not Offloaded Media Items: 0
Media Library Items: 4
Offloaded Media Library Items: 4
Not Offloaded Media Library Items: 0
Number of Image Sizes: 6
Names and Dimensions of Image Sizes:
thumbnail (150x150)
medium (300x300)
large (1024x1024)
1536x1536 (1536x1536)
2048x2048 (2048x2048)
WP_CONTENT_DIR: /var/app/current/wp-content
WP_CONTENT_URL: https://dieyrmgv2nc4i.cloudfront.net/wp-content
UPLOADS: Not defined
WP_PLUGIN_DIR: /var/app/current/wp-content/plugins
WP_PLUGIN_URL: https://dieyrmgv2nc4i.cloudfront.net/wp-content/plugins
AS3CF_PROVIDER: Not defined
AS3CF_BUCKET: Not defined
AS3CF_REGION: Not defined
AS3CF_SETTINGS: Defined
AS3CF_SETTINGS Keys: bucket, copy-to-s3, delivery-domain, delivery-provider, enable-delivery-domain, enable-object-prefix, object-prefix, object-versioning, provider, region, remove-local-file, serve-from-s3
Local URL:
https://dieyrmgv2nc4i.cloudfront.net/wp-content/uploads/2025/09/example.jpg
Offload URL:
https://d23yzyquqwlfo8.cloudfront.net/wp-content/uploads/2025/09/example.jpg
OME Metadata Version: 12
Custom tables:
wp_as3cf_items: Ok
Storage Provider: Amazon S3
Use Server Roles: On
Key File Path: N/A
Access Keys Set: No
Access Key ID Define: Not defined
Secret Access Key Define: Not defined
Bucket: support-cf-content
Region: us-east-1
Block All Public Access: Enabled
Object Ownership Enforced: Yes
Offload Media: On
Remove Local Media: On
Enable Add Prefix to Bucket Path: On
Custom Prefix for Bucket Path: wp-content/uploads/
Add Year & Month to Bucket Path: Off
Add Object Version to Bucket Path: Off
Delivery Provider: Amazon CloudFront
Deliver Offloaded Media: Off
Use Custom Domain Name (CNAME): On
Custom Domain (CNAME): d23yzyquqwlfo8.cloudfront.net
Force HTTPS: Off
Active Theme Name: Twenty Twenty-Five
Active Theme Version: 1.3
Active Theme Folder: twentytwentyfive
Active Plugins:
Debug Bar (v1.1.7) by wordpressdotorg
Query Monitor (v3.19.0) by John Blackbourn
WP Offload Media Lite (v3.2.11) by Delicious Brains
Drop-ins:
db.php - Query Monitor Database Class (Drop-in)
The topic ‘Not able to enable “Deliver Offloaded Media” using AS3CF_SETTINGS constant’ is closed to new replies.