Is there a way to change this message to say something else.
Would be nice to add that the site will be back in a few mins or something.
" Error establishing a database connection. This website will be back in a few minutes."
Is there a way to change this message to say something else.
Would be nice to add that the site will be back in a few mins or something.
" Error establishing a database connection. This website will be back in a few minutes."
Somewhere there is a plugin for maintenance mode, if i can remember.
May be it isn't what you want exactly, but... i guess you can not change php error messages so easy.
Would be nice to add that the site will be back in a few mins or something.
create the file, this functionality is already available.
// Load custom DB error template, if present.
if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
require_once( WP_CONTENT_DIR . '/db-error.php' );
die();
}
wp-content/db-error.php <---- assuming you havent changed your content dir.
Thank you whooami.
where is this functionality code placed? I mean in which php file?
I'm asking because it doesn't work for me even though I placed a file db-error.php in the wp-content directory
You must log in to post.