Title: Error during plugin activation
Last modified: August 25, 2021

---

# Error during plugin activation

 *  Resolved [Sanil Shakya](https://wordpress.org/support/users/sonill/)
 * (@sonill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/)
 * I am using WP Multisite in Cyberpanel. WordPress is working fine without the 
   LSCache plugin but when I try to install LSCache it throws this error.
 * `PHP Fatal error: Uncaught Error: Undefined constant "LiteSpeed\COOKIEHASH" in/
   home/eadarsha.com/public_html/wp-content/plugins/litespeed-cache/src/htaccess.
   cls.php:554`
 * Any help is appreciated.

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-14804641)
 * Hi,
 * please try create a php file with content
 *     ```
       <?php
   
       require( './wp-load.php' );
   
       echo COOKIEHASH;
       ```
   
 * access by browser, what does it return ?
 *  Thread Starter [Sanil Shakya](https://wordpress.org/support/users/sonill/)
 * (@sonill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-14804683)
 * [@qtwrk](https://wordpress.org/support/users/qtwrk/)
    it returns a random string.
   I believe it is a cookie hash.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-14805707)
 * okay , now please edit that file , add
 *     ```
       error_log( print_r(COOKIEHASH, TRUE), 3 , "/home/eadarsha.com/public_html/lscwp.log" );
       ```
   
 * after line 554 `$vary_cookies[] = ',wp-postpass_' . COOKIEHASH;`
 * now do it again , see what does it show in `/home/eadarsha.com/public_html/lscwp.
   log`
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-14829704)
 * Hi,
 * I’m going to mark this topic “Resolved”, due to lack of activity.
 * If you still need help, please feel free to re-open it.
 * When re-open it, please also change the topic status to “not solved”
 * Best regards,
    -  This reply was modified 4 years, 9 months ago by [qtwrk](https://wordpress.org/support/users/qtwrk/).
 *  [lucaspereira88](https://wordpress.org/support/users/lucaspereira88/)
 * (@lucaspereira88)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-14855222)
 * I’m with the same issue. Could you help me?
 *  [bousfihaissam](https://wordpress.org/support/users/bousfihaissam/)
 * (@bousfihaissam)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-15023109)
 * I run into the same issue, did someone found a solution ?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-15023110)
 * it’s patched already, will be included in next release

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

The topic ‘Error during plugin activation’ 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

 * [lscache](https://wordpress.org/support/topic-tag/lscache/)
 * [WP Multisite](https://wordpress.org/support/topic-tag/wp-multisite/)

 * 7 replies
 * 4 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-plugin-activation-2/#post-15023110)
 * Status: resolved