我试图打开时收到此错误消息
/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)
当我点击确定时,我收到错误:
app_dev.php/_profiler/5053258a822e1
Run Code Online (Sandbox Code Playgroud)
和
404 Not found
Run Code Online (Sandbox Code Playgroud)
我正在使用nginx
非常感谢您的帮助.
编辑:这是错误日志:
[error] 18369#0: *9 open() "/var/www/Symfony/web/app_dev.php/_wdt/5056f875afc98" failed (20: Not a directory), client: 127.0.0.1, server: symfony, request: "GET /app_dev.php/_wdt/5056f875afc98 HTTP/1.1", host: "symfony", referrer: "http://symfony/app_dev.php"
[error] 18369#0: *9 open() "/var/www/Symfony/web/404" failed (2: No such file or directory), client: 127.0.0.1, server: symfony, request: "GET /app_dev.php/_wdt/5056f875afc98 HTTP/1.1", host: "symfony", referrer: "http://symfony/app_dev.php"
Run Code Online (Sandbox Code Playgroud)
编辑2:
当我尝试访问app_dev.php页面打开但没有工具栏时,当我尝试使用app_dev.php /我得到了
**Oops! …Run Code Online (Sandbox Code Playgroud) 自从更新到symfony 2.2以来,app_dev.php中不再加载Web调试工具栏.
我收到以下错误:
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)
在prod.log中,我得到以下内容:
request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /_profiler/84fb75cc3ffd5435474ebe4250e01fac2cdf49c1"" at /httpdocs/project/app/cache/prod/classes.php line 3597 [] []
request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /_wdt/452d5b4aa2dd9388285fa1c286d5c54218029c71"" at /httpdocs/priject/app/cache/prod/classes.php line 3597 [] []
Run Code Online (Sandbox Code Playgroud)
我已多次清除缓存:)
有趣的是,在/app_dev.php中,页面上的所有链接都不再链接到/app_dev.php.
包括配置文件(/ _profiler/5fdc27cb82c4e9e426b3ab27377deb0b760fdca2),当我手动修改网址,并将app_dev.php添加到网址时,探查器正确加载.
routing_dev.yml:
_assetic:
resource: .
type: assetic
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
_configurator:
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml" …Run Code Online (Sandbox Code Playgroud)