I am running Drupal 5, and just upgraded Organic Groups to 5.x-7.2. However, I cannot view the site other than the home page, nor log in as the Administrator, and I get the following error:
Call to undefined function og_get_subscriptions() in /usr/www/users/ceo3141/modules/og/og_access.module on line 184
I did run update.php by disabling the $access_check. I am not sure what to do now other than delete the Organic Groups folder from my installation and try installing over; if I do that, I am not sure what to do differently to prevent the same error.
I do not have any of the problem modules listed above, although I do have og_calendar and og_teampage in my installation.
Any help would be greatly appreciated, thank you.
Comments
Comment #1
UnicornSong commentedsubscribing.
I also have this issue. I have never used OG before and downloaded v5.x-7.2 and got this error when saving initial module settings
Fatal error: Call to undefined function og_get_subscriptions() in C:\xampp\htdocs\drupal-5.7\sites\all\modules\og\og_access.module
I downgraded thinking it was a problem with the current version but still get the same under v5.x-6.1
Comment #2
ceo3141 commentedI ended up running Update.php a couple of times (which they say you are not supposed to do), and it seemed to go away. But who knows.
Comment #3
UnicornSong commentedHmm interesting
The thing is, the function is definately not in the module files....
Comment #4
JHeffner commentedI am getting the same error on the most recent version. except mine is Unknown function: node_get_types() /modules/og/og.module on line 2283. I ran update.php and it got rid of it for now, but I already had ran it once before so I don't think this is the fix.
subscribing
Comment #5
dariosantacruz commentedmmm the same thing happened to me, i checked the code and the line was like this
if ($subscriptions = og_get_subscriptions($account->uid)) {so basically it tries to conneto stablish a comparing with the user number I change it to be something like this
if ($subscriptions =1) {then I was able to watch the drupal but other users don't (because I'm the admin) a ran the update.php and nothing happened, for some strange reason i just have the idea of search "og_get_subscriptions" og_access.module and it was written 3 times the second one with an exclamation mark and the first one without it but it was just sticked to the = sign so i erased the space between the = and "og_access.module" to leave it like this
if ($subscriptions =og_get_subscriptions($account->uid)) {and now it its working, i don't know maybe it is just the result of the complete process or some error that you receive from your php program for the space. I hope this help
Comment #6
claudiu.cristeaThis version of Drupal is not supported anymore. If this is still an issue in the
8.x-1.xbranch, please open a new up-to-date ticket. Closing.