Title: Chmod error
Last modified: January 5, 2020

---

# Chmod error

 *  Resolved [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/chmod-error-2/)
 * I enabled the cron version of the plugin on one of my sites, but despite setting
   it up correctly, it didn’t seem to run. I tried to manually run “process images”
   using the button on the resmush.it page, and I get the following error in the
   log:
 * Got error ‘PHP message: PHP Warning: chmod(): Operation not permitted in ../public_html/
   wp-includes/class-wp-image-editor-imagick.php on line 686
 * It looks like a permissions issue, but the permissions are the same on both my
   sites and the config is the same, so I’m not sure what could be causing this.
   Any ideas? Thanks!

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

 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/chmod-error-2/#post-12294031)
 * Ok, so it turns out the optimization is working properly, it’s just that the 
   status page shows two unoptimized images. When I try to run the optimization,
   it fails on these two images. If I upload new images, they optimize fine.
 * Is there a way to figure out which two images it thinks need optimization so 
   I can remove them from the dashboard?
 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/chmod-error-2/#post-12312161)
 * It’s ok, I figured out the location of the resmush.it log file and identified
   and removed the images that were causing the issues.
 *  [hshah](https://wordpress.org/support/users/hshah/)
 * (@hshah)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/chmod-error-2/#post-12321894)
 * [@lozula](https://wordpress.org/support/users/lozula/) where did you find the
   file?
 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/chmod-error-2/#post-12323003)
 * [@hshah](https://wordpress.org/support/users/hshah/) If you enable logging, resmushit.
   log should be in the root of your wordpress install
 *  [hshah](https://wordpress.org/support/users/hshah/)
 * (@hshah)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/chmod-error-2/#post-12323041)
 * [@lozula](https://wordpress.org/support/users/lozula/) nothing there… will try
   creating an empty one and see what happens 🙂

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

The topic ‘Chmod error’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [hshah](https://wordpress.org/support/users/hshah/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/chmod-error-2/#post-12323041)
 * Status: resolved