Skip to:
Content
Pages
Categories
Search
Top
Bottom

“Cannot modify header information” error when editing profile

  • Profile photo of plinth
    plinth
    Participant

    @plinth

    Hi, I’ve added a couple of extra profile fields (address, post code and a T&C checkbox – all required fields). When I go to my profile page and try to edit my profile, I get the following error:

    `Warning: trim() expects parameter 1 to be string, array given in /xxxx/xxxx/public_html/wp-content/plugins/buddypress/bp-xprofile.php on line 717

    Warning: Cannot modify header information – headers already sent by (output started at /xxxx/xxxx/public_html/wp-content/plugins/buddypress/bp-xprofile.php:717) in /xxxx/xxxx/public_html/wp-includes/pluggable.php on line 890`

    Any assistance gratefully appreciated, Toby

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Toby,

    Did you manage to solve this problem – i am getting exactly the same error…

    Thanks, Ben.

    Hi @bengali
    As the original post is a month old, can you confirm the exact error message? Is it on the same line? Also, what versions of WordPress and BuddyPress are you using? Thank you,

    Profile photo of just2izy
    just2izy
    Member

    @just2izy

    I am also having a similar error and Yes @djpaul it is the same Lines. I am also using custom fields but I have 3 groups, the group having the problem has only checkboxes and is a required field.

    `
    Warning: trim() expects parameter 1 to be string, array given in C:xampphtdocsashantibar.orgwp-contentpluginsbuddypressbp-xprofile.php on line 717

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsashantibar.orgwp-contentpluginsbuddypressbp-xprofile.php:717) in C:xampphtdocsashantibar.orgwp-includespluggable.php on line 897
    `

    Profile photo of Virtuali
    Virtuali
    Participant

    @gunju2221

    You guys have changed/ and or added a function that most likely has any extra space in the file.

    I have most commonly seen Headers already Sent out by an extra space in the file. I would recommend copy and pasting the original file from buddypress into the one that you have changed to ensure there are no spaces.

    Profile photo of Magicbeet
    Magicbeet
    Participant

    @magicbeet

    I am getting the same message:

    Cannot modify header information

    in the send to drop down when trying to compose a message in the front end.

    I have not made any changes to the code at any time and don’t even know what file @Virtuali is talking about. This problem happened after I upgraded to the latest version of buddypress. Please help.

    Profile photo of echiomega
    echiomega
    Participant

    @echiomega

    Thanks to this great post all i did was replace my function.php then everything is back to normal. This error seem to have occurred when i edited the file…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“Cannot modify header information” error when editing profile’ is closed to new replies.