[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?
-
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.
Ok, I just checked out the root of my bucket. I see:
var wp-content wp-includesClearly the
vardirectory shouldn’t be there. If I go into thevardirectory 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
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.
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. doneIt 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.pngJust tested, working in version 1.7.
Cheers, worked with the upgrade
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 youHopflys,
can you share these programming changes?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??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.
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.
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 and just put it in the lib/aws directory the copy suppiled with the plugin will be updated in the next release.
@backie OK I’ll give it a shot, thanks!
The topic ‘[Plugin: CDN Sync Tool] Not saving files to Amazon Cloud’ is closed to new replies.