Join

How to Enable WordPress Debugging and Logging to Diagnose Issues

Don't want to mess with code snippets? Request for this to be a feature of MyListing Pro.

Instructions

  1. Create a new PHP code snippet.
  2. Copy the contents of code snippet below.
  3. Paste the contents into your code snippet.
  4. Review any notes that I’ve provided.
  5. Save and enable the code snippet.
  6. Test.

Snippet

  1. Connect to your server via FTP/SFTP.
  2. In the WordPress installation directory, open the wp_config.php file.
  3. Add the code snippet below, placing it just after the ‘That’s all, stop editing! Happy blogging’ line.
define ('WP_DEBUG', true);
define ('WP_DEBUG_LOG', true);
  1. Save the file and upload it back to your server using FTP/SFTP.
  2. Any errors generated by your site will then be recorded in the debug.log file in /wp-content/debug.log file.
  3. Refresh the page of area of your site that you’re experiencing issues with so any errors have a chance and being saved in the debug file.
  4. Send your file to our support team. (If applicable)
  5. For security and performance, disable debugging by deleting the newly added code snippets or by switching the values from “true” to “false”.