Support » Plugin: Compress JPEG & PNG images » Ver 3.20 freezes the site

  • antonv

    (@antonv)


    After upgrading my wordpress site from

    WP 4.9 --> 5.2.2
    PHP 5.6 --> 7.1
    Compress JPEG & PNG images V2.2.6 --> 3.2.0

    I observe following:
    1. Uploading single images at a time is no problem
    2. Uploading a block of images (more than 4 at a time) the process freezes AND also kills the website on the web which indicates that the plugin is in some or other loop using all resources of the server. After a couple of minutes the server recovers.

    Above is irrespective of the setting (i) commpress in the background or (ii) compress while uploading.

    Reverting back to the older V2.2.6 plugin, I have a speedy trouble free image upload process with the updated WP and PHP.

    Irrespective of above, I value this plugin.

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

    (@tinypng)

    Hi Antonv,

    Thanks for reaching out to us.
    I’ve tried to reproduce the problem by matching the same setup you are using, but wasn’t able to get any errors – even when stressing the server.

    To get to the bottom of this, can you send us some more details? We would like to get more information about your host and phpinfo. Can you send the details to support@tinify.com?
    There are WordPress plugins available that allow you to run phpinfo, see for example https://wordpress.org/plugins/wordpress-php-info/

    We hope to hear from you soon!

    Christopher

    (@christofferalm)

    I have had similar experiences since going to WordPress 5.x and PHP 7.3 and uploading a batch of images. The site freezes for a few minutes and you get a 504 Gateway Timeout error. After a few minutes everything recovers again though, very very annoying.

    Looking at the photos this is what I see after they upload:

    Latest error: Error while connecting: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

    Plugin Author TinyPNG

    (@tinypng)

    Hi Christopher,

    Is it possible for you to ssh into your server and do a curl request to tinypng.com? If so, does it work or do you also get a 504 response?

    It could be a case of it timing out. Could you perhaps try to set max_input_time and max_execution_time to 300 seconds?

    Christopher

    (@christofferalm)

    I could do that, but the problems only started occurring when running WP 5.x. Before I could upload a batch of images without any Apache/PHP freezes so something must have happened with the code base during that time.

    Christopher

    (@christofferalm)

    I’ve adjusted the input and timeout values accordingly but no change, if I upload more than one photo it freezes. Even if I upload one, wait 10 seconds and upload another, the second one freezes the system.

    Curl -X https://tinypng.com returns the HTML correctly.

    I am at a loss here.

    Plugin Author TinyPNG

    (@tinypng)

    Hi Christopher,

    Does the problem occur typically for very large images or does it also randomly happen with small images? Who is your hosting provider? Could you also please send us your php_info? (you can do so using a plugin such as https://wordpress.org/plugins/php-info-wp/)

    Please send us this information to support@tinify.com and a developer will assist you.

    Thanks!

    Christopher

    (@christofferalm)

    I tried with several smaller images (less than 500kb) and the results are the same. I am running on a VPS since a couple of years back.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.