Fatal error with PHP 8.0




Wordpress LScache Plugin: Fatal error with PHP 8.0


when saving from /wp-admin/options.php `[07-Dec-2021 14:10:11 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/litespeed-cache/src/cloud.cls.php:505 Stack trace: #0 /wp-content/plugins/litespeed-cache/src/cloud.cls.php(465): LiteSpeed Cloud->_get() #1 /wp-content/plugins/litespeed-cache/src/cloud.cls.php(154): LiteSpeed Cloud::get() #2 /wp-content/plugins/litespeed-cache/src/data.cls.php(247): LiteSpeed Cloud::version_check() #3 /wp-content/plugins/litespeed-cache/src/conf.cls.php(92): LiteSpeed Data->try_upgrade_conf_3_0() #4 /wp-content/plugins/litespeed-cache/src/conf.cls.php(33): LiteSpeed Conf->_conf_db_init() #5 /wp-content/plugins/litespeed-cache/src/core.cls.php(44): LiteSpeed Conf->init() #6 /wp-content/plugins/litespeed-cache/src/root.cls.php(197): LiteSpeed Core->__construct() #7 /wp-content/plugins/litespeed-cache/litespeed-cache.php(178): LiteSpeed Root::cls() #8 /wp-content/plugins/litespeed-cache/litespeed-cache.php(181): run_litespeed_cache() #9 /wp-settings.php(357): include_once(/home/behanhzu/?) #10 /home/behanhzu/wp-config.php(108): require_once(/home/behanhzu/?) #11 /wp-load.php(55): require_once(/home/behanhzu/?) #12 /wp-admin/admin.php(34): require_once(/home/behanhzu/?) #13 /wp-admin/options.php(19): require_once(/home/behanhzu/?) #14 main thrown in /wp-content/plugins/litespeed-cache/src/cloud.cls.php on line 505` Hi @knutsp Thank you for the reporting. Does this always happen on your site? Or just happen in some scenarios? Dont know what triggers it in terms of user actions. But since its a type error and you have file, line number and trace, I guess its not hard to find and fix. Hi @knutsp Thank you for the clarification. You are right Just want to make sure from your side if it is a generic issue and always happening since it is a fatal error. Will check into this and fix it in the new release. Best regards, Abe Hi @knutsp I just checked into this but could not reproduce this. Never got the _summary as string and it has always been array during the tests. Tried both PHP 8.0 and 7.3, same result. So looks like this is really a corner case. Are you able to reproduce it? Or could you please check the litespeed.cloud._summary option value in the options table? Best regards, Abe
Do you need help?
We are online almost any time and ready to answer any question. The answer to your question will come faster than it takes you to release the mouse button.

Ask A Question