• antwal

    (@antwal)


    I updated the plugin from an old version 2.7.x to the new 2.10.5 but the fields in the default profile form are not displayed; I had username, email and 2 custom fields.

    But after the update the username and email disappeared and are no longer displayed. I tried doing a fresh WordPress installation with only Ultimate Member and testing this but there too the username and email fields are no longer visible.

    Default Profile Form:

    Edit Profile Page:

    Is this a bug in this version?

    Or do I need to enable something so that administrators or staff can edit these fields?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • missveronica

    (@missveronicatv)

    @antwal

    I updated the plugin from an old version 2.7.x

    Did you run the UM Upgrade job with success?

    Thread Starter antwal

    (@antwal)

    @missveronicatv yes the update was done correctly, the screenshots and the problem also occurs on a new WordPress installation with only the 2.10.5 plugin installed as reported, so it is not a problem with the update since here I did a new installation

    missveronica

    (@missveronicatv)

    @antwal

    You can try this code snippet, which will list the form field values given by UM
    before formatting the Profile page with the debug content written to this file:
    .../wp-content/um_profile_debug_content_main.log

    Post the content of this file here in the Forum.
    You can remove any parts of text with your domain info.

    For best formatting use the Forum’s CODE format.

    add_action( 'um_profile_content_main', 'um_profile_debug_content_main', 9, 1 );
    function um_profile_debug_content_main( $args ) {
        ob_start();
        print_r ( $_REQUEST );
        foreach( $args['custom_fields'] as $key => $arg ) {
            if ( isset( $arg['options'] ) && is_array( $arg['options'] ) && count( $arg['options'] ) > 10 ) {
                $args['custom_fields'][$key]['options'] = count( $arg['options'] );
            }
        }
        print_r ( $args );
        file_put_contents( WP_CONTENT_DIR . '/um_profile_debug_content_main.log', ob_get_clean() . chr(13), FILE_APPEND  );
    }

    You install the code snippet by adding it
    to your active theme’s functions.php file
    or use the “Code Snippets” Plugin

    https://wordpress.org/plugins/code-snippets/

    Thread Starter antwal

    (@antwal)

    I did another new installation with the plugin but username and email do not work, I attach the debug file. I left all the plugin’s default settings, I only added the fields on the registration and profile forms.

    Profile Form:

    Edit Profile:

    Debug File: https://pastebin.com/raw/mkaXBZSS

    missveronica

    (@missveronicatv)

    @antwal

    Username and Username or email are not editable by UM default.
    You can edit the first, last name and email from the Account page.

    https://docs.ultimatemember.com/article/1911-account

    Thread Starter antwal

    (@antwal)

    I’ve managed to partially resolve the issue with ACF and using code to display the default fields on the account page; now I need to evaluate whether it’s possible to disable the editing of these fields for the end user; in my case, the change can only be made by staff and administrators.

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

The topic ‘[BUG?] 2.10.5 – Can’t show/edit some fields on Profile Page’ is closed to new replies.