Hi all, I have reinstalled pmapper 5 from start, keeping only the minimal layers to display. It looks like Gmap or OSM have to be present, so I keep OSM and countries layers only. As before, countries don't show up on the map, only OSM does.
No php or mapserver error.
pm_debug.log shows:
[25-Jan-2013 11:29:10] P.MAPPER debug info
x_setsessionvar.php, for sessionvar mapscale:
55468034.09273208
[25-Jan-2013 11:29:15] P.MAPPER debug info
P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for
proper function of PDF print.
[25-Jan-2013 11:29:15] P.MAPPER debug info
P.MAPPER-ERROR: DEFRESOLUTION tag not set to 96. This value is needed for
proper function of PDF print.
[25-Jan-2013 11:29:16] P.MAPPER debug info
x_setsessionvar.php, for sessionvar mapMaxExtent:
Array
(
[0] => -4000000
[1] => 3000000
[2] => 8000000
[3] => 12000000
)
[25-Jan-2013 11:29:16] P.MAPPER debug info
x_setsessionvar.php, for sessionvar mapProjection:
EPSG:900913
[25-Jan-2013 11:29:16] P.MAPPER debug info
x_setsessionvar.php, for sessionvar mapscale:
55468034.09273208
[25-Jan-2013 11:29:17] P.MAPPER debug info
Validation of search.xml file succeeded
apache error log:
/usr/sbin/apache2: symbol lookup error:
/usr/lib/php5/20090626+lfs/php_mapscript.so: undefined symbol:
php_output_get_level
No error in Firebug, except that the following GET runs forever:
http://myserver/pmapper/pmapper500/lib/query/search/?&action=optionlist
Works well though if I run the link above in the browser:
{"searchJson":{"selectname": "findlist", "events":
"onchange=\"PM.Search.setSearchInput()\"", "options": {"0": "Search for",
"countries": "Country"}}, "action":"optionlist", "divelem":"1"}
config_default.xml and pmapper_demo.map attached.
MapServer version 6.0.3
PHP Version 5.3.10-1ubuntu3.2
Any idea what could be wrong on my setup?
Thanx,
Chris
On Wed, Jan 23, 2013 at 4:08 PM, Chris forum <[email protected]> wrote:
> Hi all
>
> With a project running fine in pmapper 4.3.0, I am trying now to get demo
> pmapper5 beta2 working.
>
> Owner of /img/legend/ is www-data
>
> I have modified the mapfile accordingly (SHAPEPATH, FONTSET, SYMBOLSET,
> CONFIG "PROJ_LIB", IMAGEPATH, IMAGEURL and CONFIG "MS_ERRORFILE").
>
> Vector demo data have been added at the right place, raster Shaded relief
> also. Blue Marble has been remove from the config_default.xml file.
>
> 900913 projection added to epsg file:
> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0
> +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs <>
>
> When I run
> http://myserver/pmapper/pmapper500/?config=default&resetsession=ALL in
> Firefox, all I get is a blank map. Eventhough Countries, Cities and Rivers
> layers are selected in the TOC.
> OSM and Google sat are the only ones to work fine.
>
> I don't get any error from both php and mapserver error logs, while
> pm_debug.log is showing:
> [23-Jan-2013 15:03:27] P.MAPPER debug info
> P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for
> proper function of PDF print.
> [23-Jan-2013 15:03:27] P.MAPPER debug info
> P.MAPPER-ERROR: DEFRESOLUTION tag not set to 96. This value is needed for
> proper function of PDF print.
> [23-Jan-2013 15:03:27] P.MAPPER debug info
> x_setsessionvar.php, for sessionvar mapMaxExtent:
> Array
> (
> [0] => -4000000
> [1] => 3000000
> [2] => 8000000
> [3] => 12000000
> )
>
> [23-Jan-2013 15:03:27] P.MAPPER debug info
> x_setsessionvar.php, for sessionvar mapProjection:
> EPSG:900913
> [23-Jan-2013 15:03:29] P.MAPPER debug info
> Validation of search.xml file succeeded
> [23-Jan-2013 15:03:29] P.MAPPER debug info
> x_setsessionvar.php, for sessionvar mapscale:
> 55468034.09273208
>
> I then checked the mapfile (pmapper_demo.map) alone, and I had to add an
> EXTENT to be able to load it:
> EXTENT -180 -90 180 90
>
> Unfortunately, that doesn't solve the problem in pmapper5.
>
> In Chrome, several small rose tiles are displayed, and when I inspect them
> (developper tool), I find a bigger tile above them:
> <img id="OpenLayersDiv206" style="width: 0px; height: 0px; position:
> relative; opacity: 0.3;" class="*olTileImage olImageLoadError*"
> src="lib/map/pmhighlight?&width=1105&height=732&bbox=-8816145.2489599,338156.198789,12816145.24896,14661843.801211&crs=EPSG%3A900913&timestamp=13589532565">
>
> Any idea where the problem could be?
>
> Thanx,
> Chris
>
>
<pmapper>
<ini>
<pmapper>
<pmTitle>p.mapper - A MapServer PHP/MapScript Framework</pmTitle>
<version>5-dev</version>
<debugLevel>3</debugLevel>
<metadataPrefix>PM_</metadataPrefix>
<plugins>tocdomains</plugins>
<plugins>mapselect</plugins>
</pmapper>
<config>
<pm_config_location>default</pm_config_location>
<pm_javascript_location>js/src</pm_javascript_location>
<pm_print_configfile>common/print.xml</pm_print_configfile>
<pm_search_configfile>inline</pm_search_configfile>
<pm_resetsession>ALL</pm_resetsession>
</config>
<map>
<mapFile>pmapper_demo.map</mapFile>
<tplMapFile>common/template.map</tplMapFile>
<projection>EPSG:900913</projection> <!-- likely not needed... -->
<categories>
<category name="cat_admin" imgFormat="png32" olTheme="admin" buffer="0" themeType="PMTile">
<group>countries</group>
</category>
<category name="cat_osm" description="OSM">
<group olTheme="osmmapnik" name="osmmapnik" description="OpenStreetMap" themeType="OSM" ></group>
</category>
</categories>
<olThemes>
<theme>osmmapnik</theme>
<theme>admin</theme>
</olThemes>
<defGroups>
<group>countries</group>
<group>osmmapnik</group>
</defGroups>
<layerAutoRefresh>1</layerAutoRefresh>
<imgFormat>png</imgFormat>
<altImgFormat>jpeg</altImgFormat>
<sliderMax>max</sliderMax>
<sliderMin>100000</sliderMin>
</map>
<query>
<limitResult>300</limitResult>
<highlightColor>0 255 255</highlightColor>
<highlight>select</highlight>
<highlight>search</highlight>
<autoZoom>search</autoZoom>
<zoomAll>search</zoomAll>
<zoomAll>select</zoomAll>
<infoWin>dynwin</infoWin>
<alignQueryResults>1</alignQueryResults>
<pointBuffer>10000</pointBuffer>
<shapeQueryBuffer>0.01</shapeQueryBuffer>
<numberFormat>
<decimals>1</decimals>
<decimalPoint>,</decimalPoint>
<thousandsSep>||</thousandsSep> <!-- 2 pipes "||" are used for a blank as separator-->
</numberFormat>
</query>
<ui>
<tocStyle>tree</tocStyle>
<legendStyle>attached</legendStyle>
<useCategories>1</useCategories>
<catWithCheckbox>1</catWithCheckbox>
<scaleLayers>1</scaleLayers>
<icoW>18</icoW>
<icoH>14</icoH>
<legendKeyimageRewrite>0</legendKeyimageRewrite>
</ui>
<locale>
<defaultLanguage>en</defaultLanguage>
<defaultCharset>UTF-8</defaultCharset>
<map2unicode>1</map2unicode>
</locale>
<print>
<printImgFormat>png</printImgFormat>
<printAltImgFormat>jpeg</printAltImgFormat>
<pdfres>2</pdfres>
</print>
<download>
<dpiLevels>150</dpiLevels>
<dpiLevels>200</dpiLevels>
<dpiLevels>300</dpiLevels>
</download>
<php>
<pearDbClass>MDB2</pearDbClass>
<defaultTimeZone>Europe/Vienna</defaultTimeZone>
</php>
<pluginsConfig>
<export>
<formats>XLS</formats>
<formats>CSV</formats>
<formats>PDF</formats>
</export>
<tocdomains>
<domain id="domain1" description="First Domain" >
<category>cat_admin</category>
<category>cat_admin_is_not_displayed_without_this_cat</category>
</domain>
<domain id="domain2" description="Second Domain" state="open">
<category>cat_osm</category>
<category>cat_osm_is_not_displayed_without_this_cat</category>
</domain>
</tocdomains>
</pluginsConfig>
</ini>
<searchlist version="1.0">
<dataroot>$</dataroot>
<searchitem name="countries" description="Country">
<layer type="shape" name="countries">
<field type="s" name="ISO_A2" description="Country" wildcard="2">
<definition type="options" connectiontype="ms" sort="asc" firstoption="*">
<mslayer encoding="ISO-8859-1" keyfield="ISO_A2" showfield="NAME"/>
</definition>
</field>
</layer>
</searchitem>
</searchlist>
</pmapper>
pmapper_demo.map
Description: Binary data
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d
_______________________________________________ pmapper-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pmapper-users
