Download & Extend

user module not available during profile install

Project:Organic groups
Version:5.x-1.0
Component:og.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

OG is giving me an error when I attempt to include it in an install profile. The error occurs during installation and is as follows:

Fatal error: Call to undefined function: _block_rehash() in /home/.magi/mprasuhn/mikeyp.net/ccms/drupal_ccms/sites/all/modules/og/og.install on line 89

This stops the install from completing and when trying to access index.php afterword I get an error there as well (although I think this is just related to the installation not completeing):

Fatal error: Call to undefined function: user_access() in /home/.magi/mprasuhn/mikeyp.net/ccms/drupal_ccms/modules/system/system.module on line 98

Is it appropriate to post this here? I plan to post this under install system for the drupal project, but I feel like it's also tied to this module at the same time...(not really sure where the problem lies)

What other info do you need?

-Mike

Comments

#1

I have no idea why those functions would not be available. requires research.

#2

Title:OG not happy when installed from install profile» user module not available during profile install
Status:active» closed (fixed)

not an og problem

#3

Status:closed (fixed)» active

Actually, this comment by RobRoy http://drupal.org/node/121765 tends to indicate that og.install should be calling block_rehash in the _enable function, not the _install function. That is how devel.module does it.

This small patch solves the problem for my install profile and makes it work.

If its not an og problem, is there an alternative way to cure it?

TIA

AttachmentSizeStatusTest resultOperations
og_block_refresh.patch658 bytesIgnored: Check issue status.NoneNone

#4

Status:active» fixed

I think this page lies about all modules being available - http://api.drupal.org/api/HEAD/function/hook_install. it should add a note about install profiles.

fixed. thx.

#5

Status:fixed» closed (fixed)

#6

This is now fixed on HEAD right?

But is there going to be a release (4.1) with the bugfix?

Thanks

nobody click here