• Resolved swinggraphics

    (@swinggraphics)


    Compression is completing, but I’m getting error messages.

    If I use the Compress button on the Media page, the spinner stops after a while, and the message remains “N sizes not compressed”. If I click the button again, it changes to “N sizes compressed” with the green check mark almost immediately.

    On the Compress All Images page, each item gets “Internal error”, but if I close the window and go to the Media page, they have “N sizes compressed” with the check mark.

    I have debug turned on, and there are no messages in the log. I am using a Divi child theme and have no other plugins enabled. I have disabled all server side caching.

    The spinner seems to stop after 30 seconds. max_execution_time and max_input_time are both 120. memory_limit is 256M.

    https://wordpress.org/plugins/tiny-compress-images/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter swinggraphics

    (@swinggraphics)

    I let the All Images run for a while. Some of them completed without error messages. I think the error messages appear after 60 seconds. On the Media page, many items have a spinner next to them that does not go away.

    Plugin Author TinyPNG

    (@tinypng)

    Hi,

    Thanks for your feedback, and also for your positive review!
    Lets see if we can find out what’s causing the errors that you’re reporting.

    First of all, I take it that you’re using the last version of our plugin (1.7.2)?
    Your comment that the error messages appear after about 60 seconds makes it sound as if something is timing out. Not really helpful if nothing is being written to your log though.
    Do you notice any similarity between the images that are failing? Are all image sizes failing, or only specific image sizes? Are the images that are failing very large in size? Generally, images should compress within a minute. Only really large images (10MB+) can take a while longer.

    It could possibly also be helpful to create an account for us so that we can have a look on your install to see if we can find out what’s going wrong exactly.

    Plugin Author TinyPNG

    (@tinypng)

    In your review I noticed that you’re also getting the “Modified after compression” message directly after compressing images.
    We save the file size of each image size per image as metadata in the WordPress database. When you visit the Media Library, we compare the file size that we saved in the database with the file size on your file system. When both are not equal, you will get the “Modified after compression” message shown for the image.

    Could you perhaps check for which file sizes you get this message, and if you notice anything strange on the file system?

    Thread Starter swinggraphics

    (@swinggraphics)

    I don’t have any images over ~800kb. The images that register an “internal error” on the Compress All page do actually complete and have viewable stats on the Media page. This Dropbox folder contains screenshots of a sample of similar images:
    https://www.dropbox.com/sh/aupqys9z6fbkr0h/AACk_eqhFCzrdha8lVlGMPwia/Tiny?dl=0

    I have returned 3 days later and still see spinning wheels and “1 size being compressed” next to a bunch of images. Is a process truly running, or is this meta data you add? If it’s meta data, maybe that should wait to be added until an image is actively being processed.

    I have sent an email to support with the requested account information. Thanks for your support!

    Plugin Author TinyPNG

    (@tinypng)

    Thanks for providing us an account to check with, and for your screenshots. Your screenshots indeed clearly show that eventually those images were successfully compressed.

    As I mentioned in a previous post, our plugin sets various metadata on your images in order to store details, but also to keep track of the status. I’m afraid that for some reason, these images that are still “being compressed” have for some reason failed compressing.

    When an image is sent to our API for compression, we set metadata so that we can show in WordPress that an image is being compressed. We stop showing this message when our plugin receives a response from our API that the compression is done. At that moment, the result is also stored in the metadata.

    So for these images that are still “being compressed” after days, they were actually sent to our service to be compressed, but they are indeed no longer being compressed, and our plugin has instead failed to recognise that no response was returned from the API.

    Unfortunately, we currently have no option in the plugin to reset this status. If you’re technical you could remove the metadata entry that our plugin creates in your database. Otherwise, your only option would be to remove the image and add it again.

    We could improve this possibly in a future update, but it’s quite a tricky thing, as some really large image could take minutes to complete. In any case, we’ll certainly consider improving this part of our plugin.

    Hope this clears things up a bit. Thanks again for the feedback, and we’ll certainly use your input to improve our plugin!

    Thread Starter swinggraphics

    (@swinggraphics)

    30% of my media library are stuck with “1 size being compressed”. I removed lines 226-228 and 230 from class-tiny-plugin.php. This lets me manually process images until they complete.

    Plugin Author TinyPNG

    (@tinypng)

    That would work as well 🙂

    Please do let us know if you are still running into the same problem with newly adding images being stuck. I’m hoping it was a hickup in the connection between your WordPress install and our API, as we don’t often have users report this problem. Although I don’t really have an explanation yet of the large volume of the images that are stuck in your case.

    Plugin Author TinyPNG

    (@tinypng)

    A new version of the plugin is released today, it includes quite a few improvements as well as a change that will stop the spinners after a while.

    We would be happy to hear your experiences with the new version!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bogus "sizes not compressed" and "Internal error" messages’ is closed to new replies.