我从Symfony 3升级到3.4.2。我在页面包上得到了这个错误:
无法加载" Symfony \ Bridge \ Twig \ Form \ TwigRenderer"运行
我尝试将树枝束升级到最新版本(在编写此行时)v2.4.4但是徒劳无功。 请帮助。
这是错误堆栈跟踪:
Twig_Error_Runtime:
Unable to load the "Symfony\Bridge\Twig\Form\TwigRenderer" runtime.
at vendor/twig/twig/lib/Twig/Environment.php:663
at Twig_Environment->getRuntime('Symfony\\Bridge\\Twig\\Form\\TwigRenderer')
(vendor/sonata-project/page-bundle/src/Controller/PageAdminController.php:104)
at Sonata\PageBundle\Controller\PageAdminController->treeAction(object(Request))
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:28)
答案 0 :(得分:0)
通过将奏鸣曲页面包升级到3.7.1
来修复此错误