加载Web调试工具栏时出错(404:未找到)?

时间:2017-11-16 18:44:51

标签: php apache .htaccess symfony swiftmailer

您好我正在使用Symfony(Swiftmailer)发送电子邮件,我遇到的问题是:

  

加载Web调试工具栏时发生错误(404:未找到)   你想打开探查器吗?

Screenshot

电子邮件已成功发送,但问题是我无法呈现任何* .html.twig。

我试过了!=解决方案就像命令php bin / console debug:event-dispatcher和.htacces之类的

<IfModule mod_rewrite.c>    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /app.php [L]
</IfModule>
<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        # When mod_rewrite is not available, we instruct a temporary redirect of
        # the start page to the front controller explicitly so that the website
        # and the generated links can still be used.
        RedirectMatch 302 ^/$ /app.php/
        # RedirectTemp cannot be used instead
    </IfModule>
</IfModule>

但网上提出的所有解决方案对我都不起作用,谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

当我查看config_dev.yml时,我找到了以下代码:

web_profiler:
    toolbar: true
    intercept_redirects: false

我将工具栏值变为false,它正常工作,如

web_profiler:
    toolbar: false
    intercept_redirects: false

此解决方案是否触及其他文件并导致其他问题?