Error Establishing a Database Connection

Visiting a WordPress website I was momentarily disturbed to see a database connection error warning Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down. Are you […]

Read More… from Error Establishing a Database Connection

Cannot Modify Header Information – Headers Already Sent

Whilst transferring a website to its new hosting space I observed the white screen of death. To understand and correct the error I enabled debugging, selecting the saving to a file method. In the log file I saw that the error was given as [01-Oct-2015 12:40:30 UTC] PHP Warning:  Cannot modify header information – headers […]

Read More… from Cannot Modify Header Information – Headers Already Sent

Enable Debug Logging

WordPress supports debugging, either to the web page or to a log file. To enable WordPress debugging edit the file wp-config.php in the root of the website I like to have an entry for each of the following. define(‘WP_DEBUG’, false); define(‘WP_DEBUG_LOG’, false); define(‘WP_DEBUG_DISPLAY’, false); On a production website, or one publicly visible, its better to […]

Read More… from Enable Debug Logging