【发布时间】:2016-02-24 11:17:17
【问题描述】:
我正在开发一个 Symfony 应用程序 (Mapbender3),并且是这个框架的新手(因为我是 Codeigniter 人)。该应用程序应该使用 ajax 请求加载视图页面,但它没有。我检查了控制台,它说:
Failed to load resource: http://localhost/mapbender3/web/app.php/owsproxy/?url=http%3A%2F%2Flocalhost%2Fmapbender3%2Fweb%2Fapp.php%2Fapplication%2Fmopwmaps%2Finstance%2F9%2Ftunnel&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=cite%3ARoad_Master&SRS=EPSG%3A4326&BBOX=62.69026197435,31.478060912429,70.30973802565,35.521939087571&WIDTH=2400&HEIGHT=1273
the server responded with a status of 500 (Internal Server Error)
还有一个错误:
GET http://localhost/mapbender3/web/app.php/owsproxy/?url=http%3A%2F%2Flocalhos…60912429%2C67.942541429504%2C35.521939087571%26WIDTH%3D908%26HEIGHT%3D1273 500 (Internal Server Error)
jquery.js:9659
我跟踪了 jquery.js 文件中的错误,它是:
xhr.send( ( options.hasContent && options.data ) || null );
此外,logs/prod.log 声明:
[2015-11-22 07:54:42] request.CRITICAL: Uncaught PHP Exception Exception: "No URL signature provided" at C:\wamp\www\mapbender3\owsproxy\src\OwsProxy3\CoreBundle\Controller\OwsProxyController.php line 95 {"exception":"[object] (Exception(code: 500): No URL signature provided at C:\\wamp\\www\\mapbender3\\owsproxy\\src\\OwsProxy3\\CoreBundle\\Controller\\OwsProxyController.php:95)"} []
[2015-11-22 07:54:42] security.DEBUG: Write SecurityContext in the session [] []
请告诉我如何解决这个问题。
【问题讨论】:
标签: php symfony mapbender3