When i tried to install the module from a profile the installer was warning me that the _block_rehash() function at line 177 in copyright.install is unknown. By commenting out it got installed without a problem.

Comments

Robrecht Jacques’s picture

Not sure what is going on here because the function _block_rehash() is defined in block.module.

I'm wondering whether it is because you did not put the block module in the list of modules to install in your profile?

Other then that, I can't find a reason why Drupal wouldn't know _block_rehash() because all modules are loaded before doing the install iirc.

snufkin’s picture

Title: Obsolete _block_rehash? » undefined _block_rehash when using install profile

i had the block module in the profile, actually that was the first module... maybe its a bug in the install profile handling mechanism?

i changed the name so it suits the problem better.

Robrecht Jacques’s picture

Status: Active » Fixed

Added an if (function_exists('_block_rehash')) to my rehashing. So this should be fixed.

Robrecht Jacques’s picture

Status: Fixed » Closed (fixed)