• mike3k

    (@mike3k)


    Is there any way to display a static page instead of the error message if the database is down?

    I’ve converted the static content at my site to pages in WP 1.5, but mysql occasionally goes down on my server. When that happens, I’d like visitors to see a static page with alternate content instead of an error message.

Viewing 1 replies (of 1 total)
  • Nick Momrik

    (@mtdewvirus)

    Find function wpdb in wp-includes\wp-db.php

    This is where the error message comes from when it can’t connect to the DB. You could easily do something there.

Viewing 1 replies (of 1 total)
  • The topic ‘Display static page if database is down’ is closed to new replies.