Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

@screampuff

Participant

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.

Skip to toolbar