[wp-trac] [WordPress Trac] #62570: Fatal error: call to undefined function wp_cache_get() (in option.php)

WordPress Trac noreply at wordpress.org
Wed Nov 27 11:50:14 UTC 2024


#62570: Fatal error: call to undefined function wp_cache_get() (in option.php)
-----------------------------+------------------------------
 Reporter:  dugwood          |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  6.7.1
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by abcd95):

 Hey @dugwood, Welcome to Trac, and thanks for bringing this up.

 == Reproduction Report
 === Description
 This report validates that the issue can be reproduced.

 === Environment
 - WordPress: 6.7.1
 - PHP: 8.2.25
 - Server: nginx/1.27.2
 - Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
 - Browser: Chrome 131.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.0


 === Actual Results
 A fatal occurs because `wp_cache_get()` is undefined, as `cache.php` is
 not loaded during maintenance mode.

 {{{
 Fatal error: Uncaught Error: Call to undefined function wp_cache_get()
 }}}

 === Additional Notes

 This issue occurs specifically during WordPress maintenance mode (e.g.,
 during upgrades)

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


More information about the wp-trac mailing list