[Cartoweb-users] help about installing cartoweb3

Stefan Neumeier stefan.neumeier at vti.bund.de
Mon Jan 3 02:56:11 EST 2011


  Hello,

1) if you want to get cartoweb to run with php 5.3 you have to replace 
some deprecated functions in its source code as described here:

http://bugzilla.maptools.org/show_bug.cgi?id=2107 (see attached patch)

2) If the zoom/pan tools do not work than replace  all ereg() functions 
with preg_match whereas the regular pattern should be enclosed in 
"/pattern/"
in cartoweb/client/cartoclient.php around line 554

3) If you get the error "strftime() ...it is not safe to rely on the 
systems timezone settings..." insert following line at the
beginning of the indicated script file: 
"date_default_timezone_set('Europe/Berlin')"  of course you have to 
replace the Europe/Berlin with your timezone settings.

4) In order to be able to use the export pdf plugin you have to comment 
out "set_magic_quotes_runtime()" in lines 910, 923, 1165 and 1203 in 
.../include/fpdf/fpdf.php

5) I could not get the outline plugin AND the locate plugin to work 
correctly when using both plugins in one application. (The outline 
plugin deactivates the locate plugin somehow).
      Using only one of the plugins functions as expected...

6) Please be also aware that somehow the UMN mapserver functionality has 
changed, too. For example, in order to be able to use the query plugin 
you have to
alter the ... $mslayer->close();  return $result; to return $result; 
$mslayer->close(); in ServerMapquery.php and ClientOutline.php. 
Otherwise you get a cryptic
error message and nothing is returned to cartoweb...

If you want to use the query plugin together with postgres I would 
recommend to use the hilight plugin and not the hilight function of the 
mapserver as for me this resulted in a "Got request larger than result set"
error in the msDrawMap() function.

I hope this helps you a little bit.
Regards,
Stefan


More information about the Cartoweb-users mailing list