Call to undefined function date_now()

yngens - February 17, 2008 - 23:13
Project:Calendar
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When installing 5.x-2.x-dev an error happens:

Fatal error: Call to undefined function date_now() in /home/mysite/public_html/sites/all/modules/calendar/calendar.inc on line 12

#1

orangecoat-ciallella - March 27, 2008 - 22:24

I found installing version 2 of the Date API corrected a similar error when I tried to access a path like, /calendar/2008/03/29
After copying the new ver 2 to /sites/all/modules I checked /admin/logs/status and found it was necessary to allow the database scheme to be updated.

There is a Calendar version 2 to Date API version 2 relationship mentioned on both the Date and Calendar projects pages.

I had Calendar 5.x-2.0-rc loaded with Date 5.x-1.8 and that's when I received the error below. As the Date project explains, some of the date functions have been changed and may be the source of the error.

Call to undefined function date_now() in calendar.module on line 203

#2

JohnAlbin - April 7, 2008 - 21:58
Status:active» fixed

Yes, cal2 requires date2.

#3

Anonymous (not verified) - April 21, 2008 - 22:02
Status:fixed» closed

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

#4

hendler - August 30, 2008 - 21:45

adding my 2cents

I experienced this error when keeping the event module directory - not active, but installed...
I removed the events module, and the issue went away.
Not sure if this is because the module's conflict, or removing the event, eventrepeat, and rsvp modules caused some cached code to be refreshed.

 
 

Drupal is a registered trademark of Dries Buytaert.