Title: Fatal error with PHP 8.0
Last modified: December 7, 2021

---

# Fatal error with PHP 8.0

 *  Resolved [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-0-5/)
 * 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`

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

 *  [usabe](https://wordpress.org/support/users/usabe/)
 * (@usabe)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-0-5/#post-15145235)
 * Hi [@knutsp](https://wordpress.org/support/users/knutsp/)
 * Thank you for the reporting. Does this always happen on your site? Or just happen
   in some scenarios?
 *  Thread Starter [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-0-5/#post-15145316)
 * Don’t know what triggers it in terms of user actions.
 * But since it’s a type error and you have file, line number and trace, I guess
   it’s not hard to find and fix.
 *  [usabe](https://wordpress.org/support/users/usabe/)
 * (@usabe)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-0-5/#post-15147780)
 * Hi [@knutsp](https://wordpress.org/support/users/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
 *  [usabe](https://wordpress.org/support/users/usabe/)
 * (@usabe)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-0-5/#post-15148166)
 * Hi [@knutsp](https://wordpress.org/support/users/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

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

The topic ‘Fatal error with PHP 8.0’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [usabe](https://wordpress.org/support/users/usabe/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-0-5/#post-15148166)
 * Status: resolved