• Resolved alychef

    (@alychef)


    Serious issues across ALL my UM SITES since latest update… fields are going missing from front end profile forms (not for admin, only for users) and fields becoming uneditable for users for no reason. All permissions are set for users to be able edit. Once forms and fields re-updated in dashboard (I’ve done this 20 times on 2 sites since 2 days) they work and can be edited by user only temporarily… and then the fields are blocked again. This is across ALL my sites using UM. What’s happened? Does anyone else have this? I’ve checked for plugin conflcit and no resolve. This is really urgent.

    • This topic was modified 2 years, 7 months ago by Jan Dembowski. Reason: Decapped title, do not shout. Also removed "URGENT" as this is a volunteer support forum
Viewing 15 replies - 61 through 75 (of 84 total)
  • Thread Starter alychef

    (@alychef)

    @missveronicatv Ok… so my concerns were valid. I’ve just been onto my other site and now there are different fields disabled from earlier today. I have to close them both down til issues are resolved.

    @alychef

    Yes you are right.
    Dropdowns are also set to disabled by UM.
    When I have added textarea fields they are editable after saving the UM Profile Form.

    • This reply was modified 2 years, 7 months ago by missveronica.
    Thread Starter alychef

    (@alychef)

    @missveronicatv they’ll become disabled after a few hours or less. I’ve saved, resaved countless times. They’re editable after resaving the field and form and then the problem returns. The question is… what can we / I do?

    @alychef

    How is your UM setting for:

    Appearance -> Profile -> “Enable HTML support for user description”

    Thread Starter alychef

    (@alychef)

    “How is your UM setting for:

    Appearance -> Profile -> “Enable HTML support for user description”

    Not checked on secaia but is checked on the other with same fields disabled issue. @missveronicatv

    @alychef

    You can try this code snippet,
    which will make all fields editable and remove all disables.

    add_filter( 'um_is_field_disabled', 'um_is_field_disabled_bug', 10, 2 );
    
    function um_is_field_disabled_bug( $disabled, $data ) {
    
        return '';
    };

    Install the code snippet into your active theme’s functions.php file
    or use the “Code Snippets” plugin.

    https://ww.wp.xz.cn/plugins/code-snippets/

    Thread Starter alychef

    (@alychef)

    @but some fields need to stay disabled? @missveronicatv

    it would be better than nothing for now… on this site only… the other has fields for specific roles. I’m not all that confident about accessing files

    Thread Starter alychef

    (@alychef)

    @missveronicatv ok… for now that seems to have worked. I used the plugin. I’m celebrating with caution. You need to work for UM. More help than I’ve ever had. Could you try fields on my site? See if they’re editable?

    • This reply was modified 2 years, 7 months ago by alychef.

    @alychef

    This code snippet will enable text and textarea fields only.

    add_filter( 'um_is_field_disabled', 'um_is_field_disabled_bug', 10, 2 );
    
    function um_is_field_disabled_bug( $disabled, $data ) {
    
        if ( $data['type'] == 'textarea' || $data['type'] == 'text' ) {
            return '';
        }
        return $disabled;
    };

    @alychef

    Yes all fields at your site are enabled for editing now.

    Thread Starter alychef

    (@alychef)

    @missveronicatv TBH It’s only the name fields that shouldn’t be edited on this form. I’m not worried about those. And there’s drop downs and multi selects etc included. For now… this works. People can register and create their profile

    @alychef

    This code snippet will keep the fields disabled for first_name and last_name.

    add_filter( 'um_is_field_disabled', 'um_is_field_disabled_bug', 10, 2 );
    
    function um_is_field_disabled_bug( $disabled, $data ) {
    
        if ( $data['metakey'] == 'first_name' || $data['metakey'] == 'last_name' ) {
            return $disabled;
        }
        return '';
    };
    • This reply was modified 2 years, 7 months ago by missveronica.
    • This reply was modified 2 years, 7 months ago by missveronica.
    Thread Starter alychef

    (@alychef)

    @missveronicatv you really are very kind and super helpful. Thank you

    @alychef

    You can replace the old code snippet with this one,
    which is looking at the UM Forms builder settings for each field.

    add_filter( 'um_is_field_disabled', 'um_is_field_disabled_bug', 10, 2 );
    
    function um_is_field_disabled_bug( $disabled, $data ) {
        
        $disabled = '';
    
        if ( ! UM()->roles()->um_user_can( 'can_edit_everyone' ) && UM()->fields()->set_mode == 'profile' ) {
            if ( isset( $data['editable'] ) && $data['editable'] != 1 ) {
                $disabled = ' disabled="disabled" ';
            }
        }
        
        return $disabled;
    };
    • This reply was modified 2 years, 7 months ago by missveronica.
Viewing 15 replies - 61 through 75 (of 84 total)

The topic ‘profile forms uneditable (all permissions set to allow users to edit profile)’ is closed to new replies.