Fatal error: Call to undefined function og_user() in /[...]/sites/all/modules/contrib/spaces/spaces_og/spaces_og.pages.inc on line 7

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

freelock’s picture

I 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?

SocialNicheGuru’s picture

enabling og_register does not solve it for me

Edit: I am using og 7.2.x

grndlvl’s picture

Status: Active » Needs review
FileSize
3.19 KB

It 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.

ztekle’s picture

Version: 7.x-1.x-dev » 7.x-3.0-alpha1
FileSize
6.86 KB

Here 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".

jeffschuler’s picture

Issue summary: View changes

I 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.