[Smush Pro] Smushing interface at media library forever smushing (but it actually completed for lo

Smushing interface at media library shows forever smushing. The smushing icon goes round and round forever. But if I refresh the page it will shows that the smushing process finished already.

So everytime I smush any image in media library, I have to wait and refresh the page everytime.

It happens only with this website of mine (reedthai.com). Another website of mine that uses SmushPro has no problem at all. Both websites are on the same server, same php version, same mariaDB version.

please see screenshot for more information

  • Dimitris Kalliris
    • Support Team Lead

    Hello there Methee

    Could you please enable the WP debugger and grant support access to us to have a better look?

    How to enable WP debugger
    Access your server via (S)FTP or another file manager, edit wp-config.php file, find a line like
    define('WP_DEBUG', false);and replace it with the following (if the above line doesn’t exist, simply insert next snippet just above the /* That’s all, stop editing! Happy blogging. */ comment)

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

    Then go ahead and try to replicate the error by smushing another image in Media library until it gets stuck and you refresh the page.
    By doing so, a /wp-content/debug.log file should be created. Simply download it, rename it to debug.txt and attach it here in your next reply. If the size of the text file exceeds the 5MB limit of our blog, please use a service like Dropbox and post the shareable link instead.
    Reference: https://wpmudev.com/blog/debugging-wordpress-how-to-use-wp_debug/

    How to grant temporary support access
    No need to share any WP admin credentials, just navigate in WP admin area under WPMU DEV -> Support -> Support Access page and click on the “grant support access” button.
    Please do reply back here when access is granted because we don’t get any notifications about it.
    You can find detailed information about it here:
    https://wpmudev.com/docs/getting-started/getting-support/#chapter-5

    Thank you,
    Dimitris

  • Methee
    • Design Lord, Child of Thor

    I have granted the support access already. Please help.

    But editing wp-config.php seems not successful, i have editd it as per your recommendation but no any debug.log file created in wp-content folder. ( i have reverted back the wp-config.php to my previous version to prevent any problem)

    Anyway I have granted the support access already.

    1. I have test furthermore and found that this problem will happen only if i “seach the image name” and smush. But if I simply open the media library that show alot of images and do the smush it will be ok. (for more understanding please see the screenshot of this ticket you can see that I searched the image in the search box to get only the image that i want to smush).

    2. I have also tested the bulk smush comparing the speed of smushing and found that the website that has this problem (reedthai.com) carry on the bulk smush extremely slower than another website of mine (www.พวงหรีดธรรมะ.com). For example, reedthai.com successfuly smushed only 60 images but another website smushed for more than 400 images. This is strange both websites have smiliar images file size, and both of them are on the same server. The only difference between these two websites is the theme, they use different theme.

  • Pawel Pela
    • Ex Staff

    Hello Methee !

    Thank you for the feedback!

    I checked the issue on your site by searching for images that haven’t been smushed yet. I found a few and I’ve ran a test by first searching for “Energys” and then smushing the two found images.

    In both cases the process took a while but the images were smushed without any issues and the spinner was eventually replaced by the stats:

    [attachments are only viewable by logged-in members]

    It may actually be a browser/browser caching issue. Can you try by clearing your browser cache or check if the same issue happens when you use a different browser? I used Safari for my tests.

    As for the time differences – can you confirm that on both sites there is the same number of image sizes defined? Please see the above screenshot – it will show “12 images reduced by” etc. Is that number the same on the other site? I’m asking because the processing time depends on the number of thumbnails registered on the site (typically by the theme and plugins) – therefore if there are differences in this then the smushing process can take more or less time.

    You can check the image sizes registered on your site in Smush Pro >> Bulk Smush >> Image Sizes when you switch it to Custom. If you don’t want Smush to process some of the sizes you can deactivate them from there.

    [attachments are only viewable by logged-in members]

    Kind regards,
    Pawel