Make WordPress Core

Opened 10 years ago

Closed 8 months ago

#31520 closed defect (bug) (invalid)

wp_cache_get generates fatal error

Reported by: jatingupta2k's profile jatingupta2k Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1.1
Component: Cache API Keywords: reporter-feedback
Focuses: Cc:

Description

There are timing issues in WP where some code in plugins, specifically wp super cache, make called to wp_cache_get before $wp_object_cache is initiated.

This generates a fatal error in php and can often send apache crashing.

This only occurs n wp_cache_get() and it seems as if the easiest solution is to check to see if $wp_object_cache is actually initaited and/or an object before calling its get() function.

… at /var/sentora/hostdata/zadmin/public_html/freemaal_in/wp-includes/
cache.php (113)
…at /var/sentora/hostdata/zadmin/public_html/freemaal_in/wp-includes/
option.php (54)
…/public_html/freemaal_in/wp-content/plugins/wp-super-cache/
wp-cache-phase2.php (255)

Change History (3)

#1 @DrewAPicture
10 years ago

  • Component changed from General to Cache API
  • Keywords reporter-feedback added

Hi @jatingupta2k, welcome to Trac! Are you still experiencing issues here?

#2 @anonymized_7658014
9 years ago

Just noticed a related issue (if not the same) was closed as invalid 6 years ago: #15881

I’m currently debugging the behavior on a customer system with a different caching plugin. Can’t provide any insight yet, but will update here once we know more.

Last edited 9 years ago by SergeyBiryukov (previous) (diff)

#3 @desrosj
8 months ago

  • Resolution set to invalid
  • Status changed from new to closed

It's been 8 years since the last update, and there's still not enough information to replicate or talk through potential ways to address the problem, so I'm going to close this out.

Discussion can always continue on closed tickets and if conditions change/more details provided, it can be reopened at any time.

Note: See TracTickets for help on using tickets.