[Kolab-devel] [issue3656] Unable to SyncML Calendar / PHP Fatal error compareDateTime()
Smooph
kolab-issues at intevation.de
Fri May 29 13:45:22 CEST 2009
New submission from Smooph <webmaster at computational-chemistry.org>:
> > > >> Now I read on the mailing list that it should work. So I checked the
> > > >> logs for errors that only happen when I sync stuff. And this is the
> > > >> one I found in the /kolab/var/kolab/www/client/log/php-errors.log
> > > >>
> > > >> "PHP Fatal error : Call to a member function compareDateTime() on a
> > > >> non- object in
> > > >> /kolab/var/kolab/www/client/kronolith/lib/Driver/kolab.php on line
> > > >> 1153"
> > > >
> > > > Same on my Side with Kolab 2.2.1 native on OpenSUSE-11.1.
> > > > My Client is a Blackberry 8300 Curve with actual Funambol-Plugin.
> > > >
> > >
> > > Not a real solution but according to the error I'd say that either
> > > $endDate or $startDate is not defined and not recognized as a date
> > > object. Maybe a null check should be sufficient?
> > >
> > >
> > > Carsten
> >
> > OK, thanks for the Tip.
> >
> > I have now made changes as follow on those lines:
> >
> > Line 1137
> > ---------------------------
> > if (is_null($startDate)) {
> > ----------------------------
> > to
> > ----------------------------
> > if (empty($startDate)) {
> > -----------------------------
> >
> > and Line 1140
> > -----------------------------
> > if (is_null($endDate)) {
> > ----------------------------
> > to
> > -----------------------------
> > if (empty($endDate)) {
> > -----------------------------
> >
> > and now it syncs without my stupid comment out of lines 1153 and 1154.
> >
> > But i do not now this is the right way to solve that problem.
> >
> > Thomas
>
> I have been testing this for the last couple of days and I didn't get an
> error. For me the issue is fixed, but of course it would be nice to have a
> developer or somebody who knows the code doublecheck everything and give
> some feedback.
>
> Is there a way to let the guys from Horde know about this issue? So they
> can fix it too.
>
>Regards Smooph
----------
messages: 20433
nosy: smooph
priority: bug
status: resolved
title: Unable to SyncML Calendar / PHP Fatal error compareDateTime()
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue3656>
___________________________________________________
More information about the devel
mailing list