WP Smush Pro Not Automatically Compressing

When I go to Media and Add a new image by dragging to the browser window, the image is uploaded, but not compressed. Any reason why it wouldn't automatically compress even though that setting is on?

  • James Morris
    • WordPress Enthusiast

    Hello Frank,

    I hope you are well today.

    This is definitely an unusual behavior.

    There's a couple troubleshooting steps I'd like you to try to see if we can narrow down the cause of this problem.

    First, could you please run a plugin conflict test as outlined in the following article? This will eliminate the possibility of a conflict with another plugin. https://premium.wpmudev.org/manuals/using-wpmu-dev/getting-support/

    If that does not lead to a solution, could you please enable WP_DEBUG and provide us with the output of your debug.log file?

    To enable WP_DEBUG, change the following line in your wp-config.php file:

    define('WP_DEBUG', false);

    To this:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    After you've attempted to upload an image in Media Library, please go to wp-content/ on your server via FTP and download the debug.log file to your local computer. Then, open that file with a text editor like notepad (Windows), GEdit (Linux), or TextEdit (Mac). You can then save the file as a .txt file and upload it here as an attachment to your post.

    I look forward to seeing the results of your tests.

    Best regards,

    James Morris

  • Frank
    • Flash Drive

    Hi, I tried all the steps above. Disabling all plug-ins, etc. Also edited wp-config.php, however, it does not generate the debug.log file.

    I'm testing this on staging versions of the site on SiteGround on a default Wordpress config. Both Kraken and TinyPNG have no problems. Only WP Smush.

    Exact symptoms:
    - When going to Media > then clicking Add New, drag image onto target, image is uploaded but not smushed

    - When editing a post and adding media, same thing. Image is added but not smushed. It says the following:

    WP Smush
    Smushing in progress...

    but never completes.

  • Frank
    • Flash Drive

    I believe I've discovered the issue why your plugin isn't automatically compressing. We use SiteGround for hosting our test sites (great service and fairly inexpensive). You can create staging sites that allow you to test plugins, etc.

    So if you have a site called SiteXYZ.com, you would have a staging site called staging1.SiteXYZ.com. HOWEVER, in Wordpress, under Settings > General, the "WordPress Address (URL)" is still SiteXYZ.com and the "Site Address (URL)" is still SiteXYZ.com (instead of staging1.SiteXYZ.com, for example). For some reason, this is tripping up your plugin. Kraken and TinyPNG do not have this issue and this may end up being a problem for reverse proxy sites (like we are setting up).

    You can test it out yourself by signing up for a Wordpress site on SiteGround that points to a domain without the www (e.g. just SiteXYZ.com) and then creating staging variants. The staging variants won't automatically compress the image.

  • James Morris
    • WordPress Enthusiast

    Hello Frank,

    Thank you very much for updating us with your findings. This is a very interesting symptom and one we will be testing further.

    I'm glad you were able to figure out the reason for this. I will notify our Dev Team about this so we can look into this issue further.

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.