[wp-trac] [WordPress Trac] #47265: Uncaught Error: Call to undefined function load_default_textdomain() in /wp-includes/class-wp-fatal-error-handler.php:41

WordPress Trac noreply at wordpress.org
Wed May 15 19:53:50 UTC 2019


#47265: Uncaught Error: Call to undefined function load_default_textdomain() in
/wp-includes/class-wp-fatal-error-handler.php:41
----------------------------------------------+----------------------
 Reporter:  daxelrod                          |       Owner:  desrosj
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:  5.2.1
Component:  Bootstrap/Load                    |     Version:  5.2
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  has-patch servehappy fixed-major  |     Focuses:
----------------------------------------------+----------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"45315" 45315]:
 {{{
 #!CommitTicketReference repository="" revision="45315"
 Bootstrap/Load: Prevent PHP errors when a drop-in triggers fatal error
 protection.

 When a drop-in (such as `advanced-cache.php`) contains a PHP error,
 additional PHP errors are caused when displaying the error protection
 screen because `load_default_textdomain()` and `WP_Error` are not yet
 available.

 Though recovery mode is not supported for `mu-plugins` and drop-ins, fatal
 error protection is. This change ensures the error screen is displayed
 when a fatal error is encountered within a drop-in and not a white screen.

 Merges [45311] to the 5.2 branch.

 Props TimothyBlynJacobs, spacedmonkey, daxelrod.
 Fixes #47265.
 }}}

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


More information about the wp-trac mailing list