user module not available during profile install

mikey_p - January 21, 2007 - 09:53
Project:Organic groups
Version:5.x-1.0
Component:og.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

moshe weitzman - January 21, 2007 - 14:23

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

#2

moshe weitzman - February 22, 2007 - 04:22
Title:OG not happy when installed from install profile» user module not available during profile install
Status:active» closed

not an og problem

#3

singularo - May 27, 2007 - 10:54
Status:closed» 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

AttachmentSize
og_block_refresh.patch 658 bytes

#4

moshe weitzman - June 4, 2007 - 03:38
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

Anonymous - June 18, 2007 - 03:47
Status:fixed» closed

#6

jackbravo - November 7, 2007 - 01:16

This is now fixed on HEAD right?

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

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.