PHP error: Cannot modify header information
-
Hi,
I have the following PHP Error in the server logs which repeats itself so many times :
[21-Jan-2025 06:56:45 UTC] PHP Warning: Cannot modify header information – headers already sent in …/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php on line 145
Which comes from this line of code :// Bail if the page is excluded from the cache.
if ( ! $this->is_cacheable() ) {
header( 'SG-F-Cache: BYPASS' );
return;
}
I have tried to flush the buffer, but I get the same result :// Bail if the page is excluded from the cache. if ( ! $this->is_cacheable() ) { flush(); // Flush the buffer ob_flush(); header( 'SG-F-Cache: BYPASS' ); return; }
Thanks for your help !
Kind regards,
DominiqueThe page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.