=== Plugin Name === Contributors: KenazChan Company link: http://centil.co/ Tags: alert, connection error, customization, database down, database error, email alert, monitor, responsive, template, website down Requires at least: 3.0.1 Tested up to: 4.5.3 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html With DB Error Customizer, it helps you to handle Error establishing a database connection problem easily and professionally. == Description == Database not responding is a very common issue in hosting a WordPress website. Instead of showing a blank page with an error message **Error establishing a database connection**, DB Error Customizer helps you to handle it professionally. Not only you can easily customize a beautifully designed database error page using our predefined templates, it tells your visitors that everything is under control. Below are the features of DB Error Customizer: * Comes with 5 predefined templates: * [Basic](http://demo.centil.co/db-error-customizer/basic.html) (Customizable error message, background & font color) * Pro (Customizable error message, logo and background image & font color. Premium version only) * Mystery (Customizable error message, logo, background image & font color. Premium version only) * Snow (Customizable error message, logo, background image & font color. Premium version only) * Video (Customizable error message, logo, background video & font color. Premium version only) * Preview customized output before saving * Inform search engine that the error page is temporarily (HTTP 500 Internal Server Error header) and it should not cache it * Auto send email alert to your admin when a visitor sees this error (Premium version only) * Customizable email alert (Email target, subject, content. Premium version only) * Email alert spam prevention by allowing you to set how often you should receive an email alert. (Premium version only) == Installation == Please refer the official [WordPress Plugin Installation Guide](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins) to proceed. After you've installed and enabled DB Error Customizer, you shall goto **Settings->DB Error Customizer** to customize and setup the error page. *Note: If you installed an older version earlier, please disable the plugin and remove it before installing a newer version.* == Customize DB Error Page == After enabling DB Error Customizer, you can access it at **Settings->DB Error Customizer**. Below is description of each feature: * **Template:** Drop down option for you to select a predefined templates. The selected template will unlock different other options. (Free version only supports basic template) * **Background Color:** Change background color via color picker. * **Font Color:** Change main/sub title color via color picker. * **Background Image:** Not available in free version. * **Logo:** Change company logo. Recommend to use PNG with width around 200px and height around 200px. You can upload a new image or select an existing one from WordPress Media. * **Youtube ID:** Not available in free version. * **Main Title:** The main title of database error page. * **Sub Title:** The sub title of database error page. **Preview:** When you press Preview button at the bottom of dashboard, a message box will apear at the top of dashboard with message Preview page generated successfully! Click Preview to proceed. You can press the Preview link to launch the preview page. **Setup/Update DB Error Page:** When you press Setup/Update DB Error Page button at the bottom of dashboard, the plugin will save your settings and install this customized database error page to your WordPress. The page will automatically show up to visitor when your website's database does not respond. == Screenshots == 1. Basic template (Background/font color, title and sub-title are fully customizable) == Frequently Asked Questions == = How can I check if DB Error Customizer can work on my server? = In latest release, we've introduced a new feature to allow user to test their server compatibility. You can run the test by pressing Check Compatibility button at the admin page. = There is an error when I try to preview or setup database error page = The error that you are seeing most likely is due to DB Error Customizer does not has write/read access to certain required file(s). A quick workaround is to temporarily [change the reported file permission](https://codex.wordpress.org/Changing_File_Permissions) to 777, proceed with DB Error Customizer setup and once you are done, using similar method to revert the file permission to its original state. = How can I test if the customized error page is working on my live server? = After error page setup, you can test it by: * Force stop your database service (Requires root permission). Please remember to restart database service once you are done. * Manually set invalid database configuration in your wp-config.php. Please remember to revert to original setting once you are done. = I've enabled email alert feature. However there is no email alert when my database is down = There are a few possibilities causing this: * First, please [check if your website PHP mail() function is working](https://easyengine.io/tutorials/php/test-email-sending/). If your server is using SMTP to send email, please let us know and we'll enhance the plugin to support SMTP email sending. * Second, make sure your [plugin path]/config.txt file is with [777 permission](https://codex.wordpress.org/Changing_File_Permissions). * Lastly, it might just because nobody visits your site to trigger the email alert during database down(The plugin requires a user visit to trigger email sending). == Support == Please refer the developer's site at [Centil Technology](http://centil.co). If you would like to provide feedback/contact or just drop us an email, please feel free to contact us at info[at]centil[dot]co == Changelog == = 1.3 = * Tested with WordPress 4.5.3 = 1.2 = * Enhanced plugin to better handle security. = 1.1 = * Enhanced plugin to better generate file in WordPress core system. = 1.0 = * First complete version