我在將我的網站遷移到在線服務器後幾乎在每條路線上都遇到500錯誤。 我在xampp下開發我的網站沒有問題(網站在dev和prod上工作)symfony2錯誤500遷移後
我將該網站放置在指向我的項目的Web文件夾的子域(http://escritorio.gruposcout45.org.uy)下。
這是我的錯誤日誌:
[2012-06-14 10:24:26] security.DEBUG: Read SecurityContext from the session [] []
[2012-06-14 10:24:26] security.DEBUG: Reloading user from user provider. [] []
[2012-06-14 10:24:26] security.DEBUG: Username "admin" was reloaded from user provider. [] []
[2012-06-14 10:24:26] request.INFO: Matched route "socio" (parameters: "_controller": "Caro\SociosBundle\Controller\SocioController::indexAction", "_route": "socio") [] []
[2012-06-14 10:24:26] request.CRITICAL: Twig_Error_Syntax: The function "knp_menu_render" does not exist in "::base.html.twig" (uncaught exception) at /home/neuronas/public_html/gruposcout45.org.uy/escritorio/vendor/twig/lib/Twig/Node/Expression/Function.php line 28 [] []
[2012-06-14 10:24:26] security.DEBUG: Write SecurityContext in the session [] []
我的自動加載磁帶機:
$loader->registerNamespaces(array(
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
'Sensio' => __DIR__.'/../vendor/bundles',
'JMS' => __DIR__.'/../vendor/bundles',
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
'Knp\\Component' => __DIR__.'/../vendor/knp-components/src',
'Knp\\Bundle' => __DIR__.'/../vendor/bundles',
'Knp\Menu' => __DIR__.'/../vendor/KnpMenu/src',
));
提前感謝!
路由從apps/config/routing.yml加載。你能發佈該文件的內容嗎? – MDrollette