Call to protected method on uninstall




Wordpress LScache Plugin: Call to protected method on uninstall

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, trying to start lsCache from square one (Im seeing some weird caching issues, will start a new thread about that if they continue after this) I found that it is impossible to remove the plugin from the WordPress Plugins page. With WP_DEBUG on, I get this in error.log after hitting Delete: PHP Fatal error: Uncaught Error: Call to protected method LiteSpeed Base::load_default_site_vals() from context LiteSpeed Activation in /home/xxxx/public_html/wp-content/plugins/litespeed-cache/src/activation.cls.php:94 Stack trace: #0 /home/xxxx/public_html/wp-includes/class-wp-hook.php(287): LiteSpeed Activation::uninstall_litespeed_cache() #1 /home/xxxx/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(, Array) #2 /home/xxxx/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/xxxx/public_html/wp-admin/includes/plugin.php(1246): do_action(uninstall_lites...) #4 /home/xxxx/public_html/wp-admin/includes/plugin.php(956): uninstall_plugin(litespeed-cache...) #5 /home/xxxx/public_html/wp-admin/includes/ajax-actions.php(4545): delete_plugins(Array) #6 /home/xxxx/public_html/wp-includes/class-wp-hook.php(287): wp_ajax_delete_plugin() #7 /home/xxxx/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(, Array) #8 /home/xxxx/pub in /home/xxxx/public_html/wp-content/plugins/litespeed-cache/src/activation.cls.php on line 94 This is on a multisite installation running PHP 7.3 (also tried 7.4 and 5.6) This is fixed in https://github.com/litespeedtech/lscache_wp/commit/18233a78be5615d844840287ba89d0158dd85874 Thanks for your report. Feel free to contact us to get a QC gift for your online account.



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



Reference