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!
Hi @elabranche @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
We use WPRocket and they added this:
// Added by WP Rocket
define(‘DISABLE_WP_CRON’, false);
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.
-
This reply was modified 5 years ago by
joyryde.
Hi @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
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
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.
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.
Hi guys
Thanks for these feedback.
Not sure to understand @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
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.
Hi @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
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.
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.