Fwd: Re: [horde] weather and metar problem

Ilya mail at krel.org
Sun Mar 7 14:39:46 PST 2004

I traced the failure to this line:
Horde::logMessage("IN CACHE1 $cacheType $cacheOptions[cache_dir] ", __FILE__,
        @$cache = new Cache($cacheType, $cacheOptions);
Horde::logMessage("IN CACHE2", __FILE__, __LINE__, PEAR_LOG_ERR);

never gets to second print. so it fails when create Cache object. the prints of
cacheType returns "file" , and cacheOptions returns /tmp correctly.

do you know which Cache.php is used for this? there are 3 on my system :

moving all of them away does not cause a failure of this line:
@include_once "Cache.php";

so i am not sure what is being loaded here.

On Thu, Mar 04, 2004 at 10:38:10AM -0500, Rick Emery wrote:
> This got rejected the first time I tried to send it, so I'm trying again.
> A post by someone else got my attention, too. I wonder if the pear cache
> package could be causing a problem (the comments in the Services_Weather code
> indicate that there is no error handling in the cache package). You might try
> making sure you have the latest pear cache package installed; maybe there was
> a bug that was fixed.
> hth,
> Rick
> ----- Forwarded message from rick at emery.homelinux.net -----
>     Date: Thu,  4 Mar 2004 08:49:16 -0500
>     From: Rick Emery <rick at emery.homelinux.net>
> Reply-To: Rick Emery <rick at emery.homelinux.net>
>  Subject: Re: [horde] weather and metar problem
>       To: mail at krel.org
> Quoting Ilya <mail at krel.org>:
> > commenting out these lines, allows the weather to show up, am I breaking
> > something?
> >
> >    $weatherDotCom->setCache("file",
> >                 array("cache_dir" => ($cacheDir . '/')));
> The caching is pretty important. weather.com has very strict rules about how
> often a user can poll the site for weather info; using Services_Weather's
> caching routines obeys these rules. It would probably be better to try to
> figure out why caching in the temporary directory is failing than to run
> without it.
> > this is what i have in conf.php:
> > $conf['cache']['default_lifetime'] = 1800;
> > $conf['cache']['params']['dir'] = Horde::getTempDir();
> > $conf['cache']['driver'] = 'file';
> This looks like mine, except I have a directory explicitly listed (instead of
> Horde::getTempDir()).
> > I tried to set dir to /tmp or /var/tmp, didnt work. Printing out the
> > cache dir
> > from the weatherdotcom.php always shows /tmp.
> Does the user your web server runs as have permission to write to the /tmp
> directory? (I think it's the user your web server runs as that has to have
> write permission. I'm cc'ing the horde list for the archives, so I hope
> someone will correct me if I'm wrong).
> Thanks,
> Rick
> --
> 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
> ----- End forwarded message -----
> --
> Rick Emery
> "When once you have tasted flight, you will forever walk the Earth
>  with your eyes turned skyward, for there you have been, and there
>  you will always long to return"
>                                               -- Leonardo Da Vinci

More information about the horde mailing list