• Resolved Imagemountbest

    (@mountbest)


    When I try to deactivate LSCache the error-log file reports the following error:

    In wp-config.php: WP_CACHE could not be set to false during deactivation!

    At many websites I have trouble deactivating and deleting LSC plugin. There are bits and pieces of junk left in many places, so I never know if the plugin is completely disabled. I need to disable LSC plugin to diagnose potential conflicts.

    What should I do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Imagelitetim

    (@litetim)

    @mountbest do you have filter: litespeed_wpconfig_readonly set to true?
    OR PHP can write to wp-config?

    • This reply was modified 10 months, 2 weeks ago by Imagelitetim.
    Plugin Support Imagelitetim

    (@litetim)

    Also, please tell me if you see an error message in Admin?

    Thread Starter Imagemountbest

    (@mountbest)

    wp-config.php is read only, which is a recommended security setting.

    Yes, I see warning in the Admin when I try to deactivate, delete or reinstall your plugin.

    I think plugins should not be allowed to modify wp-config.php for security reason. And if changes are required – they should be clearly documented. What changes LSC tries to do to system files when it is installed, activated, deactivated and deleted?

    Plugin Support Imagelitetim

    (@litetim)

    @mountbest
    I specifically chosen to ask if PHP has access to write wp-config.php Default WP, files and folders, permissions are presented here: https://developer.wordpress.org/advanced-administration/server/file-permissions/ (you might know how permissions works, BUT this is what WP needs).

    LSC will need to edit wp-config.php to automate add/remove WP_CACHE constant that is needed for site to use cache mechanisms. See: https://scanfully.com/docs/wordpress-health/what-does-the-wp_cache-constant-do/

    We are making changes to:
    wp-config.php
    .htaccess
    – folder /wp-content/litespeed where we save all the info we generate and use: minified css, combined css, ucss, ccss,ucss, crawler, logs…
    – database: settings, post meta, custom tables

    Pretty much these are the files and places we change. I can help you with more specific and also the plugin code is open source and you can look over it.

    Thread Starter Imagemountbest

    (@mountbest)

    What changes to wp-config.php do I need to make to DEACTIVATE the LSC plugin? Setting WP_CACHE constant to false? Deleting this constant?

    Plugin Support Imagelitetim

    (@litetim)

    You can do any of them, but I would delete the constant.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Dectivation problem’ is closed to new replies.