[kronolith] Call to a member function dateString() on null
Ferdinand Gruber
fer.grub at yahoo.de
Wed Sep 23 17:33:33 UTC 2020
Am 22.09.20 um 15:07 schrieb Ferdinand Gruber:
> Today I get an error from kronolith on my server:
>
> This message appears every time the Android Davx5 app tries to
> synchronize.
>
> HORDE[19373]: [kronolith] Error: Call to a member function
> dateString() on null in
> /srv/www/htdocs/horde/kronolith/lib/Kronolith.php:444
> Stack trace:
> #0 /srv/www/htdocs/horde/kronolith/lib/Driver/Sql.php(312):
> Kronolith::addEvents(Array, Object(Kronolith_Event_Sql), NULL, NULL,
> false, false, false)
>
I made a little change of the code in
/srv/www/htdocs/horde/kronolith/lib/Kronolith.php at line 444:
This is the hack:
if ( ! is_null($event->start) )
$results[$event->start->dateString()][$event->id] = $json ?
$event->toJson() : $event;
I think that an incorrect calendar event was sent by the DAVX5 app. I
was not able to find out which one it was.
The code above seems to help.
Please give me some feedback.
--
Regards from Austria
Ferdinand Gruber
More information about the kronolith
mailing list