• Resolved makmerghen

    (@makmerghen)


    Hello
    suddenly and only in mobile when click to visit UM account page its redirect me to home page ?
    if I click same link but in desktop its work normall and open account page

    so please advise

    best regards

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Please try temporarily disabling customizations and see if it causing the issue. Also, check if this is an issue with the cache by disabling it.

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp
    I disabled cache and I disabled code snippets to disable any customization and also I disabled any java do something for UM also I disabled plugins that can disable any feature and also I cleared cache of UM
    and still when click in account page link in mobile devise I found it redirect automatically to home page

    so please advise
    best regards

    • This reply was modified 2 years, 10 months ago by makmerghen.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Could you please try disabling all plugins except UM and see if this is a plugin conflict issue?

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp I disabled all and I got the same result
    Regards

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp
    I restored old database and issue was fixed but let me ask you question because this issue almost appear after install specific plugin and even after uninstall it issue still there
    the plugin name sessions it can limit the number of sessions one account can open
    does this type of plugins can lead to this issue of the auto redirect of UM account page to home page ?
    best regards

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Did you try clearing the cache in your mobile browser?

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp yes I did
    regards

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Where does the Account page link add? Is it in the Theme menu? I couldn’t reproduce the issue on my end.

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp
    actually it the link do the same even if I write it in the address bar

    but dear I restored old database and it fix it I will test every plugin I installed one by one and will let you know if I determined the one that did this issue

    best regards

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Okay, I’ll be waiting for your update.

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp
    I found the reason of this issue
    I asked you before how to add language switch field in account page and you told me just create new profile form contains only language drop down field

    and this what cause the auto redirect of UM account page to home page
    because the exist of profile form along with account form

    if I removed the profile shortcode and leave account shortcode alone then the page open normal on account page but if I add to it profile shortcode it give this issue

    so please advise how to fix this
    I need to add language field to account page without this issue

    best regards

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Why not add the Language field to the Account > General forms?

    You can add this code snippet:

    add_filter( 'um_account_tab_general_fields', 'um_120721_account_locale', 10, 2 );
    function um_120721_account_locale( $args, $shortcode_args ) {
    
        $args .= ',locale';
        return $args;
    }

    Ensure that you’ve created a locale field with the meta key locale via UM Form builder.

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp
    1- I already created drop down field with meta key locale
    2- I need user to find drop down so he can change his language and you told me before about adding new profile field has only the drop down language field
    3- I did what you recommend and I created code snippet in code snippets plugin with the above code
    but the result was no thing change in account page no language field appear

    so please advise
    best regards

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @makmerghen

    Please try this code snippet:

    add_filter( 'um_account_tab_general_fields', 'um_120721_account_locale', 10, 2 );
    function um_120721_account_locale( $args, $shortcode_args ) {
    
        $args .= ',locale';
        return $args;
    }
    
    add_filter("um_predefined_fields_hook", "um_011122_add_language_to_account", 10, 1 );
    function um_011122_add_language_to_account( $fields ){
    
        $fields['locale'] = array(
            'title' => __('Language','ultimate-member'),
            'metakey' => 'local',
            'type' => 'select',
            'label' => __('Language','ultimate-member'),
            'required' => 0,
            'public' => 1,
            'editable' => 1,
            'options' => array(
                'ar' => 'Arabic',
                'en_US' => 'English'
            )
        ); 
       
        return $fields;
    }

    Regards,

    Thread Starter makmerghen

    (@makmerghen)

    Dear @champsupertramp thank you
    it added language field to account page
    but
    after I change the language and press update account button it didn’t change in the front end
    so please advise
    best regards

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘account page auto redirect to home page’ is closed to new replies.