dony39517
2018-07-08 14:27
浏览 95
已采纳

webprofiler没有在干净的symfony4项目上工作

I've got a strange problem going on with 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." 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. 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?

图片转代码服务由CSDN问答提供 功能建议

我和Symfony有一个奇怪的问题。 今天我使用 composer create-project symfony / website-skeleton gall 命令创建了一个全新的项目,并且在安装之后,在执行任何代码之前我去了网站,这是webprofiler工具栏上唯一的说法 是“加载Web调试工具栏时出错”。 我甚至没有看到这是什么样的错误。
我正在运行的服务器是PHP v.7.2.3,程序是Xampp for Windows。 我想也许这个默认的起始页面被窃听 ,所以我做了一些测试控制器,错误完全一样。
您是否遇到过最新symfony的问题?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douhuang5331 2018-07-09 15:47
    已采纳

    I would never figure it out myself, but adding index.php to browser address resolved the issue.

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

    Thanks for pointing me in the right direction guys!

    已采纳该答案
    打赏 评论

相关推荐 更多相似问题