[wp-trac] [WordPress Trac] #31520: wp_cache_get generates fatal error

WordPress Trac noreply at wordpress.org
Wed Mar 4 08:47:42 UTC 2015


#31520: wp_cache_get generates fatal error
--------------------------+-----------------------------
 Reporter:  jatingupta2k  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.1.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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)

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


More information about the wp-trac mailing list