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


嗨,我

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

加载 Web 调试工具栏时出错(404:未找到( 是否要打开探查器?

截图

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


我尝试了 != 解决方案,如命令 php bin/console debug:event-dispatcher 和 .htacces like

<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>

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

当我查看 config_dev.yml 时,我发现了 folow 代码:

web_profiler:
    toolbar: true
    intercept_redirects: false

我将工具栏值设置为 false,它像

web_profiler:
    toolbar: false
    intercept_redirects: false

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

最新更新