Support » Plugin: LiteSpeed Cache » critical error when memcached enabled

  • Resolved Hasel29

    (@hasel29)


    Hi,

    when i turn on memcached i get a critical error on the page. I have contacted my hoster chemicloud and he says there are problems with the following files.

    Memcached Extension: Enabled
    Connection Test: Passed

    [29-Mar-2022 05:27:49 UTC] PHP Warning: array_merge(): Expected parameter 2 to be an array, null given in /home/xxxx/example.com/content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Controller.php on line 336
    [29-Mar-2022 05:27:49 UTC] PHP Warning: array_keys() expects parameter 1 to be array, null given in /home/xxxxx/example.com/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Controller.php on line 336

    I use the current wordpress version

    wordpress 5.9.2
    Litespeed Cache 4.5.0.1
    woocommerce 6.3.1

    My Report Number is NIABVCVN

    best regards
    Hasel

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please check with your provider , if this is running on Memcached or LSMCD ?

    Thread Starter Hasel29

    (@hasel29)

    Hi,

    thanks for the fast answer.

    i have ask my hoster and he replied:

    “As I have checked, it shows here that you are using the wordpress turbo plan and runs on Memcached”

    bes tregards
    Hasel

    Thread Starter Hasel29

    (@hasel29)

    Hi,

    my hoster has answered me again.

    Yes, both the Memcached extension and LSMCD cPanel feature are enabled on your cPanel but I think, right now you are not using Memcached on your LiteSpeed cache plugin as you have disabled the object cache feature on the LiteSpeed Cache plugin but the LS plugin is being handled by the LSMCD cPanel feature. You might be confused with Memcache and LSMCD, perhaps. Memcache is a PHP extension, you can check it through PHP Selector settings > Extension. While the LSMCD is a cPanel interface where you can manage a user to connect the LiteSpeed cache plugin for Memcached.

    I have deactivated it only because then the critical error occurs.

    best regards
    Hasel

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    what if you add post_meta to do not cache group ?

    best regards,

    Thread Starter Hasel29

    (@hasel29)

    Hi qtwrk,

    after exlude the post_meta i thought it worked because i could open some pages but then the critical error came again.

    In the error log now see this:

    [31-Mar-2022 12:58:12 UTC] PHP Fatal error:  Uncaught Error: Object of class stdClass could not be converted to string in /home/xxxxxx/example.com/wp-includes/class-wp-term-query.php:748
    Stack trace:
    #0 /home/xxxxxx/example.com/wp-includes/class-wp-term-query.php(307): WP_Term_Query->get_terms()
    #1 /home/xxxxxx/example.com/wp-includes/class-wp-tax-query.php(641): WP_Term_Query->query(Array)
    #2 /home/xxxxxx/example.com/wp-includes/class-wp-tax-query.php(580): WP_Tax_Query->transform_query(Array, 'term_taxonomy_i...')
    #3 /home/xxxxxx/example.com/wp-includes/class-wp-tax-query.php(394): WP_Tax_Query->clean_query(Array)
    #4 /home/xxxxxx/example.com/wp-includes/class-wp-tax-query.php(324): WP_Tax_Query->get_sql_for_clause(Array, Array)
    #5 /home/xxxxxx/example.com/wp-includes/class-wp-tax-query.php(274): WP_Tax_Query->get_sql_for_query(Array)
    #6 /home/xxxxxx/example.com/wp-includes/class-wp-tax-query.php(250): WP_Tax_Query->get_sql_clauses()
     in /home/xxxxxx/example.com/wp-includes/class-wp-term-query.php on line 748
    [31-Mar-2022 12:58:27 UTC] PHP Warning:  Illegal string offset 'body' in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Features/Onboarding.php on line 603
    [31-Mar-2022 12:58:27 UTC] PHP Warning:  Illegal string offset 'body' in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Features/Onboarding.php on line 603

    best regards
    Hasel

    Plugin Support qtwrk

    (@qtwrk)

    please try add “user_meta” into no cache group as well , then purge object cache , see how it goes

    Thread Starter Hasel29

    (@hasel29)

    Hello,

    thanks for the answer. i tried and i also added usermeta to the do not cache group. Then I removed user_meta and usermeta from the global groups, saved, cleared the entire litespeed cache and browser cache but I still get a critical error. The error log says the following:

    #0 /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(1728): WC_Cache_Helper::get_cache_prefix('product_2624')
    #1 /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(207): WC_Product_Data_Store_CPT->get_product_type(2624)
    #2 /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/class-wc-product-factory.php(81): WC_Data_Store->__call('get_product_typ...', Array)
    #3 /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/class-wc-product-factory.php(32): WC_Product_Factory::get_product_type(2624)
    #4 /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-product-functions.php(72): WC_Product_Factory->get_product( in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/class-wc-cache-helper.php on line 130
    [02-Apr-2022 05:47:27 UTC] PHP Warning:  explode() expects parameter 2 to be string, array given in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 984
    [02-Apr-2022 05:47:27 UTC] PHP Warning:  current() expects parameter 1 to be array, null given in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 985
    [02-Apr-2022 05:47:27 UTC] PHP Warning:  end() expects parameter 1 to be array, null given in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 986
    [02-Apr-2022 05:47:40 UTC] PHP Warning:  explode() expects parameter 2 to be string, array given in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 984
    [02-Apr-2022 05:47:40 UTC] PHP Warning:  current() expects parameter 1 to be array, null given in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 985
    [02-Apr-2022 05:47:40 UTC] PHP Warning:  end() expects parameter 1 to be array, null given in /home/xxxxxx/example.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 986
    [02-Apr-2022 05:47:40 UTC] PHP Warning:  stripos() expects parameter 1 to be string, object given in /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php on line 90
    [02-Apr-2022 05:47:40 UTC] PHP Fatal error:  Uncaught Error: Object of class stdClass could not be converted to string in /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php:101
    Stack trace:
    #0 /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php(101): preg_replace('#<style[^>]*>(....', '$1', Object(stdClass))
    #1 /home/xxxxxx/example.com/wp-includes/script-loader.php(2335): wp_add_inline_style('global-styles', Object(stdClass))
    #2 /home/xxxxxx/example.com/wp-includes/class-wp-hook.php(307): wp_enqueue_global_styles('')
    #3 /home/xxxxxx/example.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #4 /home/xxxxxx/example.com/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #5 /home/xxxxxx/example.com/wp-includes/script-loader.php(2105): do_action('wp_enqueue_scri...')
    #6 /home/xxxxxx/example.com/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts('')
    #7 /home/zamparel/solar-ladegeraet-test. in /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php on line 101
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, string given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, array given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, array given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, array given in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/example.com/wp-includes/class-wp-post.php on line 265
    [02-Apr-2022 05:47:59 UTC] PHP Warning:  stripos() expects parameter 1 to be string, object given in /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php on line 90
    [02-Apr-2022 05:47:59 UTC] PHP Fatal error:  Uncaught Error: Object of class stdClass could not be converted to string in /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php:101
    Stack trace:
    #0 /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php(101): preg_replace('#<style[^>]*>(....', '$1', Object(stdClass))
    #1 /home/xxxxxx/example.com/wp-includes/script-loader.php(2335): wp_add_inline_style('global-styles', Object(stdClass))
    #2 /home/xxxxxx/example.com/wp-includes/class-wp-hook.php(307): wp_enqueue_global_styles('')
    #3 /home/xxxxxx/example.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #4 /home/xxxxxx/example.com/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #5 /home/xxxxxx/example.com/wp-includes/script-loader.php(2105): do_action('wp_enqueue_scri...')
    #6 /home/xxxxxx/example.com/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts('')
    #7 /home/xxxxxx/example. in /home/xxxxxx/example.com/wp-includes/functions.wp-styles.php on line 101

    best regards
    Hasel

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    just communicated with devs of LSCWP and LSMCD

    there was some thing on the PHP extension that has issue when dealing with SASL authenticated data and leads to this error

    unfortunately there is no fix to this , please turned off the object cache.

    best regards,

    Thread Starter Hasel29

    (@hasel29)

    Hi,

    thank you for the answer, I know myself unfortunately not so well what are the data where do they come from woocommerce or from other plugins, themes or is it a matter of my hoster?

    And would there be a chance that Redis works?

    many greetings
    Hasel

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, you can try Redis

    Thread Starter Hasel29

    (@hasel29)

    Hi,

    thanks i will ask my hoster.

    best regards
    Hasel

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘critical error when memcached enabled’ is closed to new replies.