
Brand Your WordPress Blog’s Database Error Page
- Updated On 23/04/2017
- Author : Pradeep Kumar
- Topic : Featured • WordPress
- Short URL : https://hellboundbloggers.com/?p=22711
CONNECT WITH HBB ON SOCIAL MEDIA
The hardest part for a blogger would be satisfying readers faced with downtime. You have to convince them in a manner they won’t get frustrated and also please them visit again.
Whenever your WordPress has a problem connecting to your database, you can display a custom database error page to your readers. You can make those pages branded so that your blog can still shine during that downtime.
Creating Custom WordPress Database Error Page
1. Open any Text Editor – Notepad or Notepad ++ (Check some alternatives here). Now it’s time to play with your creativity and imagination. Create a creative custom Database error page now, don’t forget to use your blog’s logo there and also some apologies for the downtime.
Also if you have a status blog, ask your readers to check that, so that they can know the cause of the downtime and when your blog will be up again.
2. Save that file as db-error.php.
3. Now move this file to your wp-content section. Use FTP Client like Filezilla (check alternatives here) for doing that.
Why wp-content folder? Even if you upgrade WordPress, the contents will be still present there.
4. That’s all, bingo! You can check HBB’s Custom Database Error page using this URL :
https://hellboundbloggers.com/wp-content/db-error.php
Most of us lose our blog readers because of downtime, you can also create a Status Blog for communicating with your readers during that downtime.
Want to discuss your queries and interact with experts? You can connect with HellBound Bloggers (HBB) Facebook group for free!
Join HellBound Bloggers (HBB) and get Instant Updates. We'll also notify you with Great Deals, Discounts and other Interesting Tips. We won't SPAM or SHARE your Email Address with anyone.
YOU CAN ALSO SEARCH FOR YOUR DESIRED TOPICS:
Thank you for reading! We welcome and appreciate your comments, but at the same time, make sure you are adding something valuable to this article. If you have any serious queries, suggestions or anything related to this article, feel free to share them, we really appreciate that.
But, if your blog comments are a random "Thank you", "Useful Post", or anything that doesn't actually upscale the article, then we'll be removing them and it won't be appeared below. Thanks for understanding and thanks for connecting with us. If you want to give us any feedback or report any errors, you can kindly contact us and we'll revert back soon.
- Comments
- Facebook Comments
-
Comments
Leave a Reply
20 Comments
Facebook Comments
Mani Viswanathan
This is a nice trick. But how exactly does it work ? I guess the file name db-error.php is the key here. Maybe there is some default WordPress function to catch this name during a db error isn't it ?
S.Pradeep Kumar
Hi Mani,
That was the simplest method to replace default database error page with custom one, but still not all the DB errors can effect. You can check this for more info :
http://core.trac.wordpress.org/ticket/10883
And you can make it work for every error by this,
http://yoast.com/custom-wordpress-database-error-pages/
Vincent Raja
wow.. its really cool let me do for my blog ๐
Satish
awesome dude, can we put a wallpaper here ? ๐
maneesh
Error page of your website is very very important.As if an error page encounters in front of a visitor ,it may leave the site if that error page doesn't have same look and some interesting information.
Thatswhy its very important to make your error page informative and interesting.
Kavya Hari
It's really good package ๐ Thank you so much for given great post on here ๐ Keep rocking ๐
Aman Arora @ Hacking Forum
Surely gonna try this on my blog.
John Murphy
Interesting post that will prove invaluable in making sure an error page is not just the bland default. I've showcased on my scoop.it site
Rohit Batra
its a good alternative as showing branded errors can make users think that we know about the error and are fixing it…
sureshpeters @softwarebuzzer
super tutorial ๐ hehe….
Deepanshu
cool man.very intersting ๐
Pradeep Bhandari
Awesome…tweak gonna do it for my blog ๐ Thanks for sharing
Rohit Sane
There is a typo in the word "Administrator" on the DB-error.php page… ๐
S.Pradeep Kumar
Ha ha.. not that much perfect in English. ๐
DHARMESH BA@igurutalks
Nice option…May be we can add up our social media links to redirect people there ,that would be more awesome
Itachi Nguyen
Creating site's database error page is a brilliant idea. However, how do I know if the page shows up when the site is down?
S.Pradeep Kumar
Itachi, when your blog is down due to database issues, you won't get the default error page, you will get your custom error page. ๐
You can use the normal web browser to check that.
Sidhant
Will the blog be redirected to the db-error page automatically in case of actual database error?
S.Pradeep Kumar
Yes Sidhant, it will be automatically redirected. ๐
Sidhant
Okay, cool!:-)