Enable debug errors in WordPress

Setting WP_DEBUG to true in your wp-config.php will enable the debug mode throughout WordPress. This will cause all PHP errors, warnings, and notices to be displayed.

It's highly recommended that WP_DEBUG and WP_DEBUG_LOG be set to true during development to catch errors that might not otherwise show when set to false. This is especially useful during the development of custom modules as the css/js for the current layout will be refreshed on each page load instead of cached as it is by default.

  1. Edit the wp-config.php for your website. (cPanel / Plesk / Web & Classic / Managed WordPress / VPS)
  2. Change
    define('WP_DEBUG', false);
    to
    define('WP_DEBUG', true);
  3. On the following line, type
    define('WP_DEBUG_LOG', true);
  4. Save your changes.
  5. Using an Internet browser, visit your site to trigger the debugging log.
  6. Using your hosting account's editor, open /wp-content/debug.log.
  7. Review the contents of the debug log to identify the problem to a specific plugin, theme, or configuration option that might be causing a problem.

Once you are done with development or troubleshooting you should set WP_DEBUG to false.

More info


이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.