Unable to Sync Calendar / PHP Fatal error compareDateTime()
Diego M. Vadell
dvadell at linuxclusters.com.ar
Fri May 22 17:28:25 CEST 2009
Hi,
I'm in the dark here, not knowing at all the guts of Horde, but a quick
google search led me to putting "$this" in front of the objects. The code
looks like this:
/* check if event period intersects with given period */
// if (!(($endDate->compareDateTime($event->start) < 0) ||
// ($startDate->compareDateTime($event->end) > 0))) {
if (!(($this->endDate->compareDateTime($event->start) < 0) ||
($this->startDate->compareDateTime($event->end) > 0))) {
$keep_event = true;
}
Please if you try it, know that I'm just guessing.
I will continue testing Kolab 2.2.2 and report if I get any error with this.
Cheers,
-- Diego.
On Wednesday 20 May 2009 17:19:16 Thomas Nintemann wrote:
> > 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.
>
> For stupid test i comment out the Line 1153 and 1154 as here:
> /*if (!(($endDate->compareDateTime($event->start) < 0) ||
> ($startDate->compareDateTime($event->end) > 0)))*/
>
> and it sync's.
> But i now this a bad idea.
>
> Any better idea's?
>
> Thomas
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
More information about the users
mailing list