Title: Lightspeed Errors
Last modified: October 19, 2021

---

# Lightspeed Errors

 *  Resolved [dr4ggs](https://wordpress.org/support/users/dr4ggs/)
 * (@dr4ggs)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/)
 * I have been seeing continual errors in lightspeed error logs:
 * ReferenceErrorphp_data is not defined
    /wp-content/litespeed/js/6c49f5c3cb9d989815a1b16ca18381a2.
   js in ?
 * ReferenceErrorCan’t find variable: php_data
    /wp-content/litespeed/js/6c49f5c3cb9d989815a1b16ca18381a2.
   js in global code
 * There are lots of slow queries eg:
    LiteSpeed\Img_Optm->img_count()
 *     ```
       SELECT COUNT(*)
       FROM <code>wp_posts</code> a
       LEFT JOIN <code>wp_postmeta</code> b
       ON b.post_id = a.ID
       WHERE a.post_type = 'attachment'
       AND a.post_status = 'inherit'
       AND a.post_mime_type IN ('image/jpeg', 'image/png', 'image/gif')
       AND b.meta_key = '_wp_attachment_metadata'
       ```
   
 * Might site has been having issues going over cpu i/o useage etc since using this
   plugin.
 * I am not a developer. I am at a loss and this is affecting my site. Please explain
   how to fix.

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

 *  [splaquet](https://wordpress.org/support/users/splaquet/)
 * (@splaquet)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-14989961)
 * I’d suggest using a browser’s developer tools, network. See if you’re loading
   guest.vary.php okay.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-14990517)
 * Hi,
 * please provide the report number , you can get it in toolbox -> report -> click“
   send to LiteSpeed”
 * the slow query is normal , it’s backend image optimization process
 * well , you can not expect zero IO or CPU when you doing image optmization in 
   background …
 * Best regards,
 *  Thread Starter [dr4ggs](https://wordpress.org/support/users/dr4ggs/)
 * (@dr4ggs)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15006416)
 * I’m still waiting on a reply to my query. I sent the report in.
 * There should be no backend image optimisation occurring because this is all turned
   off.
 * [@splaquet](https://wordpress.org/support/users/splaquet/) i can’t see this code
   at all. I’m not sure where to look.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15009855)
 * Hi,
 * once you click “send” , it will generate you a 8-letter string , please provide
   me that string to locate your report
 * Best regards,
 *  Thread Starter [dr4ggs](https://wordpress.org/support/users/dr4ggs/)
 * (@dr4ggs)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15009870)
 * VUVQSEOM
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15009956)
 * `seeing continual errors in lightspeed error logs`
 * where exactly did you see it ? which error log you referred to ?
 *  Thread Starter [dr4ggs](https://wordpress.org/support/users/dr4ggs/)
 * (@dr4ggs)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15009962)
 * See my first question.
    You can see these in all speed test software and logrocket
   software.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15010035)
 * Hi,
 * yes, I saw the first post , which makes me wonder which log you referred to ,
   because the message itself looks like something from dev tool console would show
 * I just tested with GTMetrix, but didn’t see any error message as in your first
   post , may I know where exactly can I see it ?
 * assuming it’s a JS error from dev tool console , first of all please try disable
   all the JS options , purge all , to see if error still shows , if that is gone,
   then try to narrow down which option caused and then seek how to deal with it
 * Best regards,
 *  Thread Starter [dr4ggs](https://wordpress.org/support/users/dr4ggs/)
 * (@dr4ggs)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15010075)
 * I’m not a dev. How do I disable JS options and do you mean for lightspeed only?
 * Is the wp-content lightspeed your plugin or lightspeed the hosting caching side?
 * Some of that info would have come from query monitor
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15013537)
 * Hi,
 * it should be in wp-admin -> LiteSpeed Cache -> Page Optimization -> JS options
 * Best regards,

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

The topic ‘Lightspeed Errors’ 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/)

## Tags

 * [lightspeed](https://wordpress.org/support/topic-tag/lightspeed/)

 * 10 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/lightspeed-errors/#post-15013537)
 * Status: resolved