You could try the following wp-config.php setup – note WP writes to the file wp-content/debug.log – this config also stops any errors from being rendered to the browser.
Note that setting the constant WP_DISABLE_FATAL_ERROR_HANDLER to true
enables you to disabled the default WP error screen.
// Disable display of errors and warnings
@ini_set('display_errors',0);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', false );
// disable WP fail-safe screen ##
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
Related Posts:
- Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)
- Control verbosity level of WP DEBUG?
- 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?
- How to debug when error_log not working as expected
- Where should I tell WordPress where error_log messages should be written?
- Disable Debug Log Programmatically
- Using debug log in production, is that a security concern?
- 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?
- error log is going to the wrong location, WP_DEBUG_LOG is ignored
- 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
- Is it possible to change the log file location for WP_DEBUG_LOG?
- What is the best way to monitor PHP functions/executions?
- Debugging WordPress themes with Xdebug, real time html output
- Easy code troubleshooting in wordpress
- Nginx – Prevent Access to Debug file [closed]
- How to make debug.log timestamps local time?
- How can I determine what php files are being called by a given WP page?
- 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
- How to empty debug.log when file size is above xyMB?
- Intercepting wp_mail() to view contents
- Where’s The Best Place to use Register_Shutdown_Function()?
- Is it possible to set another language for debugging messages?
- add_sub_menu page() to be replaced by add_theme_page()
- Send specific users an email when posts are published
- Super WordPress debugging toolkit and triage procedures? [duplicate]
- if(!is_user_logged_in()) returns true when 404
- How to dump/log default values that are passed to hooks/filter functions?
- xdebug connects but won’t break in WordPress with vvv
- The plugin generated xx characters of unexpected output. How to solve?
- debugging wordpress
- How to show the error causing the ‘There has been a critical error on your website’?
- Same log message keeps on printing to debug.log file thousand of times
- Enable WordPress Debug only for Admin
- 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
- Always keep a parameter in URL?
- “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: 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
- 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
- Comment WP_DEBUG in wp-config file
- Best place to call xdebug helper functions?
- Cannot Modify Header Information – While trying logging in
- 3,840 cronjobs with no action!
- WordPress 6.x / PHP 8.x deprecated warnings in development environment
- Solution to White Screen of Death that does not require Web Server access?
- Notice on core function
- Step debug wp cron run – ideas how to get this working in PHPStorm with Xdebug?
- Display Custom Taxonomy Dropdown posts
- Correct my shortcode for displaying a category?
- A bug happens in the Footer and the code keeps appearing
- How do I specify where to save the debug.log?
- debug.log is not created
- Error on add_submenu_page() declaration
- Debug info from request handler
- Notice: Undefined index: post_title error
- Debugging Mysterious PHP Addition
- WordPress seems broken when logged of
- Finding which functions were called
- Error on debug.log PHP Stric Standards and PHP notice
- Cannot read property ‘hasClass’ of undefined(…) jquery-ui
- Weird bug regarding the_excerpt()
- Unnessary character on post after restore
- Can’t show debug even after modifying wp-config
- how to error_log(wp_login_url())
- Method ‘post_title’ not found in class.
- Theme parts path location dump
- Changes to WordPress database using phpMyAdmin not reflected on blog
- How do you get the docroot directory?
- Some ways to debug code
- How to solve the fopen error?
- debug notice on my WordPress site [closed]
- How to check whether functions is deprecated or not?
- Why does my site generate .bt files?
- Any wordpress development tool to query its functions?
- WordPress not available to file using wp-env for xdebug requests