Hi @3rdrol,
Sorry to hear that. The conditional is there to check if there is any buffer output to clean. Is there is not, there should be no reason to call the ob_end_clean()
method.
In any case, the reason for this code is to prevent any faults in themes or other plugins to damage the output. And while this works out most of the time; this isn’t the one fix to rule them all
. It also shouldn’t have to exist; but mistakes happen, so we try our best to help out.
Please make sure your theme, functions.php or any template file isn’t throwing an exception / warning or has an additional space before the <?php
tag, or after the ?>
tag. These are outputted, and therefor end up in the output buffer.
Another reason for these errors can be other plugins. So please try disabling one by one to see if one is creating this error.
Also make sure your WP_DEBUG
is false
, as this too can create output in the buffer.
As a last resort I often change the .xlsx
extension to .txt
and see if I can see an obvious reason for it to be broken.
I hope this helps you out. Please let me know.