When WP_DEBUG
is set, WordPress sets (via wp_debug_mode()
call early in core load process) the error reporting level to E_ALL & ~E_DEPRECATED & ~E_STRICT
. This means all warnings and errors except strict errors and PHP deprecated functions (not WordPress ones).
You can define your own level in a custom mu-plugin (the override needs to be called as soon as possible, but after WordPress core load). Use this page for information about the error levels you can use. An example:
error_reporting(E_ERROR | E_WARNING | E_PARSE);
Related Posts:
- Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)
- error log is going to the wrong location, WP_DEBUG_LOG is ignored
- Is it possible to change the log file location for WP_DEBUG_LOG?
- How to check if debug is true and can I use it for my own code? [duplicate]
- Suppress deprecated notices
- Debug.log file is never created?
- What is the best way to monitor PHP functions/executions?
- How to debug when error_log not working as expected
- Where should I tell WordPress where error_log messages should be written?
- How do I set up Debugging?
- Disable Debug Log Programmatically
- How to dump/log default values that are passed to hooks/filter functions?
- Using debug log in production, is that a security concern?
- Same log message keeps on printing to debug.log file thousand of times
- PHP-FPM WordPress Debug
- Wordress debug log is not working
- Why does WordPress keep showing me error messages?
- Why does WP_DEBUG only work after wp_debug_mode() is called? [closed]
- what are WP_DEBUG conditions?
- There is no any line related the error but it says critical error
- Debug info from request handler
- Debugging conundrum with a problem fixed by enabling WP_DEBUG
- WP Debug set to true but still wsod
- TGM plugin error in Theme Check Plugin
- Turning off debug in my WP blog causes an internal error
- How do I find the version of WordPress I have from the source code?
- How can I debug the TTFB in WP?
- Debugging in WordPress
- Debugging WordPress themes with Xdebug, real time html output
- Easy code troubleshooting in wordpress
- Tutorials for Unit-Testing in WordPress and for unit-test.svn.wordpress.org?
- Nginx – Prevent Access to Debug file [closed]
- How to individually set WP_DEBUG on a sub-directory multisite?
- How to debug vars inside function at functions.php file?
- How to use live images on local install?
- Generate WordPress salt
- WordPress PHP error handling and reporting in production environment
- How to combine javascript files without plugins?
- How to make debug.log timestamps local time?
- Declaratively Configuring WordPress in XML or JSON or YAML
- Does the debug.log do log rotation?
- How can I determine what php files are being called by a given WP page?
- Override Current Theme Setting in wp_config.php
- How to set up plugin project with XDebug remote debugging in PhpStorm
- How to debug WordPress correctly?
- error_log is not working as expected in functions.php file
- Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields
- Set wp-content folder to Dropbox folder
- How to empty debug.log when file size is above xyMB?
- How to change how long items are kept in the trash?
- Intercepting wp_mail() to view contents
- Where’s The Best Place to use Register_Shutdown_Function()?
- What should be disabled to run on an internal network with no access to the Internet?
- Is it possible to set another language for debugging messages?
- Get WP CLI to hide debug warnings and notices in JSON output, same setting as website
- Can I configure WordPress to use postfix without a plugin?
- add_sub_menu page() to be replaced by add_theme_page()
- Send specific users an email when posts are published
- How can I make wordpress suppress mysql errors?
- Super WordPress debugging toolkit and triage procedures? [duplicate]
- if(!is_user_logged_in()) returns true when 404
- WP_Debug not displaying anything
- xdebug connects but won’t break in WordPress with vvv
- Error establishing a database connection on Installation
- The plugin generated xx characters of unexpected output. How to solve?
- debugging wordpress
- Preferred Method of debugging a wordpress SQL calls?
- How to show the error causing the ‘There has been a critical error on your website’?
- Why edits to wp-config.php must come before “That’s all” comment
- Enable WordPress Debug only for Admin
- wp-config dynamic hostname in WP_HOME and WP_SITEURL
- wp-includes/comment-template.php:26 – Trying to get property of non-object
- How do you change error reporting to only show errors in WordPress?
- XAMPP-VM Mac OS Mojave wordpress debugging using XDebug
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- Debugging preview not working problem
- DOMAIN_CURRENT_SITE constant being regularly overridden [closed]
- Always keep a parameter in URL?
- How can I understand what is the cause of WP death (white screen)?
- “Undefined index” error when saving empty array with checkboxes
- White screen on front page only
- Debug Notice: X is deprecated since version 4.5! Use Y instead
- Debug 500 Internal Server Error on WordPress blog
- “… logged-in …” seems top of my website
- WordPress debug messages not displaying
- PHP Notice – Custom Function
- Suddenly lots of bugs in my WP installation? [closed]
- Notice: Undefined index [closed]
- Getting a WordPress Debug Strategy
- Notice: attribute_escape is deprecated
- How to disable JS? info windows from WP-FirePHP
- How do I acquire all the meta-information for a particular page I am on?
- How to find line of code causing wordpress deprecation notices
- Best location for a debugging script
- Debug Errors, site health
- problem with size of debug.log file
- What is debug.log.old? It seems to take up a lot of space
- WordPress Cron job, 302 response
- What should index.php contain on Synology NAS to get external access to WordPress to work?
- Cannot access WordPress website from external IP while internally it is working properly [closed]