WordPress.org

Ready to get started?Download WordPress

Ideas

Allow a customizable "error" page

  1. marky
    Member

    12345

    When WordPress can't connect to the database (which may happen now and then in an imperfect world), a default error page is displayed. This page is not meant for regular visitors and reveals the SQL server address.

    It would be nice to specify an optional HTML error file in wp-config.php so, when an error occurs, one can choose a more appropriate public face.

    (Even more ideally, it'd be nice to include an error page with each theme, but it'd be understandably difficult to retrieve the theme location when the database is down. ;-)

    Posted: 7 years ago #
  2. Mark Jaquith
    WordPress Lead Dev

    12345

    Rather than require that the user specify the error file, we could just use a db-error.php file dropped into wp-content If it's there, use it, if not, use the default.

    We also might consider making our default error message more "visitor-friendly." The majority of people who see it are the visitors, not the site admins.

    Posted: 7 years ago #
  3. I've been wanting this forever. :D

    Posted: 7 years ago #
  4. Les Bessant
    Moderator and keeper of the Tiggers

    12345

    Yes please :)

    Posted: 7 years ago #
  5. scrapeyard
    Member

    12345

    The bigger question for me would be how to implemnet the idea as the all the plugins are permanently connected with db , so for any 'plugin' to function db connection must be there.

    The idea should be implemented outside plugins. I can have a file placed somewhere in admin or in place of wp-config etc, but that makes the installation incompatible with future versions and upgrades.

    thinking ...

    Posted: 6 years ago #
  6. nateomedia
    Member

    12345

    I'd like to see this extend beyond just database errors — I'd like to customize comment page errors too. Really, any error the user can see, I'd like to be able to design it.

    Posted: 6 years ago #
  7. webDressing
    Member

    12345

    I agree with nateomedia, if a user can see it, then we as admins should be able to modify/customize it for our site. It's just good common sense.

    Posted: 6 years ago #
  8. Huvet
    Member

    12345

    This should have been there from the beginning, wordpress spits out far PHP errors messages far too often imo.

    Posted: 6 years ago #
  9. tdavislaserapp
    Member

    12345

    What marky brings up is a little scary. This really needs to be changed. The IP address of the DB server should not be made public under any circumstance.

    Posted: 5 years ago #
  10. AndreyFrolov
    Member

    12345

    Just let the webmasters to store html page with that error message somewhere, so if database error occurs - present that to the visitor.

    Posted: 5 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    202 Votes
  • Status

    This idea has been implemented