• Hello! First of all, thank you for such an amazing plugin. I am so excited to buy the Pro Version and tell all my clients they need to as well. I am experiencing a peculiar bug. The links to some of my images are working just fine, but others are simply appearing as

    https://s3-a.amazonaws.com/a/a

    It appears that each of the “a”s is where a piece of meta data should be concatenated, but this is failing for some reason. I’ve looked at the meta data for some that work and some that don’t and there doesn’t seem to be any pattern to the problem. Any clues on what might be causing this or could you point me to which function handles which URL to return?

    Thanks again for all your fine work,
    David Petersen
    Happy Fox Media

    https://ww.wp.xz.cn/plugins/amazon-s3-and-cloudfront/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Obviously from the structure of your url, your settings option under domain should be “Bucket name in path” ,path–(off),month/year–(off) ,and if that is the case then the first ‘a’ in your url should be the region where the bucket is located, the second ‘a’ should be the bucket name and the last ‘a’ should be the filename. For example

    http://s3‑us‑west‑1.amazonaws.com/bucket-name/photo.jpg

    Anyway for the function that returns the s3 URL,
    check file:amazon-s3-clouldfront.php line:647 to know whether you can figure out the issue..

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    Hi David

    Are you uploading the image using the media uploader in the library or inside a plugin?

    Thread Starter davidpetersen

    (@davidpetersen)

    Hey Folks,
    Thank you so much for your assistance. I’ll take a look at the amazon-s3-cloudfront.php file and see if I can find what’s not getting passed to the URL.

    I’m just using the WP Media Uploader, not a plugin. The files I’ve checked have the appropriate metadata in the db.

    Thread Starter davidpetersen

    (@davidpetersen)

    So I found out that we are loading some of the posts through a plugin called Camayak. The posts added through it work sporadically. Not all of them are broken. It’s weird. When I check broken posts, it looks like they have the correct metadata in the database. It’s just not concatenating correctly…. any thoughts?

    Plugin Contributor Iain Poulson

    (@polevaultweb)

    Hi David

    This is fixed in the next version of the plugin.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘URL not rewriting correctly’ is closed to new replies.