[wp-trac] [WordPress Trac] #57051: Fatal error when loading translations early due to a DB error with WPLANG set (was: Call to undefined function wp_cache_get() wp-includes/option.php:165)

WordPress Trac noreply at wordpress.org
Wed Nov 9 22:59:57 UTC 2022


#57051: Fatal error when loading translations early due to a DB error with WPLANG
set
--------------------------+-----------------------
 Reporter:  azurseisme    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.1.1
Component:  I18N          |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by TimothyBlynJacobs):

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


Comment:

 I'm glad you got it working @azurseisme!

 I'm going to reopen this ticket, though, because WordPress should be
 showing you a pretty error message instead of fatal erroring in this case.

 To replicate, change your `DB_NAME` to an invalid database, and ensure
 either `WPLANG` or `$wp_locale_package` is defined.

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


More information about the wp-trac mailing list