[Mapbender-users] issues uploading a WMS Service-URL (XML document cannot be parsed)

de Lima Guimaraes, Danilo Danilo.deLima at pulheim.de
Fri Oct 7 06:04:55 PDT 2022


Hello Jörg,

[UPDATE]

After editing the Proxy configuration in parameters.yml Mapbender was able to load external and also internal WMS-Services. 

Unfortunatly this doesn't occur to all kind of WMS-Services!
This WMS works: https://www.wms.nrw.de/geobasis/wms_nw_dop
But this on not: https://geodata.o-sp.de/service/pulheim.cgi

Dev.log shows these logs on logs-level notice (250):

[2022-10-07 14:20:59] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /application/manager/assets/underscore-min.map"" at C:\mapbender\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\EventListener\RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /application/manager/assets/underscore-min.map\" at C:\\mapbender\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\HttpKernel\\EventListener\\RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/application/manager/assets/underscore-min.map/\". at C:\\mapbender\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherTrait.php:70)"}

[2022-10-07 14:21:09] php.CRITICAL: Uncaught Error: DOMDocument::loadXML(): Argument #1 ($source) must not be empty {"exception":"[object] (ValueError(code: 0): DOMDocument::loadXML(): Argument #1 ($source) must not be empty at C:\\mapbender\\mapbender\\src\\Mapbender\\WmsBundle\\Component\\WmsCapabilitiesParser.php:100)"} 

[2022-10-07 14:21:09] request.CRITICAL: Uncaught PHP Exception ValueError: "DOMDocument::loadXML(): Argument #1 ($source) must not be empty" at C:\mapbender\mapbender\src\Mapbender\WmsBundle\Component\WmsCapabilitiesParser.php line 100 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): DOMDocument::loadXML(): Argument #1 ($source) must not be empty at C:\\mapbender\\mapbender\\src\\Mapbender\\WmsBundle\\Component\\WmsCapabilitiesParser.php:100)"}


I assume my problem is a wrong configuration of "ows_proxy3_noproxy". What is your opinion to this?

When I try to load the WMS Command Prompt (php app/console mapbender:wms:add https://geodata.o-sp.de/service/pulheim.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities) I get this answer: 
>>>In WmsCapabilitiesParser.php line 100: DOMDocument::loadXML(): Argument #1 ($source) must not be empty
>>>mapbender:wms:add [--user USER] [--password PASSWORD] [--validate] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> <serviceUrl>
>>>Der Befehl "VERSION" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
>>>Der Befehl "REQUEST" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

Does it mean that PHP doesn't recognise commands Version and Request?  

PS.:  have the same instalation of PHP, Apache and Mapbender with the same php.ini, httpd.config, parameters.yml (except proxy part) and config.yml files in my private computer and it works.

Kind regards
Danilo

-----Ursprüngliche Nachricht-----
Von: Mapbender_users <mailto:mapbender_users-bounces at lists.osgeo.org> Im Auftrag von Jörg Thomsen (WhereGroup)
Gesendet: Dienstag, 19. Juli 2022 09:43
An: mailto:mapbender_users at lists.osgeo.org
Betreff: Re: [Mapbender-users] issues uploading a WMS Service-URL (XML document cannot be parsed)

Am 19.07.22 um 09:17 schrieb de Lima Guimaraes, Danilo:
> Hello Jörg,
> 
> thanks for the fast answer. Unfortunately there are no logs in the logfile.

you might try app_dev.php

https://urldefense.com/v3/__https://doc.mapbender.org/en/installation/installation_configuration.html*production-and-development-environment-and-caching-app-php-and-app-dev-php__;Iw!!AET-MAtkkZz4ZWY!O423SeyVkstTooRMEBMZUbLUr6g4_gYRzP2_KPbn0h4ljEjXfy5qUuWAhzg7hd29C74BxpkzVnJcUmrlplumK2TMlI7j8Hbb$ 

or at first ask your admin, whether the server is allowed to reach other servers in the internet.

jörg

> 
> Danilo
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Mapbender_users <mailto:mapbender_users-bounces at lists.osgeo.org> Im 
> Auftrag von Jörg Thomsen (WhereGroup)
> Gesendet: Montag, 18. Juli 2022 14:21
> An: mailto:mapbender_users at lists.osgeo.org
> Betreff: Re: [Mapbender-users] issues uploading a WMS Service-URL (XML 
> document cannot be parsed)
> 
> Hello Danilo,
> 
> I guess your Mb-server is not allowed to connect to the wms-server. It is the server, not the client-pc which has to parse the xml.
> 
> Perhaps there are some more hints in mapbenders logfile?
> 
> Jörg
> 
> Am 18.07.22 um 13:41 schrieb de Lima Guimaraes, Danilo:
>> Hello Mapbender-Community,
>>
>> I’m having issues uploading a WMS Service-URL at the “sources”-Tab on 
>> Mapbender where it gives me a fail massage with the feedback that the 
>> XML document cannot be parsed (“Das XML Dokument kann nicht geparst 
>> warden”).
>>
>> This Mapbender 3.3.1 (new) installation was made from MS4W version
>> 4.0.5 which contains Apache 2.4.46 and PHP 7.4.13. I made the same 
>> installation on my private computer and it worked.
>>
>> Does anybody else already had this issue? Has anybody any idea, what 
>> could have gone wrong by the installation / configuration?
>>
>> Best Regards,
>>
>> Danilo
>>
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> mailto:Mapbender_users at lists.osgeo.org
>> https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/
>> m
>> apbender_users__;!!AET-MAtkkZz4ZWY!P4HTRWNFduKmprC9EWMqVtI9du5p-9slyi
>> 0 fbuYfwvDKdaAkHJyuPzI9f9NF2jadNM1qIZqN_NxREzcgCI4Vs0zd4oqMklpJ$
> 
> 
> --
> Viele Grüße,
> Jörg Thomsen
> 
> ---------------------------------------------
> Aufwind durch Wissen!
> Jetzt neu: Web-Seminare und Online-Schulungen bei der 
> https://urldefense.com/v3/__http://www.foss-academy.com__;!!AET-MAtkkZ
> z4ZWY!P4HTRWNFduKmprC9EWMqVtI9du5p-9slyi0fbuYfwvDKdaAkHJyuPzI9f9NF2jad
> NM1qIZqN_NxREzcgCI4Vs0zd4po6sQ5y$
> ---------------------------------------------
> 
> Jörg Thomsen
> WhereGroup GmbH
> Bundesallee 23
> 10717 Berlin
> Germany
> 
> Tel: +49 (0)30 / 5130 278 74
> Fax: +49 (0)30 / 5130 278 11	
> 
> mailto:joerg.thomsen at wheregroup.com
> https://urldefense.com/v3/__http://www.wheregroup.com__;!!AET-MAtkkZz4
> ZWY!P4HTRWNFduKmprC9EWMqVtI9du5p-9slyi0fbuYfwvDKdaAkHJyuPzI9f9NF2jadNM
> 1qIZqN_NxREzcgCI4Vs0zd4nKPsBPu$
> 
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> 
> -------------------------------
> Folgen Sie der WhereGroup auf twitter: 
> https://urldefense.com/v3/__http://twitter.com/WhereGroup_com__;!!AET-
> MAtkkZz4ZWY!P4HTRWNFduKmprC9EWMqVtI9du5p-9slyi0fbuYfwvDKdaAkHJyuPzI9f9
> NF2jadNM1qIZqN_NxREzcgCI4Vs0zd4rTmAQad$
> _______________________________________________
> Mapbender_users mailing list
> mailto:Mapbender_users at lists.osgeo.org
> https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/m
> apbender_users__;!!AET-MAtkkZz4ZWY!P4HTRWNFduKmprC9EWMqVtI9du5p-9slyi0
> fbuYfwvDKdaAkHJyuPzI9f9NF2jadNM1qIZqN_NxREzcgCI4Vs0zd4oqMklpJ$
> _______________________________________________
> Mapbender_users mailing list
> mailto:Mapbender_users at lists.osgeo.org
> https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/m
> apbender_users__;!!AET-MAtkkZz4ZWY!O423SeyVkstTooRMEBMZUbLUr6g4_gYRzP2
> _KPbn0h4ljEjXfy5qUuWAhzg7hd29C74BxpkzVnJcUmrlplumK2TMlJMeijvO$


--
Viele Grüße,
Jörg Thomsen

---------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Web-Seminare und Online-Schulungen bei der https://urldefense.com/v3/__http://www.foss-academy.com__;!!AET-MAtkkZz4ZWY!O423SeyVkstTooRMEBMZUbLUr6g4_gYRzP2_KPbn0h4ljEjXfy5qUuWAhzg7hd29C74BxpkzVnJcUmrlplumK2TMlKa3D7DO$
---------------------------------------------

Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Tel: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11	

mailto:joerg.thomsen at wheregroup.com
https://urldefense.com/v3/__http://www.wheregroup.com__;!!AET-MAtkkZz4ZWY!O423SeyVkstTooRMEBMZUbLUr6g4_gYRzP2_KPbn0h4ljEjXfy5qUuWAhzg7hd29C74BxpkzVnJcUmrlplumK2TMlPp7i4gu$ 

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

-------------------------------
Folgen Sie der WhereGroup auf twitter: https://urldefense.com/v3/__http://twitter.com/WhereGroup_com__;!!AET-MAtkkZz4ZWY!O423SeyVkstTooRMEBMZUbLUr6g4_gYRzP2_KPbn0h4ljEjXfy5qUuWAhzg7hd29C74BxpkzVnJcUmrlplumK2TMlGuwtCT0$
_______________________________________________
Mapbender_users mailing list
mailto:Mapbender_users at lists.osgeo.org
https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/mapbender_users__;!!AET-MAtkkZz4ZWY!O423SeyVkstTooRMEBMZUbLUr6g4_gYRzP2_KPbn0h4ljEjXfy5qUuWAhzg7hd29C74BxpkzVnJcUmrlplumK2TMlJMeijvO$ 


More information about the Mapbender_users mailing list