Wordpress LScache Plugin: Fatal error when activating plugin
Hello, I use Openlitespeed server, and Litespeed cache plugin fails. I changed the domain name of my website and now im getting this error: Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/litespeed-cache/src/cloud.cls.php:505 Stack trace: #0 /var/www/html/wp-content/plugins/litespeed-cache/src/cloud.cls.php(465): LiteSpeed Cloud->_get() #1 /var/www/html/wp-content/plugins/litespeed-cache/src/cloud.cls.php(154): LiteSpeed Cloud::get() #2 /var/www/html/wp-content/plugins/litespeed-cache/src/data.cls.php(241): LiteSpeed Cloud::version_check() #3 /var/www/html/wp-content/plugins/litespeed-cache/src/conf.cls.php(90): LiteSpeed Data->try_upgrade_conf_3_0() #4 /var/www/html/wp-content/plugins/litespeed-cache/src/conf.cls.php(33): LiteSpeed Conf->_conf_db_init() #5 /var/www/html/wp-content/plugins/litespeed-cache/src/core.cls.php(44): LiteSpeed Conf->init() #6 /var/www/html/wp-content/plugins/litespeed-cache/src/root.cls.php(197): LiteSpeed Core->__construct() #7 /var/www/html/wp-content/plugins/litespeed-cache/litespeed-cache.php(178): LiteSpeed Root::cls() #8 /var/www/html/wp-content/plugins/litespeed-cache/litespeed-cache.php(181): run_litespeed_cache() #9 /var/www/html/wp-admin/includes/plugin.php(2286): include_once(?) #10 /var/www/html/wp-admin/plugins.php(191): plugin_sandbox_scrape() #11 main thrown in /var/www/html/wp-content/plugins/litespeed-cache/src/cloud.cls.php on line 505 Hi, what exactly do you mean change the domain name ? how did you change it ? and also please try remove it and reinstall it Best regards, Hello qtwrk I changed the domain name in options.php in every mention to it. It was a migration, from new.xxx.com to xxx.com I already removed and installed several times. What happened exactly: ? Plugin was working perfect in the old domain. ? I changed the domain in preferences and everything working fine too. ? I changed all mentions in options.php and I got general admin error (all admin fail). ? I changed the name of the plugin in FTP and was deactivated. ? I saw a message in the admin Can NOT find LSCWP path for object cache initialization in /var/www/html/wp-content/object-cache.php ? I deleted the object-cache.php file and litespeed folder located at wpcontent. ? After that, I tried to activate the plugin and I got error message mentioned in previous post, I reinstalled and I got same message everytime. Thanks. Hi, okay , please try disable/remove the plugin directory/files completely by remove directory /wp-content/plugins/litespeed then go to database -> wp_options -> search and delete all rows contains litespeed.conf after that , reinstall the plugin , see how it goes by then Best regards, I did it and I got database error. I restored the server snapshot and I did it deleting all options containing litespeed , not only litespeed.conf and it workedThanks a lot!