WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#47317 closed defect (bug) (duplicate)

debug is on but I get nothing on the front end after 5.2, instead admin email gets an error report.

Reported by: carasmo Owned by:
Milestone: Priority: normal
Severity: major Version: 5.2
Component: Bootstrap/Load Keywords:
Focuses: Cc:

Description

Ever since upgrading to the 5.2 (could be 5.1.1) WordPress last week, I get nothing on the front end for debug, instead the client's email (the admin) gets a notice. That sucks when I'm missing a comma or forget to empty the var and correct it once I see that I need to take a nap or pay better attention.

What is up with this and how to fix it?

Change History (2)

#1 @knutsp
4 months ago

I use define( 'WP_DISABLE_FATAL_ERROR_HANDLER', WP_DEBUG ) in wp-config.php if I am editing live files. See also https://make.wordpress.org/core/2019/04/16/fatal-error-recovery-mode-in-5-2/

May be this could be a default setup in wp-config-sample.php?

Last edited 4 months ago by SergeyBiryukov (previous) (diff)

#2 @SergeyBiryukov
4 months ago

  • Component changed from General to Bootstrap/Load
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @carasmo, welcome to WordPress Trac! Thanks for the report.

This was previously discussed in #46825, which was closed as wontfix at the time, but could be reopened if there's enough interest in the latest patch.

Since it's better to keep the discussion in one place, I'm closing this ticket as a duplicate.

Note: See TracTickets for help on using tickets.