When I tried to upgrade from 5.x to 6.x today, I got this error during the upgrade:

An error occurred. http://staffspace/update.php?id=1&op=do <br /> <b>Fatal error</b>: Call to undefined function _event_user_time() in <b>/var/www/sites/all/modules/event/event.install</b> on line <b>321</b>

I'm baffled because I can see the function _event_user_time() on line 1534 in event.module.

PHP version: 5.2.1
mySQL version: 5.0.38

Comments

emilyf’s picture

Status: Active » Fixed

You need to turn on/enable the event module first, then run update.php. This should fix it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

karunadave’s picture

Status: Closed (fixed) » Active

I just experienced the same error.

Workflow:
Event module is present but not enabled.
run update.php
Error: "Undefined function _event_user_time() on install"

This should not happen. If the module is not enabled, the update.php process must ignore the module, rather than interrupting the update with "Undefined function _event_user_time() on install".

For example, a multisite install of Drupal may have several instances that use Event, and one that does not. Updating the instance that does not use Event would be a problem with this bug as it is now.

killes@www.drop.org’s picture

That seems to be a core bug?

killes@www.drop.org’s picture

Status: Active » Fixed

I've worked around this bug in event.install.

Status: Fixed » Closed (fixed)

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