Fatal error

bob_irving's picture
public
bob_irving - Tue, 2009-01-06 19:59

Hi folks. I'm working my way through Bill's AMAZING book on Drupal for Education. Everything has gone swimmingly until I've tried to create an Assignment content type for the teacher role (p. 109, ch. 4).

When I try to save the Assignment type with the new fields, I got the following error:

Fatal error: Call to undefined function: date_create() in /home/birv2/public_html/drupal6/sites/all/modules/date/date_api.module on line 642

I have all the date modules enabled as per instructions.

Any suggestions?

Bob


Found the problem

bob_irving's picture
bob_irving - Tue, 2009-01-06 21:15

I did some searching, which I should have done before posting. Woops.

I needed to enable the DatePHP4 module, since I'm using a version of PHP below 5.0.

Live and learn!


PHP5

billfitzgerald's picture
billfitzgerald - Tue, 2009-01-06 23:27

Glad to hear you found the problem. It's never fun to receive fatal errors.

At some point, you should probably switch to a host with PHP 5. Most contrib modules still support 4, but it's becoming more common to only support 5.

Cheers,

Bill

FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education