• Hi,

    For the past few months, I have been uploading images with no problems. Since doing a WordPress and Theme update, I have noticed that when I try to upload images of certain sizes via the Media Uploader, a grey box appears in the Media Library even though the image appears when I enter the associated URL. The image does not exceed 16MB which is the maximum size I have set for images. I have also tried uploading via FileZilla but have the same issue.

    I have disabled my theme but that does not seem to affect the issue. Just wondering if anyone else has come across an issue like this and if anyone has a fix?

    Thanks.

    Craig

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Craig,

    This sounds like it could be a storage/memory issue with your hosting. Are you able to check there or discuss with them to see if this is the problem? If it is then you’ll probably need an upgraded hosting plan or there could be a problem with one of your plugins (or theme) eating up too much memory.

    Hope that helps,
    Sage

    Thread Starter Craig1986

    (@craig1986)

    Hi Sage,

    Thanks for your reply. It is always appreciated.

    I have just run the ‘free -m’ command via SSH and noticed that I have reached 996m in memory where my VPS has a limit of 1GB, so you are probably right. I don’t suppose you are aware of any reliable articles that provide pointers on optimising VPS’s RAM usage? If I find any myself, that work, I will post them up here.

    Once again, thank you for the insight ??

    Regards

    Craig

    Hey Craig,

    Sorry haha, once it starts getting too much further into server territory that’s where I hand things over. One thing I would mention once you get some space is to install the P3 plugin (https://www.ads-software.com/plugins/p3-profiler/) which will let you know if there are other plugins that are hoarding memory.

    Glad I could be of assistance!
    Sage

    If your question has been answered, we would love if you would mark this topic as resolved in the right hand sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did.

    Thread Starter Craig1986

    (@craig1986)

    Hi Sage,

    You have been helpful. As for the P3 Profile plugin, I have used that before – How could I forget about using that! ??

    Best wishes with your own projects and thank you once again for your time and advice.

    Regards

    Craig

    Thread Starter Craig1986

    (@craig1986)

    Hello,

    Sorry to pop by again.

    After optimising my VPS, I have managed to get my RAM usage down to under 400MB. I still have 600+MB available but I am still having problems uploading my images. The image itself is only 59KB in size, so surely it cannot be the size of the image. Could there possible be a restriction on image dimensions with WordPress? I have never heard of this before but thought this may be a possibility as I am able to upload images with smaller dimensions but which are larger in file size.

    I do not know if this has an impact but I have modified the following variables as follows:

    memory_limit 128m
    post _max_size 8m
    upload_max_filesize 2m

    Sage has been great is highlighting the fact I should consider reducing my RAM usage or upgrading my VPS package. If anyone else is able to point me in any directions as to why I am having such difficulties, that would be great.

    As a side note, there is no mention of any errors in my error logs neither.

    Regards

    Craig

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem Uploading Images’ is closed to new replies.