Cannot modify header information: headers already sent
-
The message below fills the
debug.log
quite rapidly:Cannot modify header information - headers already sent in /wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 206
This is a fairly common issue with many plugins I’ve encountered. In this case changing the hook in ~line 49 seems to be working for me so far.
// This fires on both backend and frontend and it's used to check for URLs to bypass //add_action( 'init', array($this, 'bypass_cache_on_init'), PHP_INT_MAX ); add_action( 'template_redirect', array($this, 'bypass_cache_on_init'), PHP_INT_MAX );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cannot modify header information: headers already sent’ is closed to new replies.