This db-error.php
dropin enhances default "Database connection error page".
- It gives better connection error debugging for administrator when using wp-cli.
- It shows nice error message for end users.
- It returns
503 Service not available
status code instead of200 OK
- It shows database connection debugging to frontend when
WP_DEBUG
is used.
The error message page is currently only in Finnish but we have plans for adding other languages as well.
You can copy db-error.php
to your wp-content
folder. Just plug&play.
OR you can use composer so that you can automatically update it too. Put these in your composer.json:
{
"require": {
"devgeniem/better-wp-db-error": "^0.1"
},
"extra": {
"dropin-paths": {
"htdocs/wp-content/": ["type:wordpress-dropin"],
}
}
}
Output from terminal:
Error Page showed to site visitors:
We used alexphelps/server-error-pages as base for this.
GPLv3