Fatal error: Call to undefined function og_get_all_group_bundle() in /Users/Kmac/Sites/OG Test/htdocs/sites/all/modules/og_extras/includes/og_extras.views_default.inc on line 7

In fact, if I even try and create a group I get the same error.

This is a fresh install of drupal and just the required modules to run this module.

CommentFileSizeAuthor
#7 og_extras-infofile-1612674-7.patch432 bytesdavid lesieur

Comments

KHofmeyer’s picture

Title: Installing via Drush getting this error » After install getting this error
jaarong’s picture

Same here

rfulcher’s picture

Same here. Install all other modules fine but when I go to enable extras I get this message...

Fatal error: Call to undefined function og_get_all_group_bundle() in /home2/iwatllcc/public_html/wedoflood/sites/all/modules/og_extras/includes/og_extras.views_default.inc on line 7

eojthebrave’s picture

Status: Active » Postponed (maintainer needs more info)

What version of OG are you using? Based on the error I'm guessing that you're using OG 7.x-1.x. This module is only compatible with organic groups 7.x-2.x. Can you first confirm that you're using the 2.x branch of og. Thanks!

jaarong’s picture

That is the case for me, sorry, thought I assumed I was using 2.0 when I downloaded, then forgot to check that before submitting an issue.

eojthebrave’s picture

Status: Postponed (maintainer needs more info) » Active

I think we should consider adding a version number to the .info dependency on og.

dependencies[] = og (2.x)

david lesieur’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new432 bytes

This patch adds the version number to the OG dependency.
It also fixes the module's description, specifying the required version number in the standard form ("7.x-2.x" instead of "7.2").

david lesieur’s picture

Title: After install getting this error » Specify required OG version in module dependencies
eojthebrave’s picture

Status: Needs review » Fixed

Thanks @David. I went ahead and committed the portion that declares a required version and updated the description line by just removing the version information all together. With the required version in the dependency line Drupal will warn you that you need the 2.x version of og and not allow you to install this module without it so I didn't really think it was necessary.

http://drupal.org/commitlog/commit/38132/679d2759fad853e46a9f3b400f7155b...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jan-e’s picture

Is there any reason why you did not apply this patch to OG Extras 7.x-1.1 ?

eojthebrave’s picture

The patch is in the -dev version, at some point we'll release a new version (e.g. 7.x-1.2) and the fix will be in that version as well just haven't release new version yet.

juanjo_vlc’s picture

What about updating release number to match OG release number?

It would be easy associate OG Extras 7.x-2.x with OG 7.x-2.x.

juanjo_vlc’s picture

Issue summary: View changes

Updated with more information