Debugging

In this section, we will quickly review the different steps you can follow along to debug. 

First and foremost, the most important debugging tool you need to know about is WP_DEBUG, a boolean constant, which triggers the “debug” mode throughout WordPress.



Enable Debugging


Turn on WP_DEBUG from your wp-config.php file at the root the WordPress directory:

define( 'WP_DEBUG', true );

When set to “true,” you’ll start seeing PHP notices - and those messages might help you find the culprit. If not, you will use it to provide us an appropriate bug report.


This is likely that this constant was already defined within your wp-config file. If so, just replace the "false" by "true. 

Please make sure to disable it as soon as your error is resolved, as this is really annoying for your users to have errors scattered all around their screen. What's more, it can be dangerous since the notices can reveal details about your code, paths and other information to visitors to your site.

Logging Errors To File For Later Viewing


We also highly advise you turn on the WP_DEBUG_LOG option, which will log all the notices inside a debug.log file inside the wp-content directory. You can send us along this file. 

Therefore, if you don’t want error messages published to your site’s pages you can set WP_DEBUG_DISPLAY to false, along with WP_DEBUG_LOG set to true, and this will store all of the errors inside the file without displaying anyone of them on the front-end.

define( 'WP_DEBUG_DISPLAY', false ); 
define( 'WP_DEBUG_LOG', true ); 



Finally, in order to speed up the Support response time, before submitting any ticket on woffice.io/support, please make sure to provide us the following information.


  • Title:
  • Environment (e.g., Browser, Device):
  • Steps to reproduce:
  • Last Plugin(s) installed, if anyone: 
  • Error message displayed on the screen
  • Expected Result:
  • Actual Result:
  • URL:


The information above is taken from the WordPress codex page. If you wish to know more about the process behind the directives above please review the source codex: Debugging_in_WordPress.https://codex.wordpress.org/Debugging_in_WordPress.


As always, if you have any question, please do not hesitate to open up a ticket on our Support Desk