Settings / widgets lost when connection error occurs (1 post)

  1. Arkadiusz Rzadkowolski
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HyperDB
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Arkadiusz Rzadkowolski
  • This topic is not resolved
  • WordPress version: 3.4.2


No tags yet.