Fatal error: Call to undefined function _office_hours_create_hours_arr() /modules/office_hours/office_hours.mod

drupal92037 - November 8, 2009 - 06:10
Project:Office Hours
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I tried to add Office Hours to a content type as a field, and I get:

Fatal error: Call to undefined function _office_hours_create_hours_arr() /modules/office_hours/office_hours.mod

I'm running:
Drupal 6.14
Office Hours 6.x-1.x-dev
Apache/2.2.4 (Ubuntu) mod_ldap_userdir/1.1.11 PHP/5.2.3-1ubuntu6.5
And all the dependent modules are enabled.

Help!

#1

drupal92037 - November 8, 2009 - 06:29

I see that the function _office_hours_create_hours_arr() was originally defined but subsequently commented out because "we're using date_api now". Obviously _office_hours_create_hours_arr() isn't defined in date_api.module or elsewhere, so ... why is that function being called on line 107?

#2

Ozeuss - November 8, 2009 - 06:59

Must've slipped. No reason for the function to be called. you can comment it out for now, i'll commit the new version (it will be updated in the next 24 hrs)

#3

drupal92037 - November 8, 2009 - 07:27

OK, thanks. I just commented out the function call on line 107, and everything appears to be fine.

#4

Ozeuss - November 8, 2009 - 08:34
Status:active» fixed

#5

System Message - November 22, 2009 - 08:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.