[ka-Map-users] precache2.php

Lorenzo Becchi lorenzo at ominiverdi.com
Fri Sep 8 19:04:05 EDT 2006


> If it's necessary to set it, wouldn't it be nice if it said so,  
> instead
> of simply crashing?

Jeff, good point, that should be refined.
I've lately used precache.php in some environments but some other are  
having problems.
Precache2.php worked just once for me.
I've not the time to understand why now.

is there anybody with some experience on this?

ciao
Lorenzo






On 08/set/06, at 22:49, Jeff Dege wrote:

> I've just upgraded to 1.0.b1, and I'm trying to pre-generate the  
> cache.
>
> (I'd  been working with 0.2, and that lacked precache.php and
> precache2.php.)
>
> precache.php fails:
>
>   $php precache.php -f -s arkansas -s 2000000
> http://localhost:8080/kamap/tile.php
>
>   Warning: [MapServer Error]: msProcessProjection(): No such file or
> directory
>   in E:\ms4w\apps\ka-map-1.0.b1\htdocs\precache.php on line 84
>
>   Warning: Failed to open map file /ms4w/apps/arkansas/arkansas.map in
>   E:\ms4w\apps\ka-map-1.0.b1\htdocs\precache.php on line 84
>
>   Fatal error: Call to a member function getAllGroupNames() on a
> non-object in
>   E:\ms4w\apps\ka-map-1.0.b1\htdocs\precache.php on line 92
>
>
> "/ms4w/apps/arkansas/arkansas.map" is the value in my
> include/config.php, so that's being read properly.  And when I view  
> the
> maps via the web browser, they show up fine (if a little slow because
> they haven't been cached, yet.)
>
> No idea why precache.php can't read the map file.
>
> So I tried precache2.php.
>
> That crashes.
>
> Stuck in some print-line-numbers, and it's crashing on this, around  
> line
> 84:
>
>   /* create the main cache directory if necessary */
>   if(!@is_dir($szBaseWebCache))
>       makeDirs($szBaseWebCache);
>
> $szBaseWebCache is commented out, in config.php.
>
> If it's necessary to set it, wouldn't it be nice if it said so,  
> instead
> of simply crashing?
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users



More information about the ka-Map-users mailing list