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

    (@champsupertramp)

    Hi @vforte

    Have you tried checking this doc for translating the plugin?
    https://docs.ultimatemember.com/article/1449-how-to-translate-plugin

    Regards,

    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp,
    thank for your answer, but this does not solve my problem.

    The problem is that the user can’t updates his profile from the Account page.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @vforte

    Could you please provide a video clip so we can see the issue clearly?

    Regards,

    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp ,

    here you can find two screenshots (before and after the update action): https://ibb.co/TvKM46X

    I’m going to explain you the use case.

    I’m in the Account page: here there are shown all the user’s fields (this should be the Profile form that I built with UM).
    In the first screenshot (on the left) I changed the highlighted option from “Aumentare Massa Muscolare” to “Perdere Massa Grassa” and I pressed on the “Update Account” button.
    In the second screenshot (on the right), a successful popup is shown, but the option that I changed was not saved.

    The same operation works fine from the User page.

    Was I clear enough?

    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp,
    I remembered that some months ago I have implemented a solution for adding custom fields in the Account page; I followed this thread https://gist.github.com/champsupertramp/c1f6d83406e9e0425e9e98aaa36fed7d.

    There are at least three problems about the proposed solution:

    1. If I’ll change the Profile form from UM > Forms I’ll have to change that code
    2. Some of the variables (i.e., first_name, last_name, birth_date and gender) defined in the Profile form does not match with that definition, in terms of label, required property and other constraints (e.g., validation pattern)
    3. The radio button shown in the Account page has different values respect the ones defined in the Profile form; in other words, when I try to update the user profile, the values saved into the user’s metadata are the index of the radio button and not the expected ones (defined in the Profile form)

    I also tried to implement your code found here https://www.champ.ninja/2020/05/add-a-custom-account-tab-with-profile-form-fields/, but an error occurs when I initiates the class UM_Custom_Account_Tabs; I’m using PHP 7.2.

    I hope this information can help to clarify the situation.

    Thank you for your time.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @vforte

    It works fine on my end.

    What error do you see with the class UM_Custom_Account_Tabs? I’ve updated the code in the tutorial post.

    Regards,

    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp,

    below the error raised:

    
    [19-Nov-2020 21:05:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function UM() in /home/k_dummy_account/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()'d code:233
    Stack trace:
    #0 /home/k_dummy_account/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()'d code(357): UM_Custom_Account_Tabs->__construct()
    #1 /home/k_dummy_account/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103): eval()
    #2 /home/k_dummy_account/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(114): spacexchimp_p001_exec()
    #3 /home/k_dummy_account/public_html/wp-content/plugins/my-custom-functions/my-custom-functions.php(102): require_once('/home/k_dummy_account/...')
    #4 /home/k_dummy_account/public_html/wp-settings.php(377): include_once('/home/k_dummy_account/...')
    #5 /home/k_dummy_account/public_html/wp-config.php(96): require_once('/home/k_dummy_account/...')
    #6 /home/k_dummy_account/public_html/wp-load.php(37): require_once('/home/k_dummy_account/...')
    #7 /home/k_dummy_account/public_html/wp-blog-header.php(13): require_once('/home/k in /home/k_dummy_account/public_html/wp-content/plugins/my-custom-functions/inc/php/functional.php(103) : eval()'d code on line 233
    

    The only thing that I changed in your code is the form_id.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @vforte

    It looks like you’re using an old version of UM. Could you please confirm what version of UM you’re using on your site?

    Regards,

    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp,
    I’m using the version 2.1.12: It should be the last one.

    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp,
    the last error shown should be an error related to the “My Custom Functions” plugin, in fact I put your code directly in my theme’s function.php file and it worked quite fine.

    There are two strange things:

    1. In a case, after I saved the profile, the option I selected (Radio) will be cleared: https://ibb.co/5FsXw8p
      It happens just with the highlighted option; the other options work fine. Could be the ‘+’ character in the value that determines this unwanted behavior?
    2. I registered a webhook on User Update, but When I press on the Save button, the webhook is not triggered, why? It is triggered just if I press on the button in the Account page and I would like to have the same behaviour on the User page.
    Thread Starter vforte

    (@vforte)

    Hi @champsupertramp,
    there was a space at the end of the last value and it caused the error shown on the last screenshot.

    Is there a way to rename the submit button of the Account page?

    Thanks.

    • This reply was modified 5 years, 6 months ago by vforte.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @vforte

    You can change specific English text with the steps in the link:
    https://docs.ultimatemember.com/article/1578-change-english-text-in-forms

    Regards,

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

The topic ‘ultimatemember_account doesn’t update all user fields’ is closed to new replies.