小编use*_*277的帖子

Symfony 2.4:加载Web调试工具栏时出错(404:Not Found)

我刚刚在Debian 7.3上下载了Symfony 2.4.1的新副本.

URL /Symfony/web/config.php正确打开,但是当我继续配置时,我得到:

The requested URL /Symfony/web/app_dev.php/_configurator/ was not found on this server.
Run Code Online (Sandbox Code Playgroud)

如果我绕过配置并打开页面显示/Symfony/web/app_dev.php,但会弹出一个错误说:

An error occurred while loading the web debug toolbar (404: Not Found)
Do you want to open the profiler?
Run Code Online (Sandbox Code Playgroud)

如果我接受,我得到:

The requested URL /Symfony/web/app_dev.php/_profiler/54a8bf was not found on this server.
Run Code Online (Sandbox Code Playgroud)

在其他问题中(例如,当试图打开/app_dev.php时,Symfony 2:404 Not Found Error)人们建议摆弄.htaccess文件.我甚至尝试删除它,但它没有效果.

apache日志文件显示:

File does not exist: /var/www/Symfony/web/app_dev.php/_wdt/54a8bf, referer: http://wwwtest.di.unipi.it/Symfony/web/app_dev.php
File does not exist: /var/www/Symfony/web/app_dev.php/_profiler/54a8bf
Run Code Online (Sandbox Code Playgroud)

所以看起来路由到任何内部URL失败,尽管事实上正确的路由似乎已经到位:

> app/console router:debug
[router] Current routes
 Name                      Method Scheme Host Path
 _wdt                      ANY …
Run Code Online (Sandbox Code Playgroud)

configuration routing symfony

6
推荐指数
1
解决办法
8270
查看次数

标签 统计

configuration ×1

routing ×1

symfony ×1