将我的网络迁移到在线服务器后,我几乎在每条路线上都收到 500 错误。我在 xampp 下开发我的网站没有问题(网站在 dev 和 prod 上工作)
我将该站点放在指向我项目的 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',
));
提前致谢!