• Gulshan Kumar

    (@thegulshankumar)


    Environment

    • WordPress: 7.0.2
    • LiteSpeed Cache: 7.8.1
    • PHP: 8.3.32

    Fatal Error

    Uncaught Error: Call to undefined function LiteSpeed\litespeed_oc_disable_ext_cache()
    
    File:
    wp-content/plugins/litespeed-cache/src/object-cache.cls.php
    
    Line:
    586
    

    Stack Trace

    #0 wp-content/plugins/litespeed-cache/src/object-cache.cls.php(444): LiteSpeed\Object_Cache->_connect()
    #1 wp-content/plugins/litespeed-cache/src/object-cache.cls.php(389): LiteSpeed\Object_Cache->_reconnect()
    #2 wp-content/plugins/litespeed-cache/src/activation.cls.php(338): LiteSpeed\Object_Cache->update_file()
    #3 wp-content/plugins/litespeed-cache/src/conf.cls.php(511): LiteSpeed\Activation->update_files()
    #4 wp-content/plugins/litespeed-cache/src/admin-settings.cls.php(295): LiteSpeed\Conf->update_confs()
    #5 wp-content/plugins/litespeed-cache/src/admin.cls.php(146): LiteSpeed\Admin_Settings->save()
    #6 wp-content/plugins/litespeed-cache/src/admin.cls.php(70): LiteSpeed\Admin->_proceed_admin_action()
    #7 wp-includes/class-wp-hook.php(341): LiteSpeed\Admin->admin_init()
    #8 wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #9 wp-includes/plugin.php(522): WP_Hook->do_action()
    #10 wp-admin/admin.php(180): do_action()
    #11 {main}
    

    Additional Observation

    The issue was triggered immediately after enabling Memcached under Object Cache.

    Current status:

    • Memcached Extension: Enabled
    • Redis Extension: Enabled
    • Connection Test: Failed

    I understand that enabling Memcached without a running Memcached server is an invalid configuration and that the connection test is expected to fail.

    The issue was resolved immediately after enabling the Memcached server on the hosting stack.

    It would be preferable if the plugin performed a sanity check before attempting to update the Object Cache configuration. In cases where the Memcached PHP extension is available but the Memcached service is not running, the plugin should display a validation or connection error and prevent the configuration from being saved instead of triggering a fatal error. A helpful instruction is always better than showing an error message.

    Please let me know if any additional debugging information or logs would be helpful.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.