Support » Fixing WordPress » Automatically deleting recoreds from wp_options table

  • Hello,

    One of my clients website has strange issue, it shows “Error in establishing database connection” after every week. Once we re-upload the database issue gets automatically fixed. There are no issues with database configuration.

    I found that the most of the rows in wp_options table automatically gets deleted after some days. I did following things to fix the issue.

    1. Re-install WordPress
    2. Updated Plugins
    3. Added Sucuri security and iThemes security.

    I think some external script may deleting the wp_options records.

    If anybody have any solution, please help.

    Thank you.
    Somnath Jadhav

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    You can start debugging each file by just searching delete_option or wp_options by using this plugin https://wordpress.org/plugins/string-locator/.

    If it is any code then hopefully you will find that with this approach.

    Thanks

    Hello Prashant,

    Thank you for your suggestion.

    I installed the plugin, but I am not able to access the plugin. There is no option to access string locator in tools menu.

    I tried your suggestion in notepad++, I found nothing wrong it. Let me know if I can try something else.

    God bless you.

    There must be certainly any cache issue. Please disable the plugin once in your site if it is there and if you do not have any plugin there then please let me know if there was any in past.

    Also if there is no plugin on the site then please go to cpanel and check in site files that if there is any folder there with name ‘cache’ and any cache plugin files like advance-cache.php. If yes then try renaming or deleting them.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatically deleting recoreds from wp_options table’ is closed to new replies.