Skip to:
Content
Pages
Categories
Search
Top
Bottom

Info not saving on edit profile page


  • mortspud
    Participant

    @mortspud

    Hi all,

    I have a strange issue on my hands.
    When logged in as a regular user/member on my Buddypress site, I go to the edit profile page (edit.php) and populate the profile fields with new/updated information. When I hit save and check the profile, the information is not updated.
    However when I am logged in as admin and do the same thing, the fields will update and store correctly.

    At first, I thought it was an issue relating to the fact that I have heavily modified the edit.php file and have fields from 3 groups showing on one page. So, I deleted all but one group. No change.

    I am now thinking it has something to do with write permissions.
    The URL of the edit profile page is: members/username/profile/edit/group/1/

    Anyone have any ideas on what it could be?

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

  • mortspud
    Participant

    @mortspud

    Additional Info:

    Using Firebug console, the script tab is reporting: “Access to restricted URI denied.”
    This does not appear when the admin is editing the page, just a normal user/member.

    I have s2member installed but do not have any URI restrictions in place.


    mortspud
    Participant

    @mortspud

    I have managed to fix this and here is the solution in case anyone is interested:

    The problem was at the bottom of edit.php:
    <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />

    Because I manually called certain xprofile fields by their ID, I had to specify which profile fields to write back to.

    This:
    <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />

    Became this:
    <input type="hidden" name="field_ids" id="field_ids" value="73, 83, 106, 27" />

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar