Support » Plugin: HyperDB » Settings / widgets lost when connection error occurs

  • I would like to inform you that setting db_connection_error should be mandatory, as it may cause lots of problems for many people.

    We have noticed on our huge multisite network that if we don’t set this callback (to kill wp) and some “get_option” queries appear (while no database is available), plugin/widget settings might get “deleted”.

    It happens like that because most plugins have this workflow:

    update_option(“xxx”, “default”);

    Since no database is available get_option returns null and it’s value might get updated if database becomes responsive by the time plugin wants to set default settings.

  • The topic ‘Settings / widgets lost when connection error occurs’ is closed to new replies.