WP Smush
[resolved] PNGs constantly Timing Out (10 posts)

  1. Brandon White
    Posted 2 years ago #

    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.


    Posted 2 years ago #

    Hi @aschx,

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

    Can you just try smushing same PNG images from here http://www.smushit.com/ysmush.it/ and let me know the result?

    Best Regards,

  3. Brandon White
    Posted 2 years ago #

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

    Posted 2 years ago #

    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,

  5. Brandon White
    Posted 2 years ago #

    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.

  6. 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)wpmudev.org with the subject line Attn: Jack Kitterhing


    Kind Regards

  7. Brandon White
    Posted 2 years ago #

    Hello Jack,

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

  8. 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

  9. 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 Smush.it 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 smash.it actions on existing images?

    Try this. Go to Settings > Media on that page you will see a section for Smush.it. 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 Smush.it. Set the checkbox in the first column of that row. Above the listing is the actions drop down. From the drop down select Bulk Smush.it 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 auo-smush.it 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.

  10. 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Smush
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.