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 |
Jump to:
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
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
Yes, cal2 requires date2.
#3
Automatically closed -- issue fixed for two weeks with no activity.
#4
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.