Hi, on a new site, I made the mistake of enabling og and og_user_roles module at the same time.
When I did this, I get "Page cannot Be Displayed" for any authenticated type of access. (basically anytime you login), so the site is pretty much broken.

In the logs:
PHP Fatal error: Call to undefined function og_get_group_context() in /persistent/html/drupal514/sites/all/modules/og_user_roles/og_user_roles.module on line 1932

I'm guessing og_user_roles got enabled before the og modules and is causing this. I can't correct it by disabling the module because I cannot login to the site anymore.

Since its a new site, I can always just re-create the site from scratch, but is there a way to correct this issue without the web interface? (like hacking the db tables?)

Also - it might make sense to have a module dependency check on the og module to prevent this.

Comments

somebodysysop’s picture

Also - it might make sense to have a module dependency check on the og module to prevent this.

og dependency is defined in og_user_roles.info.

is there a way to correct this issue without the web interface? (like hacking the db tables?)

In the database, select the "system" table. Search for "name" = "og_user_roles". In this record, set "status" = 0.

update system set status = 0 where name = 'og_user_roles'

That should uninstall it.

somebodysysop’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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