• Resolved deadtomorrow

    (@jackjjw)


    Hiya,

    I’ve just swapped to Imsanity from another plugin. When it works it seems great – I’ve already retrospectively reduced a load of images from years ago I’d been wanting to shrink for a long time! Thank you.

    However for lots of images I receive an http error before it tries to upload. Some have worked but most won’t. I don’t suppose this error has happened to other people?

    Thank you,

    Jack

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    If you receive an HTTP error during upload, the most common cause is that PHP is running out of memory. Image resizing can use a significant amount of memory, so see if you can increase the memory_limit setting for PHP. If you’re not sure how to do that, ask your webhost, they will be able to point you in the right direction.

    Thread Starter deadtomorrow

    (@jackjjw)

    Thanks @nosilver4u I will check that but it seems like it might be something else because image uploading works on the mobile app, and also I could resize about 100 retrospective images without a problem?

    Plugin Author nosilver4u

    (@nosilver4u)

    I suspect the mobile app has less overhead, whereas the bulk resizing process uses less memory because it’s only doing 1 resize instead of 5+.
    If it’s not a memory issue, it could be a timeout, but that would only happen if an image was taking 30-60 seconds to resize (which would be unusual). Otherwise, look in your server error logs, check with your webhost if you don’t have access to those.

    Thread Starter deadtomorrow

    (@jackjjw)

    Thanks for the info – it’s useful to hear from someone else experiencing the same problem. I’m still experiencing it too – even more so as image files keep getting bigger with new cameras. I’ve asked my hosting provider to increase the CPU and they have to 150% more but I still have the problem 🙁

    Thread Starter deadtomorrow

    (@jackjjw)

    I still have the problem personally, I’ve just upped to 7.1 as well and my server host has increased my CPU to significantly be able to handle resizing. It’s quite problem because it stops me from blogging as much 🙁

    Thread Starter deadtomorrow

    (@jackjjw)

    Very few photos are now uploading.

    Plugin Author nosilver4u

    (@nosilver4u)

    @jackjjw, try the steps that I gave kove earlier:

    At any rate, my brain is working a bit better finally, and here’s what I would do:
    First, bump it to 1GB, which would pretty much rule out any memory issues if it still doesn’t work, unless you’re uploading images that are 20-30MB or more.
    ​If increasing the memory doesn’t help, first enabling debugging mode: https://codex.wordpress.org/WP_DEBUG​
    ​Then, check out this video: https://www.youtube.com/watch?v=vAC1SVlh7o0

    Most likely, you’ll just see a 500 server error, but if you get anything different, let me know of course.

    Also, it is important to keep track of how long it takes to get the HTTP error. If it’s over 30 seconds, then you’re probably hitting a timeout. Quicker responses are usually either memory or some PHP syntax/compatibility issue.

    ​Lastly, check any server logs that are available or ask your webhost to check them for you (keep track of the times when you upload images, so they know where to look in the log files).

    NOTE: the server error logs are the single most important step in this whole process. Any errors should be logged there, especially once you have WP_DEBUG enabled.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘http error on some images’ is closed to new replies.