weDevsOfficial/wp-user-frontend

Editing an user profile in the wp backend gives a critical error

006rodaal opened this issue · 4 comments

Hi,

We use WP user frontend V4.0.3 and Pro 4.0.5. The following problem occurs:
When an user has signed up they fill in certain aspects in their profile in the wp user frontend registration form. This is saved in their profile. When we edit this user in the wordpress backend and change something after saving we get a critical error. I've also tested this on a clean wp install and the same happens.

Can you create a solution for this? Thanks!

Revised

Hello @006rodaal,

Sorry for your trouble. In plugins/wp-user-frontend-pro/includes/Admin/Posting_Profile.php:124 file please replace line no 124 with below code:
\WeDevs\Wpuf\Pro\Frontend\Profile_Form::update_user_meta( $custom_fields, $user_id );

Thanks, that works! I assume you also push this change to a new release from wp frontend pro?

fixed in latest version