Support » Plugin: WP Offload S3 Lite » Re-written Link Incorrect
2 years, 10 months ago
The upload works great to S3.
The image page that is put into the post is incorrect though:
https://s3.amazonaws.com/mybucketname/wp-content/uploads/2014/03/cat5e-crossover-a-to-b.jpg – does not work
http://mybucketname.s3.amazonaws.com/wp-content/uploads/2014/03/cat5e-crossover-a-to-b.jpg – works
Is there a way to easily fix the script so it passes the bucket name properly?
Got part of it.
Lines 336 & 337:
//$domain_bucket = ‘s3.amazonaws.com/’ . $s3object[‘bucket’];
$domain_bucket = $s3object[‘bucket’] . ‘.s3.amazonaws.com’;
That works perfectly inside the post.
However, images are not showing on search or category listing pages.
I’m also having this issue. Changing the code in classes/amazon-s3-and-cloudfront.php as angeliat1 mentioned fixed the issue for me. But, is there a way to get it working without modifying plugin code?
2 years, 9 months ago
I managed to solve this by unticking option Always serve files over https (SSL) in the settings without changing plugin code.
However I can’t replicate angeliat1 problem.
Hope this helps!