Hey @polarracing !
We had such an issue a long time ago for another user and the reason was, that the theme removed the https://developer.ww.wp.xz.cn/reference/functions/wp_ob_end_flush_all/ from the https://developer.ww.wp.xz.cn/reference/hooks/shutdown/ hook. Can you please check if this is the case?
Without Real Cookie banner I had that issue as well – but was able to solve it with following code in functions.php.
remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
add_action( 'shutdown', function() {
while ( @ob_end_flush() );
} );
That removes my other ob_end_flush error messages, but does not work for your plugin.
Without that code, I get my old error messages back and the ones from real cookie banner comes on top.
Hi again @polarracing !
Does the issue persist if you temporary switch to another theme (e.g. TwentyTwenty)?
Closing this thread due to inactivity. Feel free to reopen!
Sorry – took a while to answer, but yes.
I switched the whole site to twentytwentythree and the issue persists.
Hi again @polarracing !
- What happens if you additionally temporary deactivate all other plugins except Real Cookie Banner?
- What version of Real Cookie Banner are you using?
Without Real Cookie banner I had that issue as well
Did you find the root cause for the issue why you needed this coding?
If I remove my code – I get the two error messages from the beginning on top.
With my code – only the one from Real Cookie Banner
Version: 3.7.2
With all plugins turned of (except RCB and polylang) = same result
-
This reply was modified 2 years, 11 months ago by
polarracing.
Hi @polarracing !
There seems to be something wrong with your output buffer before installing Real Cookie Banner. I think the need for the code snippet should be checked first, and the main cause should be eliminated.
Unfortunately, the Real Cookie Banner Content Blocker can only work if the initialization of the PHP Output Buffer also works correctly. Unfortunately, various factors can have an influence here, which is why I cannot find a cause here without further technical information.
Can you reproduce the issue on a clean WordPress installation without Real Cookie Banner and check at which point the above code snippet is needed?