Title: Image optimisation errors/failures
Last modified: March 29, 2024

---

# Image optimisation errors/failures

 *  Resolved [hudsontek](https://wordpress.org/support/users/hudsontek/)
 * (@hudsontek)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/)
 * I’m getting tons of failures on the image optimisation. I paid for image optimisation
   credits. A few hundred images went through at the start but then it started failing.
   
   Is this my end or Quic.cloud?
 * Thanks
 * ![](https://i0.wp.com/vandogtraveller.com/wp-content/uploads/2024/03/Screenshot-
   2024-03-29-at-21.13.34.jpg?ssl=1)

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/#post-17541766)
 * please try this :
 * edit file /plugins/litespeed-cache/src/img-optm.cls.php, at line 1167 , you will
   see `'timeout' => 60,`
 * add a line next to it , with code
 *     ```wp-block-code
       'verify' => '/path/to/wordpress/wp-includes/certificates/ca-bundle.crt/cacert.pem',
       ```
   
 * replace `/path/to/wordpress` to your actual wp path , then pull it again , see
   what it shows.
 *  Thread Starter [hudsontek](https://wordpress.org/support/users/hudsontek/)
 * (@hudsontek)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/#post-17541947)
 * OK thanks, here’s the line I added:
 * ![](https://i0.wp.com/vandogtraveller.com/wp-content/uploads/2024/04/Screenshot-
   2024-04-01-at-08.29.42.png?ssl=1)
 * Fatal error:
 * ![](https://i0.wp.com/vandogtraveller.com/wp-content/uploads/2024/04/Screenshot-
   2024-04-01-at-08.30.36.png?ssl=1)
 * ![](https://i0.wp.com/vandogtraveller.com/wp-content/uploads/2024/04/Screenshot-
   2024-04-01-at-08.34.30.png?ssl=1)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/#post-17541976)
 * yeah sorry, undo and forget about that
 * please try this
 * when you see that error happens again , grab the image URL like [https://sjc409-hyb-worker.quic.cloud/xxxx.jpg](https://sjc409-hyb-worker.quic.cloud/xxxx.jpg),
   as your screenshot , open it in browser first and make sure it loads
 * then create a php file with code
 *     ```wp-block-code
       <?php
       require('./wp-load.php');
   
       use WpOrg\Requests\Autoload;
       use WpOrg\Requests\Requests;
       use WpOrg\Requests\Response;
   
       if (class_exists('\WpOrg\Requests\Requests') && class_exists('\WpOrg\Requests\Autoload') && version_compare(PHP_VERSION, '5.6.0', '>=')) {
           Autoload::register();
   
           $complete_action = function($response, $id) {
               echo '<pre>';
               var_dump($response);
               echo '</pre>';
           };
   
           $requests = array(
               array('url' => 'https://xxxx.jpg', 'type' => 'GET',)
           );
   
           $options = array(
               'timeout' => 60,
               'connect_timeout' => 60,
               'complete' => $complete_action,
           );
   
           $responses = Requests::request_multiple($requests, $options);
   
       } else {
           echo 'No class';
       }
       ```
   
 * replace `https://xxxx.jpg` to the URL you grabbed , then open this file in browser,
   see what it returns.
 *  Thread Starter [hudsontek](https://wordpress.org/support/users/hudsontek/)
 * (@hudsontek)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/#post-17542024)
 * Ok, what error? what image? 
   I really want to stay loyal to LiteSpeed cache but
   I’m losing trust in it. It’s costing too much time and money
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/#post-17542061)
 * well , sorry for the troubling , the image optm is kind of convoluted and complex
   process , many components are involved
 * ——–
 * on this image [https://vandogtraveller.com/wp-content/uploads/2024/03/Screenshot-2024-03-29-at-21.13.34.jpg](https://vandogtraveller.com/wp-content/uploads/2024/03/Screenshot-2024-03-29-at-21.13.34.jpg)
 * there are some images links , grab any of them , open in browser and see if it
   loads the image
 * find one that actually loads image , then place it into my test script and open
   it in browser

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

The topic ‘Image optimisation errors/failures’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/image-optimisation-errors-failures/#post-17542061)
 * Status: resolved