[kronolith] Free/Busy Retrieve Error

Anant S Athavale asa at isac.ernet.in
Wed Jun 29 20:29:40 PDT 2005



  Hi list:

  I also have the same problem.  I also reported this in the list. 
But, nobody replied. I am also not a PHP expert.  I request the
experts to look into this and guide us.
Regards,

Anant Athavale,

Quoting akulick at backup.corp.eoscene.com:

> There appears to be an error in Free/Busy check in which the URL is
> determined correctly, but the data retrieval is failing. 
Specifically,
> placing an "echo $url;" spits out the correct URL.  Retrieval via
http
> works correctly.  However, the function returns nothing, echo $data
> returns no meaningful data and fails if ($data).
>
> I am unfortunately not smart enough to understand where
> @file_get_contents calls too, but it would appear it is not
operating
> correctly.
>
> Any help would be appreciated, even a pointer to the file_get_data 
> function and I could try to get to the bottom of it and produce a 
> diff/patch.
>
> kronolith/lib/Kronolith.php line 850:
>
>         // Check if we can retrieve a VFB from the Free/Busy URL, if
>         // one is set.
>         $url = Kronolith::getFreeBusyUrl($email);
>         if (is_a($url, 'PEAR_Error')) {
>             return $url;
>         }
>         if (!empty($url)) {
>             $data = @file_get_contents($url);
>             if ($data) {
>                 $vCal = &new Horde_iCalendar();
>                 $vCal->parsevCalendar($data);
>
>                 $vFb = &$vCal->findComponent('VFREEBUSY');
>                 if ($vFb !== false) {
>                     return $vFb;
>                 }
>             }
>         }
>
> --
> Kronolith mailing list - Join the hunt:
http://horde.org/bounties/#kronolith
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>




More information about the kronolith mailing list