Title: Plugin Never Completes Optimizing Images
Last modified: April 30, 2021

---

# Plugin Never Completes Optimizing Images

 *  [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/)
 * Hi, Every day for 2 weeks we have started the manual optimization of “997 non
   optimized pictures”, and every single day it freezes around 40-50% complete. 
   The next day we start it all over again and it STILL says “997 non optimized 
   pictures” so the progress that it made was zero images? We’ve tried over, and
   over, and over again and no matter what we do, the plugin will never process 
   our images.
 * Additionally, we thought that the plugin would have the option to check all images
   on a page, then select from the dropdown menu to optimize them, but it doesn’t;
   so we have to manually click 10 images at a time to process 18,000 images?
 * We tried uninstalling the plugin and reinstalling it 3 times, and it fails to
   recognize that it was ever uninstalled, and still says “997 non optimized pictures”
   after installing it.
 * [https://pasteboard.co/JZKitT3.png](https://pasteboard.co/JZKitT3.png)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [elabranche](https://wordpress.org/support/users/elabranche/)
 * (@elabranche)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14387984)
 * Same issue!
 * 600 images to optimize and I get stuck with a spinning clock that never completes.
   The 1st run, it stopped at 7% (got stuck there).
 * Install, un-install does nothing unfortunatly.
 * Any help appreciated!
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14389570)
 * Hi [@elabranche](https://wordpress.org/support/users/elabranche/) [@joyryde](https://wordpress.org/support/users/joyryde/)
 * Thanks for using our plugin!
    In pretty big media libraries, we strongly recommand
   to run the process through the CRON process, by clicking in the right section
   of the admin panel (Process optimize on CRON), and then follow the displayed 
   instructions.
 * When you’re running through the web interface, it could be difficult for the 
   plugin to load the whole data to optimize (mainly due to server restrictions).
   
   However, If you run several time the process manually, there’s a request limitation
   around 1,000 pictures, and it won’t restart the process from the beginning. After
   several running, it will have optimized your whole Library. As this behavior 
   is laborious, we recommand the CRON method 🙂
 * Hope it will be clearer to you, and do not hesitate to ask more informations 
   if needed.
 * Cheers,
    Charles
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14389656)
 * We use WPRocket and they added this:
 * // Added by WP Rocket
    define(‘DISABLE_WP_CRON’, false);
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14389807)
 * We changed the WPRocket setting and set up the cron to run every 10 minutes, 
   but the plugin still says “997 non optimized pictures”
    -  This reply was modified 5 years ago by [joyryde](https://wordpress.org/support/users/joyryde/).
    -  This reply was modified 5 years ago by [joyryde](https://wordpress.org/support/users/joyryde/).
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14390986)
 * Hi [@joyryde](https://wordpress.org/support/users/joyryde/)
 * Since then, it should have decrease the number of unoptimized pictures through
   CRON. Check in the reSmush.it panel if there’s no message about an issue on Crons,
   and if it’s still to 997 non optimized pictures, please enable log in the right
   panel, let it run for a couple of hours, and send it us in this thread (the log
   file is called resmushit at the root of your website).
 * Best regards,
    Charles
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14393433)
 * Hi, Our hosting company says:
 *     ```
       PHP command examples:
   
       General example:
       /usr/local/bin/php /home2/joyryde/public_html/path/to/cron/script
   
       Domain-specific example:
       /usr/local/bin/ea-php99 /home2/joyryde/domain_path/path/to/cron/script
       In the above example, replace “ea-php99” with the PHP version assigned to the domain you wish to use. Look in the MultiPHP Manager for the actual PHP version assigned to a domain.
       ```
   
 * We added this job:
 * `cd /usr/local/bin/php /home2/joyryde/djdeals.com; php -q wp-cron.php`
 * But your plugin says:
 *     ```
       IMPORTANT INFORMATIONS
   
       Cronjobs seems incorrectly configured
   
       Cronjobs seems not to have run lately. Please read the following instruction page to install them correctly.
   
       Expected Frequency : Every 10 minutes
       Last run : 1 day ago
       ```
   
 *  [elabranche](https://wordpress.org/support/users/elabranche/)
 * (@elabranche)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14395097)
 * hi!
 * seems to work for me now. Sharing here if this can help anyone: looked at the
   logs (resmushit file at the root of my website) , and the script was stuck on
   a specific png. That png was 7000px x 400px. deleted it, and now the cron works
   fine.
 * For the server side, I did not get the following to work:
    /usr/local/bin/php/
   home/mysiteroot/public_html; php -q wp-cron.php or this either: cd /home/mysiteroot/
   public_html; php -q wp-cron.php
 * When I go in the plugin settings I launched it manually…then bam, works.
    on 
   the server side, I keep refreshing the resmushit log file to see whats going 
   on and its progress and seems to work.
 * The progress bar is back and running through it.
 * I guess one image was the issues, and once I removed it, back to working!
 * thanks & Cheers
    -  This reply was modified 5 years ago by [elabranche](https://wordpress.org/support/users/elabranche/).
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14395148)
 * Yes, the path to our website is /DJDeals.com
 * Our host says this:
 * PHP command example:
 * /usr/local/bin/ea-php74 /home2/joyryde/djdeals.com/path/to/cron/script
    -  This reply was modified 5 years ago by [joyryde](https://wordpress.org/support/users/joyryde/).
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14398932)
 * Hi guys
 * Thanks for these feedback.
    Not sure to understand [@joyryde](https://wordpress.org/support/users/joyryde/),
   did you managed to make cron run successfully ?
 * If not have you any access to a server console to make sure your PHP command 
   is OK ?
 * Cheers,
    Charles
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14398941)
 * We had to disable it. Your instructions to enable CRON caused both the WP Rocket
   plugin to break, and the Updraft Plus plugin to break.
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14415512)
 * Hi [@joyryde](https://wordpress.org/support/users/joyryde/)
 * I’m a bit surprised as these instructions are standard WordPress behavior. Can
   you detail me the “break” of WP rocket & updraft plus ?
 * Cheers,
    Charles
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14421654)
 * Updraft Plus stops working and stops backing up your website when you enable 
   Cron, and starts again as soon as you disable it. It gives you a large warning
   banner as well.
 * WPRocket disables it by default in htaccess.
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14438891)
 * We just left the plugin running for 24 hours to optimize the 965 images that 
   it says are non-optimized.
 * It finished and said CONGRATS, ALL OF YOUR IMAGES ARE OPTIMIZED.
 * Then we refreshed the screen, and it yet again says:
 * OPTIMIZE UNSMUSHED PICTURES
 * There is currently 965 non optimized pictures.
 * This action will resmush all pictures which have not been optimized to the good
   Image Quality Rate.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Plugin Never Completes Optimizing Images’ is closed to new replies.

 * ![](https://ps.w.org/resmushit-image-optimizer/assets/icon-256x256.png?rev=3049668)
 * [reSmush.it : The original free image compressor and optimizer plugin](https://wordpress.org/plugins/resmushit-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resmushit-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resmushit-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resmushit-image-optimizer/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [joyryde](https://wordpress.org/support/users/joyryde/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/plugin-never-completes-optimizing-images/#post-14438891)
 * Status: not resolved