Symfony error 500 with app.php, works fine on app_dev.php

荒凉一梦 提交于 2019-12-05 13:35:52

The problem also can be caused by changing state of one variable into the web/app.php file from false to true.

Check linie:

$kernel = new AppKernel('prod', false);

and change to:

$kernel = new AppKernel('prod', true);

I had the same issue, but with setting true:

$kernel = new AppKernel('prod', true); 

I managed to get a readable error message. In my case there was a problem with an mysql-table.

I fixed it by removing a tab from my .yml config files and contacting the serveradmin to set the directoryroot to /web.

It might be a little late, but i got same error today, and what helped was clearing cache.

I ran into this issue today, and enabling debug mode through AppKernel still didn't show the error. Turned out I had enabled ApcClassLoader in app.php (just before AppKernel is initialized) but APC wasn't yet enabled on the new environment I deployed to. Commenting the APCClassLoader bit out again in app.php resolved the issue.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!