Hi Martin (@hinjiriyo),
I just found a bug in PHP’s
ob_get_clean()function. It does not call the output buffer callbacks and it can create conflict with other plugins.
$content = ob_get_clean();
You should use:
$content = ob_get_contents(); ob_clean();
It does the same job, but this implementation calls the
See the bug report at PHP: https://bugs.php.net/bug.php?id=76563
More details how I found this bug:
We are testing Smart Slider 3 with several plugins. When Speed Contact Bar and Reviews (https://wordpress.org/plugins/ultimate-reviews/) is activated, Speed contact bar is not able to call ob_start() as the Reviews plugin skips that action. So Speed Contact bar was not able to open the output buffer, but at the end it closes one, and it closes Smart Slider’s output buffer which has a callback and that callback get skipped.
- The topic ‘ob_get_clean() creates conflict’ is closed to new replies.