Hi, I have a problem with a module. I installed Bookings API and when I try to add a booking, here is what I get:

# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 579.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 580.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 583.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 584.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 585.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 587.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 590.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 593.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in/modules/date/date_api_ical.inc on line 596.
# warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /modules/date/date_api_ical.inc on line 602.
# Recurrences must have an end date.
# user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY start asc' at line 1 query: SELECT UNIX_TIMESTAMP(start) as startts, UNIX_TIMESTAMP(end) as endts FROM bookings_schedules WHERE resource_id=1 AND type IN (4,5) AND () ORDER BY start asc in /modules/bookingsapi/bookingsapi.module on line 166.

Someone can help?

Thanks

Comments

dwees’s picture

Yeah, use the development version instead, it seems to have this fixed. Of course I have a different error.

Dave

My site: http://www.unitorganizer.com/myblog

doughold’s picture

I did a fresh install of the following dev versions of the modules:

-Public Bookings
-Bookings API
-Views
-Date

I have also applied the four patches as stated in the Bookings API, and the two patches in the following post:

http://drupal.org/node/312563

I am still getting similar errors as above:



    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 579.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 580.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 583.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 584.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 585.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 587.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 590.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 593.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 596.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/clients/client0/web11/web/modules/date/date_api_ical.inc on line 602.
    * Recurrences must have an end date.
dwees’s picture

doughold’s picture

Yeah I applied that patch as well, it was one of the patches recommended in the README ... maybe I somehow applied it wrong, I am fairly new to patching. I used the patch -p0 < <patchname> command while in the date_repeat folder.

dwees’s picture

The patch is pretty small, I applied it manually, as I had applied other patches already so I knew this particular patch was going to fail.

Dave

My site: http://www.unitorganizer.com/myblog

daniel.gimeno’s picture

Has someone solved this problem? Shall I have to install all dev versions? only date dev? and wich Bookings api version?

Thanks, Daniel.

daniel.gimeno’s picture

Tri http://drupal.org/node/273669, It looks good. I have no more error.