Title: Undefined Array Key Document Root
Last modified: May 30, 2025

---

# Undefined Array Key Document Root

 *  Resolved [richardmichael](https://wordpress.org/support/users/richardmichael/)
 * (@richardmichael)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/undefined-array-key-document-root/)
 *     ```wp-block-code
       [30-May-2025 16:15:06 UTC] PHP Warning:  Undefined array key "DOCUMENT_ROOT" in /home/mywebsite/public_html/wp-content/plugins/litespeed-cache/src/utility.cls.php on line 803
       ```
   
 * This error would show up in error_log, and now that I have enabled WordPress’s
   dedicated debug_log, it is populating that file instead. Is there something I
   should do to make sure this array key is defined?
 * I’ve got multiple websites on different hosts. This error has shown on all web
   hosts at least once. So it isn’t necessarily a problem with just a single web
   host.

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

 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/undefined-array-key-document-root/#post-18491376)
 * [@richardmichael](https://wordpress.org/support/users/richardmichael/) please
   create a report and share the ID.
   From LSC => Toolbox => Reports => click on “
   Send to Litespeed”
 *  Thread Starter [richardmichael](https://wordpress.org/support/users/richardmichael/)
 * (@richardmichael)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/undefined-array-key-document-root/#post-18491444)
 * Sure thing,
 * **UZMBEVLR**
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/undefined-array-key-document-root/#post-18496276)
 * [@richardmichael](https://wordpress.org/support/users/richardmichael/) thank 
   you for report and sorry for waiting.
   I’ve looked over the line 803 and searched
   in LSC to see if that variable is being changed.I cannot find any place.Try deactivating
   plugins(one by one) or switch theme, and see which changes the value.

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

The topic ‘Undefined Array Key Document Root’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [litetim](https://wordpress.org/support/users/litetim/)
 * Last activity: [11 months, 3 weeks ago](https://wordpress.org/support/topic/undefined-array-key-document-root/#post-18496276)
 * Status: resolved