I just upgraded Drupal to 6.14 (which seems to have worked fine), followed immediately by an upgrade of the Date module to 6.x-2.4. Trying to run the 'update.php' script I get nothing but a blank page. The logs show this error:

[17-Sep-2009 12:34:31] PHP Fatal error: Call to undefined function date_get_format_types() in /home/tactusca/public_html/intranet/sites/all/modules/date/date.module on line 289

What is wrong ?

Thanks,

Comments

stefan_seefeld’s picture

Update: I tried to downgrade back to date-6.x-2.3, but am now seeing the same error with that version, too. May the upgrade process itself have done something irreversible (such as disable the module entirely, so it now isn't seen by the rest of my drupal modules) ?

Thanks,

stefan_seefeld’s picture

Status: Active » Closed (fixed)

OK, I managed to solve the problem. For whatever reason, the 'date_api' module was disabled, leading to the above missing function error. (Whether it was disabled because of a bug in the date upgrade process, or because I did something stupid I have no idea.)
Switching the appropriate flag on in the database allowed me to run the update.php script, which ran to completion without further issues.

lhugg’s picture

I'm having the same issue, and was glad to find your comment here. How exactly did you change the flag in the database? Since my site is down like yours, I can't do it through the modules interface, and I have no idea where that info lives in the tables. Your help would be very much appreciated.

-larry

lhugg’s picture

Status: Closed (fixed) » Active
bfr’s picture

UPDATE 'system' SET status='1' WHERE name='date_api'

or however it goes, anyway, the table is system, change status from 0 to 1.

lhugg’s picture

Thank you.

arlinsandbulte’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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