Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    Did it work before and just started having a problem when you updated today? Which plugin do you use to send media to Amazon S3?

    Thread Starter Anthony Acosta

    (@anthon1)

    Yes everything was working great until the update today.

    We use the plugin “Amazon S3 and Cloudfront” which works in conjunction with “Amazon Web Services”.

    Plugin Author Kyle Gilman

    (@kylegilman)

    I managed to replicate the bug by turning off the S3 and Cloudfront option “Rewrite File URLs” or by disabling the Amazon S3 and Cloudfront plugin altogether. Have you done either of those things? If “Rewrite File URLs” is turned on it should work.

    Thread Starter Anthony Acosta

    (@anthon1)

    Rewrite is on, but it was already on. idk why its doing this to all my older posts.

    Plugin Author Kyle Gilman

    (@kylegilman)

    In version 4.5 I’m relying on the result of wp_get_attachment_url specifically because of cases like the Amazon S3 and Cloudfront plugin. If the video is in the WordPress database, the URL you put in the shortcode is replaced by whatever WordPress is telling us is the attachment URL. Under normal circumstances, the Amazon S3 and Cloudfront plugin sets that URL to the Amazon address, which should be the same as what is in the shortcode. I’m not sure why WordPress is not returning the Amazon address.

    Is it possible you have another plugin that also rewrites the attachment URL? Can you try disabling some other attachments?

    What happens when you insert a newly uploaded video? Do you get the same error?

    Thread Starter Anthony Acosta

    (@anthon1)

    Ok, It looks like its only affecting videos uploaded during that time frame (2013) the 2014 and newer uploads are not affected. Neither are new videos. I think its probably a permissions issue with my CDN or the way my video files were added to the database. Either way, it looks like your awesome plugin is not culpable. Thank you so much for your assistance.

    Plugin Author Kyle Gilman

    (@kylegilman)

    I think I’m going to write a fix for this anyway. If someone has their S3 address hard coded into the shortcode, it shouldn’t be overwritten.

    Plugin Author Kyle Gilman

    (@kylegilman)

    I just released version 4.5.1 which should restore your S3 links on those older videos.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘AWS CDN address gets replaced with local address on rendering. 404 on play’ is closed to new replies.