[horde] Metar block showing error with TAF

Michael Rubinsky mrubinsk at horde.org
Sat Dec 6 22:37:57 UTC 2008


Quoting Frederic Naud <admin at naud.org>:

> Content-Type: text/plain;
> 	charset=ISO-8859-1;
> 	DelSp="Yes";
> 	format="flowed"
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> Hi all,
>
> I noticed an error for portal pages that use the Metar block with  
> TAF  (Forecast).  At the top of the page, the following warnings are  
>  displayed:
>
> Notice: Undefined index: validFrom in   
> /home/user/public_html/horde/lib/Block/metar.php on line 347
>
> Notice: Undefined index: validTo in   
> /home/user/public_html/horde/lib/Block/metar.php on line 347
>
> Warning: Invalid argument supplied for foreach() in   
> /home/user/public_html/horde/lib/Block/metar.php on line 349
>
> And the Metar block contains no forecast
>
> I am running Horde 3.3.  Is this a known problem?

My guess is that the METAR station that you have selected does not  
have valid data available.  Can you try putting:

var_dump($taf);

after line 341 in horde/lib/Block/metar.php?  Do you get the same  
error when selecting other stations?


Thanks,
mike

--
The Horde Project (www.horde.org)
mrubinsk at horde.org

"Time just hates me. That's why it made me an adult." - Josh Joplin


More information about the horde mailing list