Title: Wp Debug Error Log &#8211; litespeed_img_optm
Last modified: September 28, 2020

---

# Wp Debug Error Log – litespeed_img_optm

 *  Resolved [woavel](https://wordpress.org/support/users/woavel/)
 * (@woavel)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/)
 * I’ve mentioned 2 errors below from my WP Debug Error Log, please assist me in
   resolving these
 * [10-Sep-2020 09:15:51 UTC] WordPress database error Table ‘****he_*****e.t***
   el_litespeed_img_optm’ doesn’t exist for query SELECT b.post_id, b.meta_value
   
   made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘
   wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters,
   LiteSpeed\Core->after_user_init, LiteSpeed\Core->proceed_action, LiteSpeed\Router::
   handler, LiteSpeed\Img_Optm::handler, LiteSpeed\Img_Optm->_rescan LIMIT 0, 500
   ORDER BY a.ID AND c.id IS NOT NULL AND b.meta_key = ‘_wp_attachment_metadata’
   AND a.post_mime_type IN (‘image/jpeg’, ‘image/png’, ‘image/gif’) AND a.post_status
   = ‘inherit’ WHERE a.post_type = ‘attachment’ LEFT JOIN `t***_litespeed_img_optm`
   c ON c.post_id = a.ID LEFT JOIN `t***_postmeta` b ON b.post_id = a.ID FROM `t****
   _posts` a [10-Sep-2020 09:15:32 UTC] WordPress database error Table ‘tr****_*****
   l.*****l_litespeed_img_optm’ doesn’t exist for query SELECT b.post_id, b.meta_value
 * [04-Sep-2020 19:37:00 UTC] WordPress database error Duplicate entry ‘2’ for key‘
   PRIMARY’ for query INSERT INTO `****l_litespeed_img_optming` ( id, post_id, optm_status,
   src ) SELECT id, post_id, optm_status, src FROM ******_litespeed_img_optm WHERE
   id IN ( 2 ) made by require_once(‘wp-load.php’), require_once(‘wp-config.php’),
   require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook-
   >apply_filters, LiteSpeed\Core->after_user_init, LiteSpeed\Core->proceed_action,
   LiteSpeed\Router::handler, LiteSpeed\Img_Optm::handler, LiteSpeed\Img_Optm->new_req,
   LiteSpeed\Img_Optm->_send_request

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

 *  Thread Starter [woavel](https://wordpress.org/support/users/woavel/)
 * (@woavel)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13465873)
 * Here’s another one:
 * [23-Sep-2020 18:31:27 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /home/****e/*****.com/wp-content/plugins/http-headers/http-headers.php on 
   line 43
    made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), 
   require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook-
   >apply_filters, LiteSpeed\Core->after_user_init, LiteSpeed\Core->proceed_action,
   LiteSpeed\Router::handler, LiteSpeed\Img_Optm::handler, LiteSpeed\Img_Optm->_rescan
   LIMIT 0, 500 ORDER BY a.ID AND c.id IS NOT NULL AND b.meta_key = ‘_wp_attachment_metadata’
   AND a.post_mime_type IN (‘image/jpeg’, ‘image/png’, ‘image/gif’) AND a.post_status
   = ‘inherit’ WHERE a.post_type = ‘attachment’ LEFT JOIN `******_litespeed_img_optm`
   c ON c.post_id = a.ID LEFT JOIN `*******_postmeta` b ON b.post_id = a.ID FROM`******
   _posts` a
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13466009)
 * Hi,
 * May I know if you have initialized image optimization and/or optimized any images
   already ?
 * Best regards,
 *  Thread Starter [woavel](https://wordpress.org/support/users/woavel/)
 * (@woavel)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13466876)
 * I had installed Regenerate Thumbnails on the recommendation of my theme developer,
   but later found out that it didn’t helped me much with my image optimization.
   So i deactivated and uninstalled it. I am not using Regenerate Thumbnails or 
   any other image optimization plugins now.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13471320)
 * Hi,
 * Yes, but have you started to use LiteSpeed Cache’s image optimization feature?
 * Best regards,
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13471364)
 * I Believe this issue is fixed in v3.5
 *  Thread Starter [woavel](https://wordpress.org/support/users/woavel/)
 * (@woavel)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13471948)
 * [@qtwrk](https://wordpress.org/support/users/qtwrk/) Yes LiteSpeed Cache’s image
   optimization feature is on and working fine.
 *  Thread Starter [woavel](https://wordpress.org/support/users/woavel/)
 * (@woavel)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13471951)
 * [@hailite](https://wordpress.org/support/users/hailite/) Thank you for acknowledging!
 * The last time i get an error was on 23rd September, since then I’ve checked my
   error logs and have not noticed any more entries. Like you said, It must’ve been
   fixed with v3.5, i hope.

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

The topic ‘Wp Debug Error Log – litespeed_img_optm’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [woavel](https://wordpress.org/support/users/woavel/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/wp-debug-error-log-litespeed_img_optm/#post-13471951)
 * Status: resolved