简体   繁体   English

webprofiler无法在干净的symfony4项目上工作

[英]webprofiler not working on clean symfony4 project

I've got a strange problem going on with Symfony. Symfony发生了一个奇怪的问题。 Today I made brand new project using composer create-project symfony/website-skeleton gall command and right after installation, before doing anything in code I go to the website and the only thing that is said on webprofiler toolbar is "An error occurred while loading the web debug toolbar." 今天,我在安装后立即使用composer create-project symfony/website-skeleton gall命令composer create-project symfony/website-skeleton gall新项目,在执行代码中的任何操作之前,我先进入网站,并且在webprofiler工具栏上唯一说的是“加载时发生错误Web调试工具栏。” I don't even get to see what kind of error is this. 我什至看不到这是什么错误。
The server I'm running is PHP v. 7.2.3, program is Xampp for Windows. 我正在运行的服务器是PHP v.2.3.3,程序是Windows的Xampp。 I thought maybe this default starting page is bugged, so I made some test controller and the error is exactly the same. 我以为这个默认起始页面可能有问题,所以我做了一些测试控制器,错误完全一样。
Have you encountered such problem with latest symfony? 您最近的symfony遇到过这样的问题吗?

I would never figure it out myself, but adding index.php to browser address resolved the issue. 我自己也不会弄清楚,但是将index.php添加到浏览器地址可以解决此问题。

Much better solution is to use command 更好的解决方案是使用命令

composer require symfony/apache-pack

As the .htaccess file is not included in the website-skeleton by default :) 由于.htaccess文件默认不包含在网站骨架中:)

Thanks for pointing me in the right direction guys! 感谢您为我指出正确的方向!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM