2014-10-12 38 views
0

完成錯誤消息的URL是:無法生成用於指定路線「sonata_admin_dashboard」爲這樣的路由不存在

[2014年10月12日8點07分45秒] request.CRITICAL:未捕獲的PHP異常Twig_Error_Runtime :「在第104行的」SonataAdminBundle :: standard_layout.html.twig「中呈現模板期間拋出異常(」無法爲指定路由生成URL「sonata_admin_dashboard」,因爲此類路由不存在。「) 「。 at /Volumes/Sviluppo/web/sensorario/magna/app/cache/prod/classes.php 4483行{「exception」:「[object](Twig_Error_Runtime:在渲染模板期間拋出異常(\」Unable在第104行的\「SonataAdminBundle :: standard_layout.html.twig \」中爲這條路線不存在的命名路線\「sonata_admin_dashboard \」生成一個URL。\ at/Volumes/Sviluppo/web/sensorario/magna/app/cache/prod/classes.php:4483,Symfony \ Component \ Routing \ Exception \ RouteNotFoundException:無法爲指定的路由\「sonata_admin_dashboard \」生成一個URL,因爲這樣的路由不存在at/Volumes/Sviluppo /web/sensorario/magna/app/cache/prod/appProdUrlGenerator.php:38)「} []

我只在生產環境中出現此錯誤。在開發環境中一切正常。

而且,例如,路線

http://magna/admin/dashboard 

回報404,和尾-f應用/日誌/ prod.log說:

No route found for "GET /admin/dashboard" 

回答

1

你可能只進口了正確的路由下的文件

app/config/routing_dev.yml 

嘗試導入您的

0索納塔的路線
app/config/routing.yml 

以及。

+0

非常感謝! – sensorario 2014-10-12 14:22:53

相關問題