uninstalled and installed latest dev. no solution yet

warning: date_parse() error when previewing events
ref. http://drupal.org/node/246732 on 6.x

used: latest dev for event-5.x-2.x-dev.tar.gz (18-May-2008)

# warning: date_parse() expects parameter 1 to be string, array given in
D:\....\sites\all\modules\event\event.module on line 2680.
# warning: mysql_real_escape_string() expects parameter 1 to be string, array given in
D:\...\includes\database.mysql.inc on line 400.

it happened when previewing, in any event after selecting week/month. Also an error with rss feeds, I do not know if and how they are related.

Comments

jannalexx’s picture

the error remains, is there any suggestion?

dugh’s picture

I also see this error when viewing the event calendar using 5.x-2.x-dev latest version.

* warning: date_parse() expects parameter 1 to be string, array given in ...modules/event/event.module on line 2680.
* warning: mysql_real_escape_string() expects parameter 1 to be string, array given in ...mysite/includes/database.mysql.inc on line 400.

will kirchheimer’s picture

I see it too. Seems really random, only shows while logged in to admin.

I looked over my datebase and all my source info looks good

I think it is being triggered by ical, the error shows up out in the watchdog logs.

will kirchheimer’s picture

This fixed the erros, and the ical feeds:
http://drupal.org/node/191031

jannalexx’s picture

this one fixed the error: http://drupal.org/node/191031

in
function event_calendar_rss

replace:
$result = event_get_events(event_implode_date($date), $end_date, $rewrite_parameter);

with:
$result = event_get_events(event_implode_date($date), event_implode_date($end_date), $rewrite_parameter);

will kirchheimer’s picture

correction, the ical feed now has data on my site, but google ical reader says unable to parse.
the rss feeds look good.

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.