Support » Plugin: Smush Image Compression and Optimization » PNGs constantly Timing Out

  • Resolved Brandon White


    I have had this ongoing issue while uploading and trying to re-smush any PNG, no matter what size.

    Every time I try it times out, or even sometimes gives me a “504 Gateway Error” not a 404. Again, this happens only with PNGs, and I can bulk smush JPGs perfectly fine.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Predrag Dubajic WPMU DEV Support


    Hi @aschx,

    I hope you are well today and thank you for your question.

    Can you just try smushing same PNG images from here and let me know the result?

    Best Regards,

    It smushed all of my PNG files successfully with that link.

    Plugin Support Predrag Dubajic WPMU DEV Support


    Hi @aschx,

    Thank you for your reply.

    Can you try enabling WP_DEBUG mode and debug logging? To do this, just go to wp-config.php include this:


    You might already have a line for WP_DEBUG, so just make sure it’s set to true. This will create a log file under wp-content/debug.log with detailed information.

    Check the javascript console for errors. in Chrome go to “View -> Developer -> Javascript Console” and in Firefox you can go to “Tools -> Web Developer -> Console”

    Let me know what errors if any you are getting when smushing PNG images.

    Kind Regards,

    This is the error I get in JavaScript Console when attempting to do a bulk smush on just any single PNG file: Console Error

    The reason I tried a blk smush was doing a smush on any single image in the media library will throw a 504 Gateway Timeout. Also, this end-results in flagging my image as smushed with No Savings. See this image: No Savings Flag

    The debug log has no values regarding smush it, only a few notices for my theme.

    J K


    Hi there @aschx

    Hope your well today and thanks for the additional information.

    Could you send me one of the actual png images your trying to smush please?

    If that’s possible please send to contact(at) with the subject line Attn: Jack Kitterhing


    Kind Regards

    Hello Jack,

    I have submitted the email with one of the PNGs I am trying to smush.

    J K


    Hi there @aschx,

    Hope your well today.

    I have just checked this image and for me it is smushing correctly.

    I’ve forwarded this to the lead developer to take a look, appreciate your patience here 🙂


    Kind Regards

    Hi there @aschx, Just reading parts of this thread to get caught up on the issue.

    This is the error I get in JavaScript Console when attempting to do a bulk smush on just any single PNG file: Console Error

    The plugin doesn’t use and JavaScript. So if you are seeing a JS error this might be an indications of the issue.

    What version of WordPress? Multisite ore regular?

    What other plugins are you running? Specifically, what other plugins might be also trying to filter media items?

    Are you seeing the error both when uploading new images as well as bulk actions on existing images?

    Try this. Go to Settings > Media on that page you will see a section for There is a checkbox to enable debug mode. This will output some details on the plugin API communication with Yahoo. Save the settings.

    Next go to Media > Library. Find a PNG item in the listing which has not be processed via Set the checkbox in the first column of that row. Above the listing is the actions drop down. From the drop down select Bulk then click the ‘Apply’ button next to it. This will bulk smush a single image.

    You will see some debug output like the following

    Also, I enabled on upload and get the same success results.

    More then likely this is something with your specific server or WordPress configuration. As we are not seeing the same errors when attempting to process the same image.

    Hey there.

    We haven’t heard from you in awhile, so I just wanted to check in to make sure all was good.

    This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. 🙂

    Hope you have a fantastic day!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PNGs constantly Timing Out’ is closed to new replies.