#61088 closed defect (bug) (worksforme)
object-cache.php is loaded, but cache.php still attempts to define functions.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.5 |
Component: | Cache API | Keywords: | |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
#1
@
10 months ago
- Keywords reporter-feedback added
Hi @daerimin,
It looks like you're object cache file is not defining a wp_cache_init
. This function is required.
Note: See
TracTickets for help on using
tickets.
/wp-content/object-cache.php