[wp-trac] [WordPress Trac] #45989: WSODs protection still 500 on REST API request

WordPress Trac noreply at wordpress.org
Tue Mar 26 20:29:58 UTC 2019


#45989: WSODs protection still 500 on REST API request
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.2
Component:  Bootstrap/Load                       |     Version:  trunk
 Severity:  major                                |  Resolution:  fixed
 Keywords:  servehappy needs-testing has-patch   |     Focuses:  multisite
  commit                                         |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45014" 45014]:
 {{{
 #!CommitTicketReference repository="" revision="45014"
 Bootstrap/Load: Always run the fatal error handler at shutdown, but don't
 display the PHP error template once headers are sent.

 If a fatal error occurs midway through a page load, or in a REST API
 request, it still needs to be handled internally for the recovery mode,
 but the custom message may conflict with already rendered output, e.g. by
 displaying HTML markup in an XML or JSON request.

 Props spacedmonkey, flixos90, TimothyBlynJacobs.
 Fixes #45989. See #44458.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45989#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list