deliciousbrains / wp-amazon-s3-and-cloudfront

Automatically copies media uploads to Amazon S3 for delivery. Optionally configure Amazon CloudFront for even faster delivery.
https://wordpress.org/plugins/amazon-s3-and-cloudfront/
305 stars 148 forks source link

Featured Images not loading from S3 #453

Closed everydaynerd closed 6 years ago

everydaynerd commented 6 years ago

Hello,

Loving this plug in - images load SO fast from S3 vs. hosting provider. I did notice a bug though. The images set as a featured image on blog posts or pages do not show up when Rewrite File URLs is enabled. I have tried this with just S3, as well as CloudFront CDN enabled (updating the domain name).

Debug info:

site_url(): https://domain.com
home_url(): https://domain.com
Database Name: databasename
Table Prefix: something
WordPress: 4.9.6
Web Server: Apache
PHP: 7.2.5
MySQL: 5.6.34
ext/mysqli: yes
PHP Memory Limit: 90M
WP Memory Limit: 40M
Memory Usage: 4 MB
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: 64 MB
PHP Time Limit: 30
PHP Error Log: 
WP Cron: Enabled
fsockopen: Enabled
allow_url_fopen: Enabled
OpenSSL: OpenSSL 1.0.1f 6 Jan 2014
cURL: 7.35.0
Zlib Compression: Enabled
PHP GD: bundled (2.1.0 compatible)
Imagick: Enabled
Basic Auth: Disabled
Proxy: Disabled

Media Files: 589
Media Files on S3: 589
Number of Image Sizes: 6

Names and Dimensions of Image Sizes: 
thumbnail (150x150)
medium (300x300)
large (1024x1024)
post-thumbnail (none)
sow-carousel-default (272x182)

WP_CONTENT_DIR: /path/to/the/wp-content
WP_CONTENT_URL: https://domain.com/wp-content
UPLOADS: Not defined
WP_PLUGIN_DIR: /path/to/the/wp-content/plugins
WP_PLUGIN_URL: https://domain.com/wp-content/plugins

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

Bucket: s3bucketname
Region: 
Copy Files to S3: On
Rewrite File URLs: On

Local URL:
https://domain.com/wp‑content/uploads/2018/06/photo.jpg
S3 URL:
https://somerandomsubdomain.cloudfront.net/wp‑content/uploads/2018/06/14220342/photo.jpg

Domain: cloudfront
Enable Path: On
Custom Path: wp-content/uploads/
Use Year/Month: On
Force HTTPS: Off
Remove Files From Server: Off
Object Versioning: On

Active Theme Name: Phlox
Active Theme Version: 2.2.0
Active Theme Folder: phlox

Active Plugins:
Akismet Anti-Spam (v4.0.7) by Automattic
All In One WP Security (v4.3.3.1) by Tips and Tricks HQ, Peter Petreski, Ruhul, Ivy
BackWPup (v3.6.0) by Inpsyde GmbH
Contact Form 7 (v5.0.2) by Takayuki Miyoshi
Cookie Notice (v1.2.44) by dFactory
Easy Photography Portfolio (v1.4.8) by Colormelon
Instagram Feed (v1.8.3) by Smash Balloon
Jetpack by WordPress.com (v6.2.1) by Automattic
MailChimp for WordPress (v4.2.3) by ibericode
Master Slider (v3.5.1) by averta
Page Builder by SiteOrigin (v2.6.9) by SiteOrigin
Phlox Core Elements (v2.2.3) by averta
SiteOrigin Widgets Bundle (v1.11.8) by SiteOrigin
Smush (v2.7.9.1) by WPMU DEV
WP Maintenance Mode (v2.2) by Designmodo
WP Offload S3 Lite (v1.4) by Delicious Brains
Yoast SEO (v7.6.1) by Team Yoast
ianmjones commented 6 years ago

With so little detail and anonymised domains I'm afraid we can't confirm this as a bug (we test featured images properly rewrite during release testing).

For support, please raise a request at https://wordpress.org/support/plugin/amazon-s3-and-cloudfront or if you have a WP Offload S3 license please use the "Support" tab in the plugin.