Title: [Plugin: CDN Sync Tool] Not saving files to Amazon Cloud
Last modified: August 19, 2016

---

# [Plugin: CDN Sync Tool] Not saving files to Amazon Cloud

 *  [Philip Greenwood](https://wordpress.org/support/users/bigtrousers/)
 * (@bigtrousers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/)
 * It looks like files are being transferred but when I check at Amazon there is
   only one file uploaded per folder. I have been trying to get this to work for
   a while and I can only imagine that it is some hosting requirement that is stopping
   the plugin from working. Is there a way to flush all data that the plugin stores
   in the database and start again or is there a hosting configuration test I can
   perform?
 * [http://wordpress.org/extend/plugins/cdn-sync-tool/](http://wordpress.org/extend/plugins/cdn-sync-tool/)

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

 *  [Louis Marascio](https://wordpress.org/support/users/marascio/)
 * (@marascio)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1907709)
 * I’m having the same problem. The logs seem to indicate that a sync happened, 
   but the files are not there if I inspect the S3 bucket. The initial sync worked
   great a few days ago, but I noticed the plugin was updated a few times between
   now and then, so it seems like a bug has crept in.
 *  [Louis Marascio](https://wordpress.org/support/users/marascio/)
 * (@marascio)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1907713)
 * Ok, I just checked out the root of my bucket. I see:
 *     ```
       var
       wp-content
       wp-includes
       ```
   
 * Clearly the `var` directory shouldn’t be there. If I go into the `var` directory
   I see that it ultimately contains the files that should have synced. It appears
   there is a path issue of some sort. An excerpt from my log:
 * > [Wed Feb 09 19:59:56 2011] [error] [client 173.174.115.36] PHP Warning: file_get_contents(/
   > var/www/blah.com//var/www/blah.com/wp-content/plugins/codecolorer/js/css/codecolorer.
   > css): failed to open stream: No such file or directory in /var/www/blah.com/
   > wp-content/plugins/cdn-sync-tool/lib/Cdn/Aws.php on line 126, referer: [http://fitnr.com/wp-admin/admin.php?page=cst-main](http://fitnr.com/wp-admin/admin.php?page=cst-main)
 *  Plugin Contributor [Backie](https://wordpress.org/support/users/backie/)
 * (@backie)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1907790)
 * My bad, I changed something and was busy so just did a test via the sync which
   weirdly didn’t give me any errors which I would have thought it would have considering
   how screwed up it was. Fixed the issue and tested using the unit test.
 *  [artesea](https://wordpress.org/support/users/artesea/)
 * (@artesea)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1907792)
 * Getting similar errors here when trying to upload a custom folder
 *     ```
       Syncing [355/469] wp-content/authors/Gareth_Epps-791.png
       Warning: finfo_file() [function.finfo-file]: File or path not found '/home/meh/public_html//home/meh/public_html/wp-content/authors/Gareth_Epps-791.png' in /home/meh/public_html/wp-content/plugins/cdn-sync-tool/lib/Cdn/Aws.php on line 114
   
       Warning: fopen(/home/meh/public_html//home/meh/public_html/wp-content/authors/Gareth_Epps-791.png) [function.fopen]: failed to open stream: No such file or directory in /home/meh/public_html/wp-content/plugins/cdn-sync-tool/lib/awssdk/lib/requestcore/requestcore.class.php on line 527
   
       Warning: fstat() expects parameter 1 to be resource, boolean given in /home/meh/public_html/wp-content/plugins/cdn-sync-tool/lib/awssdk/lib/requestcore/requestcore.class.php on line 489
   
       Warning: fclose() expects parameter 1 to be resource, boolean given in /home/meh/public_html/wp-content/plugins/cdn-sync-tool/lib/awssdk/lib/requestcore/requestcore.class.php on line 276
       The stream size for the streaming upload cannot be determined. done
       ```
   
 * It appears it’s trying to find the file in the wrong place `/home/meh/public_html//
   home/meh/public_html/wp-content/authors/Gareth_Epps-791.png`
 *  Plugin Contributor [Backie](https://wordpress.org/support/users/backie/)
 * (@backie)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1907793)
 * Just tested, working in version 1.7.
 *  [artesea](https://wordpress.org/support/users/artesea/)
 * (@artesea)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1907796)
 * Cheers, worked with the upgrade
 *  [Hopflys](https://wordpress.org/support/users/hopflys/)
 * (@hopflys)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908006)
 * wordpress 3.1 Atahualpa 3.6.4 AWS S3 Cloud
    I have the latest version of the 
   plugin installed but it will not sync my theme files. The header image which 
   is stored in the images folder of the theme wp-content disappears when I click
   the sync button but does does not appear in the cloud i.e when going to the site
   the header image no longer appears. I have manually placed several images in 
   the cloud and made programming changes to reference aws so that works fine… Any
   ideas?? Thank you
 *  Plugin Contributor [Backie](https://wordpress.org/support/users/backie/)
 * (@backie)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908007)
 * Hopflys,
    can you share these programming changes?
 *  [Hopflys](https://wordpress.org/support/users/hopflys/)
 * (@hopflys)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908008)
 * Backie, I will.
    In the meantime I have made some progress. I found that with
   the theme I am using I have to create the various subfolders of the theme manually
   in my S3 bucket. I uploaded all the image files manually too. However, when I
   then try to sink files I get these error messages: Syncing [1/2210] wp-content/
   themes/atahualpa364/style.css Warning: curl_setopt() [function.curl-setopt]: 
   CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir
   is set in /nfs/c02/h12/mnt/17977/domains/paloaltoairportday.com/html/wp-content/
   plugins/cdn-sync-tool/lib/awssdk/lib/requestcore/requestcore.class.php on line
   525 done Syncing [2/2210] wp-content/themes/atahualpa364/editor-style.css Warning:
   curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated
   when safe_mode is enabled or an open_basedir is set in /nfs/c02/h12/mnt/17977/
   domains/paloaltoairportday.com/html/wp-content/plugins/cdn-sync-tool/lib/awssdk/
   lib/requestcore/requestcore.class.php on line 525 done This is way beyond my 
   limited knowledge. Can anyone help??
 *  Plugin Contributor [Backie](https://wordpress.org/support/users/backie/)
 * (@backie)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908012)
 * Hopflys you will need to turn safe mode off. If you’re on a shared host then 
   you should look for a new one. I would suggest CatN.com as the plugin was developed
   and proven to work on that platform.
 *  [brohism](https://wordpress.org/support/users/brohism/)
 * (@brohism)
 * [15 years ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908035)
 * Hopflys are you on Media Temple? I figured you are based on the directory structure
   you posted. I am too, and I’m getting the exact same error.
 *  Plugin Contributor [Backie](https://wordpress.org/support/users/backie/)
 * (@backie)
 * [15 years ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908036)
 * There has actually been a fix in the AWS sdk that would remove this bug. You 
   can grab it from [https://github.com/amazonwebservices/aws-sdk-for-php](https://github.com/amazonwebservices/aws-sdk-for-php)
   and just put it in the lib/aws directory the copy suppiled with the plugin will
   be updated in the next release.
 *  [brohism](https://wordpress.org/support/users/brohism/)
 * (@brohism)
 * [15 years ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908038)
 * [@backie](https://wordpress.org/support/users/backie/) OK I’ll give it a shot,
   thanks!

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

The topic ‘[Plugin: CDN Sync Tool] Not saving files to Amazon Cloud’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cdn-sync-tool.svg)
 * [CDN Sync Tool](https://wordpress.org/plugins/cdn-sync-tool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cdn-sync-tool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-sync-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-sync-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-sync-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-sync-tool/reviews/)

 * 13 replies
 * 6 participants
 * Last reply from: [brohism](https://wordpress.org/support/users/brohism/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-saving-files-to-amazon-cloud/#post-1908038)
 * Status: not resolved