Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fatal error: Call to undefined function og_user() in /[...]/sites/all/modules/contrib/spaces/spaces_og/spaces_og.pages.inc on line 7
Comment | File | Size | Author |
---|---|---|---|
#4 | spaces-spaces_og-fix_groups_tab_on_user_profile_page-1218056-4.patch | 6.86 KB | ztekle |
#3 | spaces-spaces_og-remove_groups_tab_from_profile.1218056.3.patch | 3.19 KB | grndlvl |
Comments
Comment #1
freelockI just closed #1425988: PHP Fatal error: Call to undefined function og_user() in spaces/spaces_og/spaces_og.pages.inc on line 7 as duplicate...
Looks like there is no replacement hook_user for the 'register' op. I think this might need to be done as a form alter?
I just took a look at what this did in D6, and it looks like it serves the same function as the "Groups Audience" field in og -- lists all groups with a checkbox for each one, and groups the member is part of are checked.
Perhaps the best approach for this tab might be to make it dependent on og_register? Looks like og_register allows you to show groups open to membership applications on the user register page. Seems like this "groups" tab should only show up if og_register is enabled, and show the same groups?
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedenabling og_register does not solve it for me
Edit: I am using og 7.2.x
Comment #3
grndlvl CreditAttribution: grndlvl commentedIt seems reasonable to me to not have this since the user can see their groups on their account page and have the ability to adjust the groups from the user edit page.
Comment #4
ztekle CreditAttribution: ztekle commentedHere is a patch that fixes the original Groups Tab issue. @grndlvl Instead of removing the whole functionality we can fix it and keep the original feature. The patch works with organic groups version "7.x-1.5".
Comment #5
jeffschulerI ran into this WSOD, too.
I'm using the patch in #3 to remove this functionality, since, as grndlvl says, this functionality already exists on the account view/edit pages.