Thread: [pmapper-users] [errors] pmhighlight et al.
Brought to you by:
arminburger
From: Raffaele M. <raf...@gm...> - 2014-11-18 11:24:56
|
Got this errors in inspector on fresh installation from svn PM.config default js_session.php:148 Uncaught TypeError: Cannot read property 'hasOwnProperty' of null PM.Control.PMToc.js:500(anonymous function) PM.Control.PMToc.js:500o.extend.each jquery-2.1.0.min.js:2OpenLayers.Control.PMToc.OpenLayers.Class.updateToScale PM.Control.PMToc.js:490OpenLayers.Events.OpenLayers.Class.triggerEvent OpenLayers.js:135OpenLayers.Map.OpenLayers.Class.moveTo OpenLayers.js:200OpenLayers.Map.OpenLayers.Class.setCenter OpenLayers.js:193OpenLayers.Map.OpenLayers.Class.updateSize OpenLayers.js:189$.extend.updateMapSize pm.map.js:88(anonymous function) VM1981:1 Resource interpreted as Image but transferred with MIME type image/: "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163096403". (index):1 Resource interpreted as Image but transferred with MIME type image/: "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163096406". Any idea? -- « Nunc est bibendum, nunc pede libero pulsanda tellus » |
From: Armin B. <arm...@gm...> - 2014-11-18 12:25:45
|
I would just roughly guess you have a definition of a group in the XML file under <categories> that is then not defined under <olThemes>. You could try to use the console logging in PM.Control.PMToc.js wher line 500 seems to give this error. Uncomment the line 497 and change it to console.log(grpName, grp); and see for which group name it returns a null object for grp. The error might also be related to a PHP error that occurred before, but in this case it's less likely. The various definitions in the XML need still a bit more of consistency checks to make the configuration a more robust against wrong or incomplete definitions. On Tue, Nov 18, 2014 at 12:24 PM, Raffaele Morelli <raf...@gm...> wrote: > Got this errors in inspector on fresh installation from svn > > > PM.config default js_session.php:148 > Uncaught TypeError: Cannot read property 'hasOwnProperty' of null > PM.Control.PMToc.js:500(anonymous function) PM.Control.PMToc.js:500o.extend.each > jquery-2.1.0.min.js:2OpenLayers.Control.PMToc.OpenLayers.Class.updateToScale > PM.Control.PMToc.js:490OpenLayers.Events.OpenLayers.Class.triggerEvent > OpenLayers.js:135OpenLayers.Map.OpenLayers.Class.moveTo > OpenLayers.js:200OpenLayers.Map.OpenLayers.Class.setCenter > OpenLayers.js:193OpenLayers.Map.OpenLayers.Class.updateSize > OpenLayers.js:189$.extend.updateMapSize pm.map.js:88(anonymous function) > VM1981:1 > Resource interpreted as Image but transferred with MIME type image/: > "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163096403". > (index):1 > Resource interpreted as Image but transferred with MIME type image/: > "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163096406". > > > Any idea? > > -- > « Nunc est bibendum, nunc pede libero pulsanda tellus » > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users |
From: Raffaele M. <raf...@gm...> - 2014-11-18 12:55:53
|
On 18/11/14 at 01:25pm, Armin Burger wrote: > I would just roughly guess you have a definition of a group in the XML > file under <categories> that is then not defined under <olThemes>. > You could try to use the console logging in PM.Control.PMToc.js wher > line 500 seems to give this error. > Uncomment the line 497 and change it to > console.log(grpName, grp); > and see for which group name it returns a null object for grp. "solved", I commented the raster layer in the mapfile buf forgot to comment out the xml. BTW this still occurs PM.config default js_session.php:148 Resource interpreted as Image but transferred with MIME type image/: "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163151369". (index):1 Resource interpreted as Image but transferred with MIME type image/: "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163151378". -- « Nunc est bibendum, nunc pede libero pulsanda tellus » |
From: Armin B. <arm...@gm...> - 2014-11-18 17:45:04
|
Raffaele thanks already for extending the wiki. I will try to add a few changes towards p.mapper 4 config that I still remember. On 11/18/2014 01:55 PM, Raffaele Morelli wrote: > On 18/11/14 at 01:25pm, Armin Burger wrote: >> I would just roughly guess you have a definition of a group in the XML >> file under <categories> that is then not defined under <olThemes>. >> You could try to use the console logging in PM.Control.PMToc.js wher >> line 500 seems to give this error. >> Uncomment the line 497 and change it to >> console.log(grpName, grp); >> and see for which group name it returns a null object for grp. > > "solved", I commented the raster layer in the mapfile buf forgot to comment out > the xml. as I said, a few more checks are needed to catch errors. I will have a look these days. > BTW this still occurs > > PM.config default js_session.php:148 > Resource interpreted as Image but transferred with MIME type image/: > "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163151369". > (index):1 > Resource interpreted as Image but transferred with MIME type image/: > "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163151378". > should now be fixed, see http://svn.pmapper.net/trac/changeset/1361 |
From: Raffaele M. <raf...@gm...> - 2014-11-19 06:52:30
|
On 18/11/14 at 06:44pm, Armin Burger wrote: > Raffaele > > thanks already for extending the wiki. I will try to add a few changes > towards p.mapper 4 config that I still remember. Working on DocManuallayoutFive today ;-) > > On 11/18/2014 01:55 PM, Raffaele Morelli wrote: > > On 18/11/14 at 01:25pm, Armin Burger wrote: > >> I would just roughly guess you have a definition of a group in the XML > >> file under <categories> that is then not defined under <olThemes>. > >> You could try to use the console logging in PM.Control.PMToc.js wher > >> line 500 seems to give this error. > >> Uncomment the line 497 and change it to > >> console.log(grpName, grp); > >> and see for which group name it returns a null object for grp. > > > > "solved", I commented the raster layer in the mapfile buf forgot to comment out > > the xml. > > as I said, a few more checks are needed to catch errors. I will have a > look these days. I would like to dig in the code and hopefully do something on the commit side. > > > > BTW this still occurs > > > > PM.config default js_session.php:148 > > Resource interpreted as Image but transferred with MIME type image/: > > "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163151369". > > (index):1 > > Resource interpreted as Image but transferred with MIME type image/: > > "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163151378". > > > > should now be fixed, see > http://svn.pmapper.net/trac/changeset/1361 Yes, it's gone. -- « Nunc est bibendum, nunc pede libero pulsanda tellus » |