WordPress.org

Forums

Amazon S3 and Cloudfront
Re-written Link Incorrect (4 posts)

  1. angeliat1
    Member
    Posted 1 year 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?

    https://wordpress.org/plugins/amazon-s3-and-cloudfront/

  2. angeliat1
    Member
    Posted 1 year ago #

    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.
    Any thoughts?

  3. jeremyis
    Member
    Posted 1 year ago #

    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?

  4. pricklepantz
    Member
    Posted 1 year 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Amazon S3 and Cloudfront
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags