Title: Image Optimization Stuck
Last modified: January 2, 2024

---

# Image Optimization Stuck

 *  Resolved [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/)
 * Hi,
 * I started optimizing images on three separate website and all have the same problem.
   Connection to quic.cloud is fine.
 * Completes first optimization request, but won’t pull images. When I try another
   optimization request I get…
 * You have too many notified images, please pull down notified images first.
 * I try to pull images…
 * Started async image optimization request.
 * But no images pulled.
 * The notice… Pull cron is running keeps popping up randomly.
 * I left both crons running overnight with no results.
 * I get this in error log…
 *     ```wp-block-code
       01/02/24 07:47:52.297 [24.229.185.28:61775 1 Tsa] 🗜️ allowance_max 200 wet_limit 1
       01/02/24 07:47:52.297 [24.229.185.28:61775 1 Tsa] 🗜️ preparing images to push
       01/02/24 07:47:52.298 [24.229.185.28:61775 1 Tsa] 🗜️ ❌ Too many notified images (10 > 5)
       ```
   
 * Thanks in advance, Sean

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17313978)
 * please provide the report number
 * you can get it in toolbox -> report -> click “send to LiteSpeed”
 *  Thread Starter [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17314000)
 * Report number: **OJSSWNJF**
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17314030)
 *     ```wp-block-code
       <?php
   
       require( './wp-load.php' );
       $args = array(
         'timeout'   => 100,
         'blocking'  => true,
         'sslverify' => false,
         // 'cookies'   => $_COOKIE,
       );
   
       $url = 'https://domain.com/wp-admin/admin-ajax.php?action=async_litespeed&nonce=123123123&litespeed_type=imgoptm_force';
       $result = wp_remote_post(esc_url_raw($url), $args);
   
       echo '<pre>';
       var_dump($result);
       echo '</pre>';
       ```
   
 * please create a php file with above code , put it at same dir as your wp-config.
   php dir , replace `domain.com` to yours and open it by browser , see what it 
   returns
 * and also please do me a full screenshot on image optm page.
    -  This reply was modified 2 years, 5 months ago by [qtwrk](https://wordpress.org/support/users/qtwrk/).
 *  Thread Starter [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17315026)
 * [https://alexandraandnicolay.com/optm.php](https://alexandraandnicolay.com/optm.php)
 * [https://alexandraandnicolay.com/ImageOptimizationClassicPress.png](https://alexandraandnicolay.com/ImageOptimizationClassicPress.png)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17316485)
 * yeah , on that optm.php , you can see it gets a 403 error , that means something
   forbids the access to `wp-admin/admin-ajax.php` by script , this is needed for
   image optm
 * please check your security setting or similar
 *  Thread Starter [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17318010)
 * Can’t find anything that would block admin-ajax.php.
 * I did find this error in the log…
 *     ```wp-block-code
       [STDERR] PHP Fatal error:  Uncaught Error: Class "WpOrg\Requests\Autoload" not found in /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-content/plugins/litespeed-cache/src/img-optm.cls.php:1128\nStack trace:\n#0 /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-content/plugins/litespeed-cache/src/img-optm.cls.php(885): LiteSpeed\Img_Optm->pull()\n#1 /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-content/plugins/litespeed-cache/src/task.cls.php(96): LiteSpeed\Img_Optm::async_handler()\n#2 /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-includes/class-wp-hook.php(287): LiteSpeed\Task::async_litespeed_handler()\n#3 /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()\n#4 /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-includes/plugin.php(458): WP_Hook->do_action()\n#5 /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-admin/admin-ajax.php(179): do_action()\n#6 {main}\n  thrown in /home/alexandraandnico/domains/alexandraandnicolay.com/public_html/wp-content/plugins/litespeed-cache/src/img-optm.cls.php on line 1128\n
       ```
   
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17319230)
 * this error will be fixed in next release, but you sitll need to figure out why
   admin-ajax.php was blocked , it is critical step for image optm
 *  [laumi57](https://wordpress.org/support/users/laumi57/)
 * (@laumi57)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17319389)
 * Hello,
   I would like to intervene in this post. I have exactly the same problem,
   I ran the PHP script suggested above with the same result. I looked for what 
   could influence admin-ajax.php but I can’t find anything. I’m looking for some
   clues because I don’t know where to look.
 * Note: I’m running a multisite and the offending configuration isn’t the main 
   site. I optimized the whole site without any problem the first time, with the
   CloudFlare CDN, but my site wasn’t serving Webp (?) correctly. So I deleted everything
   as Litespeed allows and started again, but this time with quic.cloud CDN. Since
   then I’ve had the same problem as Sean.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17321959)
 * CF may block it , specially if you have high-security setting or enabled bot-
   fight mode

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

The topic ‘Image Optimization Stuck’ 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/)

 * 9 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/image-optimization-stuck-5/#post-17321959)
 * Status: resolved