Could you ask your tech guys to look at the server error logs? Perhaps there’s a permissions issue on the server or a misconfiguration. If you could get the server error logs, that would be a big help. I’ve updated this on several of our sites and haven’t seen this issue, but I’m not dismissing that it may exist.
Hello
Thanks for your help on this. I did as you suggested and got back the following:
Looking over the error logs, one thing did stand out to me quite a bit:
[Thu Sep 18 14:35:00 2014] [error] [client 2.25.201.17] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocat
e 4296 bytes) in /var/www/vhosts/devree.carciofino.co.uk/wp-content/plugins/rackspace-cloud-files-cdn/lib/functions.php on line 509, referer
: http://devree.carciofino.co.uk/wp-admin/admin.php?page=rs-cdn-manage
This error indicates that php was not able to allocate the memory requested by a resource, which in a lot of cases is due to APC. I checked the APC configuration and it appears as though you had it only configured to allow 32M of memory. As you had plenty of memory available, I raised this to 128M.
Upping the memory limit did not resolve the issue, however we upped it further to 256M and deleted some images to reduce the number and now your plugin is working just fine.
I have about 20,000 images in the media library however as we have multiple sizes and have resized several times as this is a dev server there are actually 200,000 images in there so I guess it was just too much.
All fine now.
Thanks for your help and a great plugin.
Joel
Perfect! I’m wondering if it’s because I’m using a session variable to store the image cache (currently the cache is an array of the file names stored in a session variable). I will see what I can do to resolve this issue ASAP. Also, if you love the plugin, it would be much appreciated if you would rate it and leave a review! Thanks!
Hello
We have a large number of images but obviously if there is a way you can run it differently to need less memory that would probably be useful.
I will be very happy to leave a review and rate the plugin. I will wait until I have completed my integration so I can have an overview of the full process if that’s ok.
I’m not clear yet if moving forwards it will synchronize each time new images are uploaded to WordPress or if we will need to do this manually periodically.
Thanks
Joel
Uploading new files will automatically sync. If anything should happen when you upload new files and a file doesn’t sync, it will just be delivered from the local URL until the next time someone uploads a new file or the “sync” button is clicked in the admin interface.
That sounds perfect 🙂
I hope to have it integrated onto the live site in the next couple of days.
Thanks again
Joel
Joel, this should now work. I made some major updates to the code and released 1.3.0. If you upload them to the CDN, with folder names/paths intact, all of your files should sync!
That’s great thanks – I shall try it out. Still awaiting clinet feedback so haven’t completed my integration yet but as soon as I have will rate your plugin. Thanks very much, Joel.