@divvy
This can happen if you are using an Object Caching plugin (i.e. Object Cache Pro or other plugin) on your website, or if you are caching the WordPress admin.
If you are using an object cache on your server, try flushing the object cache after installing Site Reviews.
See also: https://ww.wp.xz.cn/support/topic/cant-change-plugin-settings-2/
@divvy
Some Hosting providers (i.e. Closte) have a Persistent Object Cache option. While the persistent object-cache can improve the PHP execution time, it is usually disabled by default because many plugins don’t work well with a persistent object-cache.
Here is something to try. This code snippet will flush the WordPress cache after the Settings are updated. This may fix your problem if your Hosting provider has a persistent object cache enabled.
do_action('site-reviews/settings/updated', 'wp_cache_flush');
Please let me know if this fixes the problem so I can add a fix to the core plugin.
I have tracked down the cause of this problem, it happens when you have an object cache enabled on your website/server.
Due to the way the object cache returns an empty string value for a non existing setting key (instead of FALSE), it means that the plugin’s setting key is never stored to the database which makes it unable to update.
The next update will add support for object caching of the plugin settings.
If you cannot wait for the update, here are the steps to fix it:
- Deactivate Site Reviews
- Disable your object cache plugins (or turn off object caching on the server)
- Enable Site Reviews
- Save the Site Reviews settings (this will create the database key for the settings)
- You may now re-enable the object cache
If you are unable to temporarily deactivate the object cache, then you can do the following instead:
- Install the Code Snippets plugin
- Create a new code snippet with the following PHP code:
add_action('init', 'wp_cache_flush');
- Activate the snippet
- Go to the Site Reviews settings page and save the settings (it should now work!)
- Deactivate the snippet
- Delete the Code Snippet plugin (unless you still need it).
Thread Starter
Divvy
(@divvy)
WOW! Great support I would love to see this same level of suport in all the wordpress plugins, 5 stars! Thank you very much, my friend!
-
This reply was modified 3 years, 2 months ago by
Divvy.