Fatal error

Events happening in the community are now at Drupal community events on www.drupal.org.
bob_irving's picture

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

Comments

Found the problem

bob_irving's picture

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

bonobo's picture

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

Drupal in Education

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: