[wp-trac] [WordPress Trac] #46811: White screen for admins on handled fatal errors

WordPress Trac noreply at wordpress.org
Fri Apr 5 11:56:44 UTC 2019

#46811: White screen for admins on handled fatal errors
 Reporter:  axaak        |      Owner:  (none)
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:  needs-patch has-screenshots
  Focuses:               |  servehappy
 If a fatal error occurs (e.g. call to undefined function) whilst logged
 into the back-end as admin, admin user sees menu on the left but white
 screen on the right (see screenshot1.png).

 **Steps to recreate**
 WordPress 5.2-beta1-45112 running Twenty Nineteen theme.
 Login to back-end as admin
 Force call to undefined function error in plugin (line 54, hello.php
 version 1.7.2).
 Click admin menu item, view screen.

 Class class-wp-fatal-error-handler.php decides it will handle() this
 error.  Line 41 checks to see if headers have already been sent (they
 have), if headers have been sent the error template is not displayed.
 If this check is commented out then the message

 The site is experiencing technical difficulties.

 is shown in the back-end.
 However, this does not help the admin user move forward and the new site
 check tool is not shown.

Ticket URL: <https://core.trac.wordpress.org/ticket/46811>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list