• Resolved joelkriteman

    (@joelkriteman)


    Hello

    I had used the old version of this plugin a few months ago but it stopped working as the developer was no longer updating it so it’s great that you have taken over.

    I’ve just tried using yours and when I hit the synchronize button I see the following error message:

    There was an error processing your request:

    {“readyState”:4,”responseText”:””,”status”:500,”statusText”:”Internal Server Error”}

    Do you know what might cause this? It’s a dedicated server so I can ask the tech guys to make any necessary config changes.

    It’s the same site I was able to use the previous version of this plugin on before it got outdated and I don’t believe anything has changed on the server.

    Thanks very much

    Joel

    https://wordpress.org/plugins/rackspace-cloud-files-cdn/

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

    (@paypromedia)

    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.

    Thread Starter joelkriteman

    (@joelkriteman)

    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

    Plugin Author paypromedia

    (@paypromedia)

    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!

    Thread Starter joelkriteman

    (@joelkriteman)

    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

    Plugin Author paypromedia

    (@paypromedia)

    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.

    Thread Starter joelkriteman

    (@joelkriteman)

    That sounds perfect 🙂

    I hope to have it integrated onto the live site in the next couple of days.

    Thanks again

    Joel

    Plugin Author paypromedia

    (@paypromedia)

    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!

    Thread Starter joelkriteman

    (@joelkriteman)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Internal server error message’ is closed to new replies.