PHP errors with LSMCD & WooCommerce




Wordpress LScache Plugin: PHP errors with LSMCD & WooCommerce

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, Im currently trying to get LSMCD with SASL auth working on a WooCommerce site, but whenever its enabled in Cache > Object I get the following PHP error on both lsphp74 and lsphp80. 443] [STDERR] PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /home//public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php:674 Stack trace: #0 /home//public_html/wp-includes/class-wp-hook.php(292): WooCommerce->add_image_sizes() #1 /home//public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #2 /home//public_html/wp-includes/plugin.php(484): WP_Hook->do_action() #3 /home//public_html/wp-settings.php(560): do_action() #4 /home//public_html/wp-config.php(96): require_once(/home/...) #5 /home//public_html/wp-load.php(37): require_once(/home/...) #6 /home//public_html/wp-blog-header.php(13): require_once(/home/...) #7 /home//public_html/index.php(17): require(/home/...) #8 main thrown in /home//public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php on line 674 The connection test shows as Passed and both extensions are showing Enabled. To set up LSMCD with SASL I have followed the instructions through on this page https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:lsmcd:new_sasl and the PHP script at the end works successfully as expected. Ive also got Redis installed, which works fine (although doesnt do SASL auth, which is what Im hoping to use for data separation when I add more sites to the server). This is on a Cyberpanel/Centos 8 server with LiteSpeed Enterprise. After a little more testing, this error doesnt occur if I use LSMCD with SASL disabled either. Hi, If you do SASL with regular memcached , does it also show the error ? Best regards, When I do SASL with regular memcached I dont get the error in the logs but the site loads very slowly, 30+ seconds for each page. I dont have much time to test the site as its a live shop but will see if I can find out where its hanging time-wise over the next few days. Hi, site loads very slowly, 30+ seconds for each page every page on front-end ? or only wp-admin area ? try enable cache wp-admin see if it helps. we do have another report about something with LSMCD SASL + LSCWP , but its complicated and slow moving in debug process. Im hoping to use for data separation when I add more sites to the server if this is your ultimate goal , then you can try use regular memcached with unix socket mode , with multiple instance to each sites , or use Redis user/pass authentication Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference