Im Debug Modus erhalte ich:
Code:
ErrorException:
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found
at vendor/chrmue/cm_maps/classes/API_interface.php:53
at ChrMue\cm_Maps\API_adapter->processRequest()
(vendor/chrmue/cm_maps/classes/Api_OSM.php:66)
at ChrMue\cm_Maps\Api_OSM->validateResponse()
(vendor/chrmue/cm_maps/classes/cm_Map_lib.php:436)
at ChrMue\cm_Maps\cm_Map_lib::getGoogleMapsGeoData(array('postalCode' => '28355', 'city' => 'Bremen', 'street' => 'Lindenweg+2', 'country' => 'de'), true, 'de', 'OSM', null)
(vendor/chrmue/cm_maps/classes/Helper.php:107)
at ChrMue\cm_Maps\Helper->getGeoData('6', object(Result), '', array('street' => 'street', 'postal' => 'postal', 'city' => 'city', 'country' => 'country'), 'OSM', null)
(vendor/chrmue/cm_maps/classes/Helper.php:185)
at ChrMue\cm_Maps\Helper->doGeoRouting(object(DC_Table))
(vendor/chrmue/cm_maps/classes/Helper.php:196)
at ChrMue\cm_Maps\Helper->geoRouting(object(DC_Table))
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:426)
at Contao\Backend->getBackendModule('member', null)
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:161)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:50)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/http-kernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:198)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/index.php:31)
und
Code:
Exception:
String could not be parsed as XML
at vendor/chrmue/cm_maps/classes/API_interface.php:53
at SimpleXMLElement->__construct('The AppKey submitted with this request is invalid.')
(vendor/chrmue/cm_maps/classes/API_interface.php:53)
at ChrMue\cm_Maps\API_adapter->processRequest()
(vendor/chrmue/cm_maps/classes/Api_OSM.php:66)
at ChrMue\cm_Maps\Api_OSM->validateResponse()
(vendor/chrmue/cm_maps/classes/cm_Map_lib.php:436)
at ChrMue\cm_Maps\cm_Map_lib::getGoogleMapsGeoData(array('postalCode' => '28355', 'city' => 'Bremen', 'street' => 'Lindenweg+2', 'country' => 'de'), true, 'de', 'OSM', null)
(vendor/chrmue/cm_maps/classes/Helper.php:107)
at ChrMue\cm_Maps\Helper->getGeoData('6', object(Result), '', array('street' => 'street', 'postal' => 'postal', 'city' => 'city', 'country' => 'country'), 'OSM', null)
(vendor/chrmue/cm_maps/classes/Helper.php:185)
at ChrMue\cm_Maps\Helper->doGeoRouting(object(DC_Table))
(vendor/chrmue/cm_maps/classes/Helper.php:196)
at ChrMue\cm_Maps\Helper->geoRouting(object(DC_Table))
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:426)
at Contao\Backend->getBackendModule('member', null)
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:161)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:50)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/http-kernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:198)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/index.php:31)
Ich hatte für "Map Api/Gecocoding Api" die Auswahl "OpenStreetMap/Nominatim" gesetzt.
Daher verstehe ich "The AppKey submitted with this request is invalid" nicht - Was muss ich da eintragen?
Wieso benötige ich einen API Key ...