Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot update profile without throwing error “There was a problem updating some

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

  • screampuff
    Participant

    @screampuff

    Anyone have any ideas?


    screampuff
    Participant

    @screampuff

    I’m stupid, I was fooling around trying to find a way to prevent users from changing their display name and added some code:

    function disable_name_change( $data ) {					// Prevent users from changing display name
    if ( 1 == $data->field_id )
    $data->field_id = false;
    return $data;
    }
    add_action( 'xprofile_data_before_save', 'disable_name_change' );

    And this was causing it.

    I’ve resorted to just hiding the display name and field field in my theme’s css, so this is not necessary anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot update profile without throwing error “There was a problem updating some’ is closed to new replies.
Skip to toolbar