Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:lscwp:troubleshooting:image_optimize_error [2018/02/19 23:28]
qtwrk [Solustions]
litespeed_wiki:cache:lscwp:troubleshooting:image_optimize_error [2019/07/02 15:09] (current)
Lisa Clarke [Generic Solution] Proofreading
Line 1: Line 1:
 ======How to Fix Image Optimization Errors ====== ======How to Fix Image Optimization Errors ======
 There are a number of different warning/​error messages you may see after you've sent an image optimization request. This is your guide to those messages. There are a number of different warning/​error messages you may see after you've sent an image optimization request. This is your guide to those messages.
 +
 +===== Generic Solution =====
 +
 +If your error message is not found below, please first try this, which should fix most issues you may encounter:
 +
 +  - Press the **Clean up Unfinished Data** button
 +  - Re-send optimization request
 +
 +{{:​litespeed_wiki:​cache:​lscwp:​troubleshooting:​img-opt1.png|}}
 +
 +
 +Other things you may need to check:
 +
 +  - Security plugins may interfere in the image optimization process. Try disabling your security plugin temporarily ​
 +  - Plugins that control page access, like maintenance mode, spam shield, additional authentications page, HTTP/HTTPS alteration, hot-link protection rewrite rule, etc. could also interfere with image optimization. If you have these, try disabling them temporarily.
  
 ===== Too Many Errors ===== ===== Too Many Errors =====
Line 10: Line 25:
 Have you already optimized your images with another plugin? This can cause a conflict. Please restore the images to their original sizes and try requesting LiteSpeed optimization again. Have you already optimized your images with another plugin? This can cause a conflict. Please restore the images to their original sizes and try requesting LiteSpeed optimization again.
  
 +If you haven'​t optimized your images with another plugin, please try the following:
 +  - Press the **Clean up Unfinished Data** button
 +  - Press the refresh icon next to **Optimization Summary** to reset your IAPI key.
 +
 +{{:​litespeed_wiki:​cache:​lscwp:​troubleshooting:​lscwp-image.png?​600|}}
 ===== Previous Requests in Queue ===== ===== Previous Requests in Queue =====
 ==== Error Message ==== ==== Error Message ====
Line 60: Line 80:
  
  
-''​\ufeff''​ is a Byte Order Mark (BOM) which causes the problem. Check wp-config.php+''​\ufeff''​ is a Byte Order Mark (BOM) which causes the problem. Check wp-config.php ​in your WP site's root directory in the file system:
  
 <​code>​file wp-config.php</​code> ​ <​code>​file wp-config.php</​code> ​
Line 79: Line 99:
  
  
-===== Image groups notified to pull: X ; but pull never worked ​=====+===== Image Groups Notified / Pull Never Works =====
 ==== Error Details ==== ==== Error Details ====
-Image groups notified to pull: X , but never be able to pull the images ​cron job start for few minutes ​and notified image groups number ​still remains same. +The screen displays ''​Image groups notified to pull: X''​, but the images ​are never pulled. A cron job starts ​for few minutes, but the notified image groups number remains ​the same.
- +
-Check debug.log with pull action shows:+
  
 +The debug log shows:
 <​code>​IAPI failed to decode post json: "​missed data" <​code>​IAPI failed to decode post json: "​missed data"
 Media: Failed to pull optimized img: --- '"​missed data"'</​code>​ Media: Failed to pull optimized img: --- '"​missed data"'</​code>​
  
-==== Solustion ​==== +==== Solution ​==== 
-Image optimization server keeps optimized images for 20 days ,and images will be removed if not be pulled ​in 20 days, but client side is not aware of it so it keeps try to pull images that not longer exists in server.+ 
 +The issue is due to data expiration. The image optimization server keeps optimized images for 20 days. If not pulled ​within ​20 days, the images are removed. However, the client side is not aware that the images are missing, ​so it keeps trying ​to pull images that no longer exists ​on the server. 
 + 
 +The only solution is to destroy all optimization data and re-do it. 
 + 
 +===== Failed to push to LiteSpeed IAPI server ===== 
 +==== Error Details ==== 
 +The screen displays ''​Failed to push to LiteSpeed IAPI server: "Too many errors while fetching image source files for previous request."''​ 
 + 
 +==== Solution ==== 
 +Press the **Clean Up Unfinished Data** button, and then press the refresh icon next to **Optimization Summary**. You should now be able to send a new optimization request. 
 + 
 +{{:​litespeed_wiki:​cache:​lscwp:​troubleshooting:​1.png|}} 
 + 
 + 
 +===== Error when handling your previous requests ===== 
 +==== Error Details ==== 
 +This error is similar as above one, and displays ''​Error when handling your previous requests [Send request to reset fetch error count]''​ 
 + 
 +==== Solution ====  
 +Press the **Send request to reset fetch error count** button ​in notification bar. Then, press the **Clean Up Unfinished Data'​** button, and press the refresh icon next to **Optimization Summary**. You should now be able to send a new optimization request. 
 + 
 +{{:​litespeed_wiki:​cache:​lscwp:​troubleshooting:​1.png|}} 
 + 
 +===== Lot Of Images Pushed And Pulled Back Immediately ​ ===== 
 +==== Error Details ==== 
 + 
 +When you send an optimization request, it returns a success message, and then all of the images are immediately pulled without having been optimized. 
 +You will also see a message like ''​Missing:​ XX groups (YY images)''​ on the optimization page. 
 + 
 +The debug log shows the following:​ 
 + 
 +<​code>​07/​21/​18 18:​07:​17.125 [IP:26247 1 gmZ] [Img_Optm] bypass image due to file not exist: pid 3434 /​website/​wp-content/​uploads/​2017/​09/​1-768x910.jpg</​code>​ 
 + 
 +This is typically due to a change in the image file path, for example in a WordPress site migration, where the file moves, but the database is not properly updated. When LSCWP uses the database to look for the images, it will not find them and will report them missing. 
 + 
 +==== Solution ==== 
 + 
 +Update or repair the WordPress database. 
 + 
 + 
 +===== cURL error 28: Operation timed out after 15001 milliseconds with 0 bytes received ​ ===== 
 +==== Error Details ==== 
 + 
 +Firewall blocked curl communication to our image optimization servers. 
 + 
 +==== Solution ==== 
 + 
 +Add our image optimization ​server ​[[https://​wp.api.litespeedtech.com/​ips|IPs]] to firewall white-list.
  
-Destory all optimization data and re-do it. 
  
  • Admin
  • Last modified: 2018/02/19 23:28
  • by qtwrk