Title: Image optimization error
Last modified: July 1, 2020

---

# Image optimization error

 *  Resolved [Derezomov](https://wordpress.org/support/users/alex-mi/)
 * (@alex-mi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-optimization-error-2/)
 * Hi,
 * Whenever I “Pull images” in Litespeed Cache plugin I get an error on website 
   and I can’t optimize images. WordPress tells me the following:
 * An error of type E_ERROR was caused in line 84 of the file /…/wp-content/plugins/
   wp-stateless/lib/classes/compatibility/lite-speed-cache.php. Error message: Uncaught
   Error: Class ‘LiteSpeed_Cache’ not found in /…/wp-content/plugins/wp-stateless/
   lib/classes/compatibility/lite-speed-cache.php:84
    Stack trace: #0 /…/wp-includes/
   class-wp-hook.php(287): wpCloud\StatelessMedia\LSCacheWP->sync_image(Object(stdClass),‘/
   home/…’) #1 /…/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, 
   Array) #2 /…/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /…/wp-
   content/plugins/litespeed-cache/src/img-optm.cls.php(926): do_action(‘litespeed_img_p…’,
   Object(stdClass), ‘/home/luderior/…’) #4 /…/wp-content/plugins/litespeed-cache/
   src/img-optm.cls.php(1865): LiteSpeed\Img_Optm->pull() #5 /…/wp-content/plugins/
   litespeed-cache/src/router.cls.php(711): LiteSpeed\Img_Optm::handler() #6 /…/
   wp-content/plugins/litespeed-cache/src/core.cls.php(273): LiteSpeed\Router::han

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

 *  Thread Starter [Derezomov](https://wordpress.org/support/users/alex-mi/)
 * (@alex-mi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-optimization-error-2/#post-13168436)
 * I have contacted Litespeed and their response was:
 * “Please contact WP stateless, the error is on their file , but I think it might
   be due to our v3 that changed some API , please attach this link ([https://wordpress.org/support/topic/changes-to-api-and-cli/](https://wordpress.org/support/topic/changes-to-api-and-cli/))
   to them as well.”
 *  Plugin Author [Volodymyr Palant](https://wordpress.org/support/users/planvova/)
 * (@planvova)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/image-optimization-error-2/#post-13212944)
 * Hello [@alex-mi](https://wordpress.org/support/users/alex-mi/)
 * The fix will be included in the next release.
    Fixed on issue [https://github.com/wpCloud/wp-stateless/issues/491](https://github.com/wpCloud/wp-stateless/issues/491).
    -  This reply was modified 5 years, 9 months ago by [Volodymyr Palant](https://wordpress.org/support/users/planvova/).
 *  Thread Starter [Derezomov](https://wordpress.org/support/users/alex-mi/)
 * (@alex-mi)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/image-optimization-error-2/#post-13213740)
 * Awesome, thank you!
 *  Plugin Author [Eric Sopp](https://wordpress.org/support/users/ideric/)
 * (@ideric)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/image-optimization-error-2/#post-13384230)
 * The fix for your issue was released today with version v3.0.0. Please upgrade
   and enjoy the new features!

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

The topic ‘Image optimization error’ is closed to new replies.

 * ![](https://ps.w.org/wp-stateless/assets/icon.svg?rev=1715943)
 * [WP-Stateless - Google Cloud Storage](https://wordpress.org/plugins/wp-stateless/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stateless/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stateless/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stateless/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stateless/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stateless/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Eric Sopp](https://wordpress.org/support/users/ideric/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/image-optimization-error-2/#post-13384230)
 * Status: resolved