Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Fields Causing Registration Issues


  • codyrickman
    Participant

    @codyrickman

    Hello, I recently updated BuddyPress and now I am having issues with my registration page. I get the following error:

    [06-Jul-2021 12:49:48 UTC] PHP Fatal error: Uncaught Error: Call to a member function profile_groups() on null in /home/toptrailhorse/public_html/Website/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php:101
    Stack trace:
    #0 /home/toptrailhorse/public_html/Website/wp-content/themes/thrive-nouveau/buddypress/members/register.php(50): bp_profile_groups()
    #1 /home/toptrailhorse/public_html/Website/wp-includes/template.php(732): require(‘/home/toptrailh…’)
    #2 /home/toptrailhorse/public_html/Website/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(165): load_template(‘/home/toptrailh…’, false, Array)
    #3 /home/toptrailhorse/public_html/Website/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array)
    #4 /home/toptrailhorse/public_html/Website/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(350): bp_get_template_part(‘members/registe…’, NULL, Array)

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

  • codyrickman
    Participant

    @codyrickman

    Hello, any update on this? Users have not been able to signup to my site in over a month now. I cannot disabled the xProfile fields as they are a required parameter.


    shanebp
    Moderator

    @shanebp

    The error is most likely due to your use of the ‘thrive’ theme.
    It loads its own version of BP templates:
    wp-content/themes/thrive-nouveau/...

    They have not updated their templates for the latest version of BP.
    To confirm, switch momentarily to a WP theme like 2020.
    If the issue does not persist, then contact thrive about your issue.


    codyrickman
    Participant

    @codyrickman

    Shane, thanks. I have tried to contact them but it seems they are off the grid. Can you point me to an example of how to loop through the x profile fields for the registration form? I believe fixing that will resolve my issue.


    ririshi
    Participant

    @ririshi

    Hey there. I just ran into the same issue and fixed it by replacing an old (deprecated in BP 8.0.0) call to bp_nouveau_base_account_has_xprofile() with bp_nouveau_has_signup_xprofile_fields(true). The true is very important as it will initialize the global variable $profile_template, which is used by bp_profile_groups() (the function that is erroring). You’d have to change this in the overwritten buddypress register.php template, used by your theme. My template probably looks different from yours, so I can’t provide the specific lines that you’d have to make changes to. Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar