[horde] weather and metar problem

Ilya mail at krel.org
Wed Mar 3 20:45:23 PST 2004


commenting out these lines, allows the weather to show up, am I breaking
something?
   $weatherDotCom->setCache("file",
                array("cache_dir" => ($cacheDir . '/')));

this is what i have in conf.php:
$conf['cache']['default_lifetime'] = 1800;
$conf['cache']['params']['dir'] = Horde::getTempDir();
$conf['cache']['driver'] = 'file';


I tried to set dir to /tmp or /var/tmp, didnt work. Printing out the cache dir
from the weatherdotcom.php always shows /tmp.

On Wed, Mar 03, 2004 at 11:15:56PM -0500, Ilya wrote:
> On Wed, Mar 03, 2004 at 11:02:04PM -0500, Rick Emery wrote:
> > Quoting Ilya <mail at krel.org>:
> > 
> > >all my packages are up to date according to pear upgrade-list.
> > >
> > >I did find something interesting thing: I moved the metar to the 
> > >first position
> > >in Layout and it came up on the screen (just no data) - how do i update it?
> > 
> > Once you select a location (in the layout screen), it should update
> > automatically.
> 
> doesnt happen for me for some reason.
> 
> > 
> > >After moving weatherdotcom to second position everything after and 
> > >including it
> > >disappeared. Since I had weatherdotcom and metar on last positions it 
> > >explains
> > >why only metar was siuffering.
> > >Not sure yet why weatherdotcom is causing this problem, no errors so 
> > >far in any
> > >logs.
> > 
> > This has been discussed before, but I can't remember what the fix was. Check
> > the archives for this list and the dev list. If I remember what the fix was,
> > I'll post it.
> 
> I couldnt find anything. I did get down to this:
> Horde::logMessage('LLL', __FILE__, __LINE__, PEAR_LOG_ERR);
>             return PEAR::raiseError(
>                 _("No temporary directory available for cache."),
>                 'horde.error');
>         } else {
> Horde::logMessage('LLLK', __FILE__, __LINE__, PEAR_LOG_ERR);
>             $weatherDotCom->setCache("file",
>                 array("cache_dir" => ($cacheDir . '/')));
>         }
> Horde::logMessage('LLLL', __FILE__, __LINE__, PEAR_LOG_ERR);
> 
> in the log LLLK is the last message. so dies somewhere in the else.
> -- 
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org



More information about the horde mailing list