Fix Now- Display Error Messages in WordPress

May 16
17:42

2018

Katharine Isabella

Katharine Isabella

  • Share this article on Facebook
  • Share this article on Twitter
  • Share this article on Linkedin

what to do when you receive the dreaded WordPress White Screen of Death. WordPress by default hides all error messages from displaying.

mediaimage

This is for security reasons as error messages can actually help hackers penetrate your website.

1. So how do you display error messages in WordPress? Easy! Just add the line of code below to the top of your .htaccess file in the root directory of your WordPress website.

" php_flag display_errors on "

That’s it! Error messages will now display on your entire WordPress website.

2. Another method used to display WordPress error messages is the WP_DEBUG flag:

" define(‘WP_DEBUG’,Fix Now- Display Error Messages in WordPress Articles true); "

Just drop that line of code in your wp-config.php file and errors will start displaying.

Remember to only use these techniques to help troubleshoot Wordpress errors and remove it as soon as you are done.