Error during plugin activation




Wordpress LScache Plugin: Error during plugin activation

Last Updated on: Wed, 15 Apr 2026 00:00:02
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 /wp-content/plugins/litespeed-cache/src/htaccess.cls.php:528 Any help is appreciated. See also: https://wordpress.org/support/topic/error-during-plugin-activation-2/ This topic was modified 1 year, 1 month ago by tobyhage. This topic was modified 1 year, 1 month ago by tobyhage. This topic was modified 1 year, 1 month ago by tobyhage. please edit that file , add error_log( print_r(COOKIEHASH, TRUE), 3 , /your_path_to/public_html/lscwp.log ) after line 528 $vary_cookies[] = ,wp-postpass_ . COOKIEHASH now do it again , see what does it show in /your_path_to/public_html/lscwp.log are you running OpenLiteSpeed with it ? Hello, Thank you for youre reply. Youre instructions are a little bit short. I have added the error log on the last line of the file htaccess.cls.php and added the line $vary_cookies[] = ,wp-postpass_ . COOKIEHASH after line 528. But that line was already there, so it is now written two times. the log file contains ffbddc434c0af204c7a9a32562f3126f Yes i run openlitespeed. okay , now that is interesting because as you can see , it logs out the COOKIEHASH , which means it is defined , so why the PHP complaints undefined constant ? please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference