When I try to reach my website and include www in it's address I get this error:

 Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/themes/BulletPressWP/framework/includes/post-meta-details.php:1) in .../wp-includes/pluggable.php on line 896

If I try address without www everything is OK.

  • Disable all plugins and switch to a default theme. Does the behaviour go away? If so, switch back to your theme. If the behaviour comes back, then your theme is the culprit. If it's still working right, then turn your plugins back on one at a time till you find the problem. Now you know what's causing the issue. Check the plugin or theme's support forum to see if the issue has been reported before. – Pat J Jan 24 '14 at 17:49
  • My first guess is that there's a plugin or something that does a redirection of some kind -- perhaps wp_redirect() -- from www.example.com to example.com. Redirects can't happen if content has already been sent to the browser. You might be looking for a late call to a redirection. – Pat J Jan 24 '14 at 17:51
  • On my other network site, I don't have this problem and the redirection you mentioned happens. I think now it's time to find the plugin. – Mehraban Jan 24 '14 at 17:59
  • Well the problem is with theme, not the plugins. I renamed plugins folder and the problem remained. – Mehraban Jan 24 '14 at 18:04
  • It could be something as simple as a newline character after a PHP file's closing ?>. I've taken to writing my PHP files without a closing ?>, since it's not required by the interpreter. – Pat J Jan 24 '14 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.