Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-sn-parent: Cannot modify header warning

  • Avatar of Mark Schafer
    Mark
    Participant

    @markschafer

    After upgrading to bp 1.1.3 I regularly get a php warning in my error_log referencing bp-sn-parent. I’m not noting problems on the front end.

    I’ve spend time at wordpress.org seeking a solution and I’ve examined and replaced the supposed offending line. I even replaced the header.php file with one freshly downloaded. While more generally a fairly common wordpress.org issue, I’m hoping since this is the default BP theme someone here might have some insight to share. I am aware that garbage before an opening <?php tag or after a closing ?> tag can cause this warning but as I mentioned I’m using the unedited BuddyPress theme and files.

    PHP Warning: Cannot modify header information - headers already sent by (output started at xxxx/wp-content/themes/bp-sn-parent/header.php:3) in xxxx/wp-includes/pluggable.php on line 865

    Line 3 of bp-sn-parent/header.php is:

    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    wpmu 2.8.6 with 4 active plugins on main bp site:

    bp 1.1.3, bp-groupblog, auto group join, Group Forum Subscripton

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    This is nothing but an white space issue.

    Check for the white spaces after closing tags of php(that may be on different line than the 3).

    best bet ,disable all other plugins except buddypress ,if the error is there,It is because you have got white spaces in your header.php

    Hope,that should help.

    Avatar of Mark Schafer
    Mark
    Participant

    @markschafer

    I’ve determined that the warning is generated when /wp-signup.php is accessed (mostly by spam bots). Can’t find white spaces anywhere. Is /wp-signup.php supposed to redirect to /register or to a blank page?

    My site and the other listed both display the Registration Form and the PHP Warning: Cannot Modify Headers:

    http://ttacconnect.org/wp-signup.php

    http://memomu.com/wp-signup.php

    These sites result in an blank to semi-blank page:

    http://startupweekend.org/wp-signup.php

    http://nourishnetwork.com/wp-signup.php

    http://morgansjourney.org/wp-signup.php

    http://poetrypress.org/wp-signup.php

    Should /wp-signup.php result in an blank page or the registration form? Will resulting blank page eliminate the ‘Cannot Modify Headers’ Warnings in error_log? What is the fix? Thanks!

    Avatar of Mark Schafer
    Mark
    Participant

    @markschafer

    bump – topic didn’t rise to top with the my last post.

    Avatar of Mark Schafer
    Mark
    Participant

    @markschafer

    bump again – for some reason this topic isn’t recognized as updated :-( I’ll start a new topic if this post isn’t recognized.

    I am having the same problem and also any of the links /members, /groups, /register (which goes to the login form), and /login (“The page you were looking for was not found.”) and also al the links related to does not work.

    Please tell me how can I get it to work, whithout having to reinstall all of the scripts in there.

    I am using WordPress 2.9.1.

    Avatar of jamland
    jamland
    Participant

    @jamland

    I have similar Warning: Cannot modify header information – headers already sent by (output started at …/functions.php:27) in …/wp-login.php on line 302

    And how Brajesh Singh said the problem was in white spaces after ?> php tag in function.php

    Thanks!

    Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    @jamland

    Well, which theme you are using and which plugins, I can take a look again and will be willing to help further.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.