[wp-trac] [WordPress Trac] #61088: object-cache.php is loaded, but cache.php still attempts to define functions.

WordPress Trac noreply at wordpress.org
Fri Apr 26 19:07:28 UTC 2024


#61088: object-cache.php is loaded, but cache.php still attempts to define
functions.
--------------------------+-----------------------------
 Reporter:  daerimin      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:  6.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When /wp-content/object-cache.php is present and contains the appropriate
 functions, the following error is displayed:


 {{{
 Fatal error: Cannot redeclare wp_cache_add() (previously declared in
 [redacted]/wp-content/object-cache.php:32) in [redacted]/wp-
 includes/cache.php on line 44

 There has been a critical error on this website.

 Learn more about troubleshooting WordPress.
 }}}

 Note: I placed "ini_set('display_errors', 1);" in the object-cache.php to
 get the actual error to show.

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


More information about the wp-trac mailing list