我正在尝试在现有项目中使用新的(Windows 8)笔记本电脑工作,该项目在我之前的(Mac OS X)计算机以及部署到的所有(Linux)服务器中都能正常工作。
我从git克隆,运行作曲家,app / console工作正常,我已正确设置配置文件,创建数据库并检查数据库架构是否正常,清除缓存等等,因为我已经之前做了一千次。
但是现在我收到了一个我以前从未遇到的错误,我不知道它是否与更新的依赖关系有关,这些依赖关系可能不一定使用与以前完全相同的版本,或者只是我自己在Windows环境中的新工作:
[1] RuntimeException: Failed to start the session because headers have already been sent by "" at line 0.
at n/a
in C:\Users\David\Sites\my-project\app\cache\dev\classes.php line 103
at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
in C:\Users\David\Sites\my-project\app\cache\dev\classes.php line 183
at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
in C:\Users\David\Sites\my-project\app\cache\dev\classes.php line 475
at Symfony\Component\HttpFoundation\Session\Session->has('_security.last_error')
in C:\Users\David\Sites\my-project\vendor\friendsofsymfony\user-bundle\FOS\UserBundle\Controller\SecurityController.php line 28
at FOS\UserBundle\Controller\SecurityController->loginAction(object(Request))
in line
at call_user_func_array(array(object(SecurityController), 'loginAction'), array(object(Request)))
in C:\Users\David\Sites\my-project\app\bootstrap.php.cache line 2841
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
in C:\Users\David\Sites\my-project\app\bootstrap.php.cache line 2815
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
in C:\Users\David\Sites\my-project\app\bootstrap.php.cache line 2944
at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
in C:\Users\David\Sites\my-project\app\bootstrap.php.cache line 2245
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
in C:\Users\David\Sites\my-project\web\app_dev.php line 29
答案 0 :(得分:0)
检查是否有任何自定义类覆盖HttpKernel中的类,例如Bundle
类没有从boot()