• Resolved Ov3rfly

    (@ov3rfly)


    If admin or user tries to save a profile page after changing some fields (not e-mail), an error The email you entered is incorrect is shown and the profile can not be saved. We allow editing e-mail address via profile as described here in documentation.

    Reason is a bug in includes/core/um-actions-form.php line 927:

    } elseif ( 'profile' === $mode && $email_exists && $email_exists !== $submitted_data['user_id'] ) {
        UM()->form()->add_error( $key, __( 'The email you entered is incorrect', 'ultimate-member' ) );

    Variable type of $email_exists is integer
    Variable type of $submitted_data['user_id'] is string

    So the !== comparison including type fails and the profile can not be saved.

    This is a serious bug which was introduced with 2.8.3, the comparison in 2.8.2 was != so saving profile worked there.

    Ultimate Member 2.8.5, WordPress 6.4.4

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @ov3rfly

    Thank you for your feedback. We will fix this in the next release.

    Regards.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Thanks for quick feedback.

    Another issues is in um_submit_form_profile action example in above mentioned documentation. Changing the e-mail in user profiles by logged in admin fails because in line 7 the e-mail is compared to current user account (which is the admin) instead user profile account.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @ov3rfly

    Thank you, we will check the documentation.

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The email you entered is incorrect when saving profile’ is closed to new replies.