WordPress.org

Plugin Directory

Opened 3 years ago

#2318 new defect

Fatal error in thanks to print_r() WP Super Cache plugin

Reported by: fadingdust Owned by:
Priority: highest Severity: critical
Plugin: not-listed Keywords: wp-super-cache
Cc:

Description

"Fatal error: print_r(): Cannot use output buffering in output buffering display handlers in wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 253"

I have received this error on multiple sites in connection with URLs having a GET parameter, such as wp-login.php?redirect_to=%2Fwp-admin%2F&reauth=1 and other plugins.

Oddly, this is happening despite the wp-supercache debug turned off, and the wp_cache_no_cache_for_get = 1, which, as I read it, means "Check this box if you want GET URLs to *not* be cached" (which is the setting I want - no caching on GETs)

I believe this can be resolved by not using the print_r() function. Indeed there is a known work-around here: http://php.net/manual/en/function.print-r.php#75872

Change History (0)

Note: See TracTickets for help on using tickets.