'Warning: Cannot modify header' error message

Hi, I’m getting an error when logged in and trying to edit any WP page.

I have checked the wp-config.php file and there are no lines or spaces before <?php Having disabled all plugins, it appears to be a plugin conflict with Yoast, as the error disappears when deactivated.

Login details for site and host to follow.

Hi @SiobhanH,

Thanks for writing in! You are seeing a PHP warning message. You can get rid of this message by disabling the Debug Mode in your wp-config.php settings. You can do that by editing the wp-config.php file and insert this line:

define( 'WP_DEBUG', false );

We would love to know if this has worked for you.

Hi - I know I can switch the error message off but that won’t fix the issue - it’s a conflict between Yoast and the Theme header, so I need to resolve it (as Yoast is not properly functioning without it). And as it’s Yoast, I’m assuming this isn’t the first report of this error?? I’ve tried uninstalling and reinstalling Yoast, but that hasn’t worked either.

Hi @SiobhanH,

It seems that this issue persists with the Yoast Seo plugin and if you deactivate the plugin the issue does not exist.
It shows that the issue is not with our theme. In this regards, I would suggest you contact the Plugin Author or Support: https://wordpress.org/support/plugin/wordpress-seo/
Please remember that We don’t provide support to any issues related to the third-party plugins.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.