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

    (@tinypng)

    Hi,

    Thank you for the report!

    This issue could possibly be caused by either an error in the bulk optimization page, or a timeout because it takes too long to process your images. When you open the bulk compression page, various details are gathered on the compression status of your images, which in the case of a site with many images could take a while. How many images do you have in your site?

    In any case, I would expect that an error will be written to your log file when you attempt to access the bulk optimization page. Could you have a look at that and report it to us? That would certainly help us to resolve this issue.

    Thread Starter ETO

    (@esmus)

    I have over 80 K images in my site. After waiting for a few minutes, the bulk optimization page is still empty. In the library page, when I select a few images and choose the “compress images” option and apply it, it redirects me to the bulk optimization page and the page is again empty. So, it is not just related with the number of the images.

    Here are the error lines in the log file:

    [17-Jul-2016 09:03:04 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 139 bytes) in /home/…/public_html/wp-includes/wp-db.php on line 1780
    [18-Jul-2016 09:30:03 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 372 bytes) in /home/…/public_html/wp-includes/wp-db.php on line 1780
    [18-Jul-2016 09:36:14 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home/…/public_html/wp-includes/wp-db.php on line 1780

    Plugin Author TinyPNG

    (@tinypng)

    Thanks for the additional info. We managed to look into the issue and find a way of reducing memory required for the statistics on the bulk optimization page as well as drastically speeding it up. With the improvements 256MB should really be more than enough. We hope to roll out a plugin update shortly (version 2.0.2).

    Plugin Author TinyPNG

    (@tinypng)

    We’ve released version 2.0.2 of our plugin! Please give it a try, and let us know if it solves the problem you were experiencing.

    Thread Starter ETO

    (@esmus)

    I have updated the plugin and increased the memory to 512 MB, but there is no change.

    Plugin Author TinyPNG

    (@tinypng)

    So you’re still getting the same memory errors (but then with a different allowed memory size) in your log file?

    Thread Starter ETO

    (@esmus)

    Yes, I am still getting the same errors.

    From log file:
    [20-Jul-2016 09:22:59 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 94 bytes) in /home/…/public_html/wp-includes/wp-db.php on line 1780

    Plugin Author TinyPNG

    (@tinypng)

    With update 2.0.2, calculating your compression statistics, which is done when you visit the bulk optimization page, should use a lot less memory. However, your image collection is so large that for you it’s still running out of memory.

    You mentioned that you increased the memory limit to 512 MB, but that change doesn’t seem to be reflected yet. Your error message still shows that it runs out of memory at the previous setting of 256 MB.

    In the meantime, we’ll try to do some further tests to see if we can get the same error with an image collection of around your size.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bulk optimization doesn't work and appear’ is closed to new replies.