News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Melvin Rivera's Blog:
Creating a custom WordPress database error page
June 19, 2006 @ 05:45:40

On the All Forces blog today, Melvin Rivera has posted a new tutorial for all of those WordPress users out there wanting to make a custom database error message page.

The database connection error occurs when WordPress tries o connect to the database but does not succeed at it. When you are first installing WordPress, it can mean that your settings are incorrect. i.e. the username/password are wrong. However, if your WordPress installation is running smoothly but for some reason MySQL goes down on your server then WordPress will show that huge "WordPress, Error Establishing a Database Connection" error page that looks nothing like the rest of your site.

The error page is great when you are first setting up WordPress but it is not the most ideal for a professional website. It creates confusion for the visitor that might not even know what WordPress is. What's worst, the web developer might not even find out for hours.

He guides you through making a small modification to WordPress itself (to change the page location), including the exact code to change. He also includes a brief it of PHP code to place on this custom page to email you whenever it hits this page (so you'll know it's down). From there, it's just about creating the custom error page that fits into your template. And, of course, he suggests testing it briefly, just to ensure that everything's on the up and up. Files are included where code was referenced.

0 comments voice your opinion now!
wordpress tutorial custom error page email database down wordpress tutorial custom error page email database down


blog comments powered by Disqus

Similar Posts

Community News: Dutch PHP Conference Tickets Now On Sale

RIA Zone: Charting data from a database using Adobe Flex and PHP

Engrowe.com: How-to - Convert a RSS feed to JSON in PHP

Gonzalo Ayuso: Auto injecting dependencies in PHP objects

Edd Mann: Storing PHP Sessions/File Caches in Memory using TMPFS


Community Events





Don't see your event here?
Let us know!


code podcast community introduction language list threedevsandamaybe framework zendserver conference series developer api symfony development tips interview laravel release deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework