• Resolved Bence

    (@charybdis)


    Hi,
    so I have this problem that I cannot save or change any LiteSpeed Cache plugin settings. I change an option, and I hit Save. But after that when I reload my page, I still see the old settings.

    I can save other settings inside my wp-admin area (for example I can change core WordPress settings or other plugins’ settings), but I cannot save the LiteSpeed Cache plugin settings at all.

    So I can’t even turn on debug mode.

    I read this support page, but it didn’t help: https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#unable-to-save-changes-in-wp-admin

    I checked and wp-admin isn’t cached, and I don’t have opcache, memcached and redis enabled.

    The weird thing is that on this same server I have another WordPress install under a different domain name, with the exact same plugins, settings, and the LiteSpeed Cache plugin works there.

    I tried to clear all browser cache and cookies. I have even tried it with another web browser, but I still cannot save settings.

    WordPress version: 5.7.1
    LiteSpeed Cache version: 3.6.4
    PHP version: PHP 7.4

    In another thread I read this: https://www.ads-software.com/support/topic/options-are-not-saved-3/

    please try this :

    1. disable plugin

    2. go to phpmyadmin , search for “litespeed.conf” in wp_options tables

    3. delete all it finds

    4. re-enable the plugin , it will then re-create these deleted entries

    I haven’t tried this yet, but I also use the Quic.cloud image optimazation, and I don’t want to lose the image optimization data because I have existing optimized images.

    So what could I do?

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

    (@qtwrk)

    Hi,

    it won’t , image optm record is stored on different table

    Best regards,

    Thread Starter Bence

    (@charybdis)

    So should I navigate to my wp_options table in phpmyadmin, then search for all rows which begins with litespeed.conf, then delete those rows while the plugin is deactivated?

    I found 184 rows which begin with litespeed.conf in the wp_options table, for example:

    litespeed.conf.hash
    litespeed.conf.auto_upgrade
    litespeed.conf.api_key
    litespeed.conf.server_ip

    etc.

    should I delete all these 184 rows from the database, from the wp_options table, then re-active the plugin?

    Are you sure it won’t delete my image optimization data?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, please delete all these 184 rows

    yes , disable plugin , delete rows , re-enable it , this will lost other settings , so you can export your current setting first , after you delete the rows , you can import it back if you want to get back your previous setting and refresh the domain key.

    yes, I am not sure it won’t delete img optm data , it’s stored in wp_litespeed_img_optm table

    if you are really really so worried , you can just back up the database beforehand : )

    Best regards,

    Thread Starter Bence

    (@charybdis)

    Thanks for the quick support, it worked!

    However it is strange, because as I mentioned, I have another WordPress install on this very same server, in the exact same cpanel account, under a different domain name. And on these 2 WordPress sites I have the exact same plugins with the same versions, and of course the configuration is the same, too, because these sites are on the same server (same PHP settings). And one site works, while the another site had this issue (not able to save the plugin settings).

    And many other users have reported this same issue already, as I browsed this support forum.

    Seems like the LiteSpeed Cache plugin itself causes some corruption with the stored settings in the wp_options table, and it somehow causes this weird bug that I cannot save any plugin settings.

    Maybe could you mark this as a bug in the plugin?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, I have been tracking this since case 1 , but sadly , we were unable to obtain a reliable way to reproduce it ??

    until we can reproduce it , we can’t really investigate it how/why/what happened for this issue

    Thread Starter Bence

    (@charybdis)

    Sadly I can’t reproduce it either.
    It just happened randomly.
    Maybe the problem is that somehow even if I save the settings, the plugin doesn’t actually update the database table with the updated settings, so that if I refresh the page, I still see the old settings.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yeah , I will keep eye on this , hopefully can have a way to reproduce soon

    best regards,

    Thread Starter Bence

    (@charybdis)

    I still experience this bug on yet another domain.

    Maybe the problem is that by default “Cache Wp-Admin” is set to “ON”. And maybe when you cache wp-admin, this can cause this behavior than I cannot save the settings?

    Are you sure that it is necessary to cache the wp-admin by default?

    I think you should not cache the wp-admin by default, it can cause more harm than good.

    On another domain I set the “Cache Wp-Admin” to OFF, and now I don’t experience this error anymore. But first I had to delete the litespeed cache rows from the database.

    I don’t see any reason why should we ever cache the wp-admin?

    Anonymous User

    (@anonymized-8403166)

    We stumbled upon the same problem. Litespeed is for some reason unable to show settings as they are saved in the database. It just shows defaults. Changing any setting does update the setting in the database, but litespeed settings pages will still show the default settings after page reload.

    After deleting all litespeed tables the problem went away.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot save the LiteSpeed Cache plugin settings’ is closed to new replies.