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!

Comments

drupal92037’s picture

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?

Ozeuss’s picture

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)

drupal92037’s picture

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

Ozeuss’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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