WordPress.org

Ready to get started?Download WordPress

Forums

CDN Sync Tool
CDN Sync Breaks after upgrade (26 posts)

  1. pjk
    Member
    Posted 2 years ago #

    Media files no longer sync to CloudFront after version upgrade. Manual force sync all immediately says all files are sync'd and does not force a sync.

    http://wordpress.org/extend/plugins/cdn-sync-tool/

  2. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    I apologise for all inconvenience that this premature update has caused. I assure you that I am looking at this issue now.

    If there are any further issues or any more information that may help me to fix this issue then please feel free to provide it on this thread or another thread.

  3. vSential
    Member
    Posted 2 years ago #

    Well, I have upgraded and it is still broken? The biggest question is do we need to remove the plugin and reinstall it? And if so, when we try to sync will it know what is already there and not try to resync or cause us to have to resync our entire content? It is still doing the same thing it was right after the 2.0 upgrade, just says All Files Synced.

  4. Pete_PT
    Member
    Posted 2 years ago #

    Broken for me too.

    Media files don't upload, plugin simply says everything is synced, even if I check the override option.

    It also wiped all the settings when I upgraded.

    And i now have a duplice folder on my S3 account in the uploads folder.

  5. vSential
    Member
    Posted 2 years ago #

    So after many attempts to get this working I finally decided to remove the plugin and try to reinstall. Initially this did not work so I checked the tables in my db and saw that the cst_files table was still there. I decided to wipe it out just to see what would happen.

    Removed the table and did a reinstall of the plugin...everything worked. The best part was that it didn't have to resync everything and only did the changes.

    Your mileage may vary but this at least worked for me.

  6. pjk
    Member
    Posted 2 years ago #

    My fix was simply downgrading to the older revision. That works fine. One should be careful upgrading this, especially if the older version works. Maybe vSential's fix works for the new version, but this should not need to be done during the upgrade process.

  7. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    An update is about to be pushed that should correct this issue. There is indeed database problems that I have attempted to fix. Please let me know how it goes after updating to the upcoming 2.0.3.

    Regards,
    Ollie Armstrong

  8. Kletsky
    Member
    Posted 2 years ago #

    Can anyone get this to work now? When I attempt to sync, it says ally my files are synced, yet I see nothing on Amazon s3. I'm new to this, any help would be appreciated. Please help me.

  9. Pete_PT
    Member
    Posted 2 years ago #

    Simply doesn't do what it used to. I got it to sync some image files on my WP multisite child blog, but none of the theme files or JS or CSS files.

  10. idea.org
    Member
    Posted 2 years ago #

    Breaks for me too. Also, it forgot my S3 key.

    It's a great plugin. Good luck fixing it soon.

  11. idea.org
    Member
    Posted 2 years ago #

    It might relate to the end of file names, e.g., '-240x61.png'.

  12. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    I have uncovered a major issue, the plugin wouldn't recursively check directories, hence why there were no files found in wp-includes.

    This has now been fixed and I have just pushed an update 2.1 to include this fix. On a fresh install of WordPress there are now 300+ files to sync immediately. Much more like how it used to be on pre 2.0 versions.

    I hope most issues are now solved.

    Re: idea.org;
    Please let me know if this update fixes your issues.

  13. Pete_PT
    Member
    Posted 2 years ago #

    Looks better, uploaded all my js, plugin and theme files.

    Downside is, it also uploaded all the image uploads for all my multisites to to a blog.dirs folder.

    Is there any way of only uploading files used on the current multisite. I'm using seperate buckets for each multisite site.

    thanks for all the hard work

  14. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    I haven't initially made it multisite compatible so these enhancements will have to come as a future update. I will be working on it as soon as I can.

    Regards,
    Ollie Armstrong

  15. Pete_PT
    Member
    Posted 2 years ago #

    Actually, it's not working on my site. It uploaded all files as stated, but when I enabled CDN support in WP Super Cache, cleared the cache and refreshed pages, none of the style sheets are being loaded so the site is displaying really badly.

    Multisite not as big an issue, it just means duplicates of files on the cloud, I can live with that. Only they are not being loaded from themes.

    Any ideas?

    Thanks again.

  16. vSential
    Member
    Posted 2 years ago #

    I am having the same issue as Pete_PT. Not the multisite portion but the style sheets don't seem to be loading at all. They are on the CDN as I have verified they are there but for some reason they do not load.

  17. vSential
    Member
    Posted 2 years ago #

    Also it seems that the plugins aren't being synced. I am getting around this by using the Sync Specific Directory option.

  18. vSential
    Member
    Posted 2 years ago #

    Another thing I noticed is that if I use something else to upload my static content to the CDN it now displays properly. It seems that there is something happening during the sync that is either not being set properly or causing some type of other issue with files being transferred.

  19. Chris Knights
    Member
    Posted 2 years ago #

    I has the same issue as Pete_PT.

    Looks like there is a problem with the new plugin or Amazon as CSS files are being sent to S3 as standard text files. Browser interprets these as wrong format and thus does not load the style sheet.

    Solution:

    Apply the following to all .css files.

    Log in to S3 and find the file > Properties > MetaData > Key: Content-Type > Change this to text/css. (Will be set to text/plain).

    Let me know if this helps.

  20. Pete_PT
    Member
    Posted 2 years ago #

    Mine were all set to text/x-c but changing them all manually to text/css did the trick.

    Thank you.

    Also, on Multisite support the following is happening.

    ALL image uploads including entire blogs.dir folder was uploaded to Main site.

    Images not syncing at all from child sites.

    The upload is not rewriting as /files but /blogs.dir/2/files so all I had to do was create a new folder in child bucket, and copy and paste the image files.

    CLunky but it works.

  21. Ammalgam
    Member
    Posted 2 years ago #

    This is all nice and good but I have a site that's 3 years old, PR5 with over 1650 posts.

    I am taking NO chances with this upgrade.

  22. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for pointing out this issue. It will be fixed as soon as possible.

  23. shaneiseminger
    Member
    Posted 2 years ago #

    The incorrect mime types bug comes from the underlying S3 code. I've fixed the issue in the S3 library and submitted a pull request to the author.

    Those looking to fix this directly can replace the code in S3.php with the code in my fork.

  24. Kelson
    Member
    Posted 2 years ago #

    I've checked back from time to time and I still can't get the new version to sync with my Amazon S3 buckets on either of two blogs. I keep going back to the previous version because I don't have time to troubleshoot. There's no error message, it claims it's synced, and there's nothing in the website error log, but the files never arrive at Amazon.

    Is there something I should be looking for? Some trick I should be using?

  25. cmyksteve
    Member
    Posted 2 years ago #

    I too dropped back to an old version of this plugin to keep my cdn working.

  26. Ollie Armstrong
    Member
    Plugin Author

    Posted 1 year ago #

    S3 MIME issues have been fixed. Multisite issues due to be fixed this week.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic