• 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)
  • Plugin Support usabe

    (@usabe)

    Hi @knutsp

    Thank you for the reporting. Does this always happen on your site? Or just happen in some scenarios?

    Thread Starter Knut Sparhell

    (@knutsp)

    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.

    Plugin Support usabe

    (@usabe)

    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

    Plugin Support usabe

    (@usabe)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error with PHP 8.0’ is closed to new replies.