Fatal error: Class 'Twig\NodeVisitor\AbstractNodeVisitor' not found in /var/www/webapp/vendor/symfony/symfony/src/Symfony/Bridge/Twig/NodeVisitor/TranslationNodeVisitor.php on line 26

Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "AbstractNodeVisitor" from namespace "Twig\NodeVisitor". Did you forget a "use" statement for "Twig\NodeVisitor\AbstractNodeVisitor"? in /var/www/webapp/vendor/symfony/symfony/src/Symfony/Bridge/Twig/NodeVisitor/TranslationNodeVisitor.php:26 Stack trace: #0 {main} Next Twig_Error_Syntax: Unknown "path" function. Did you mean "logout_path"? in /var/www/webapp/app/Resources/TwigBundle/views/Exception/error500.html.twig:12 Stack trace: #0 /var/www/webapp/vendor/twig/twig/lib/Twig/ExpressionParser.php(364): Twig_ExpressionParser->getFunctionNodeClass('path', 12) #1 /var/www/webapp/vendor/twig/twig/lib/Twig/ExpressionParser.php(152): Twig_ExpressionParser->getFunctionNode('path', 12) #2 /var/www/webapp/vendor/twig/twig/lib/Twig/ExpressionParser.php(92): Twig_ExpressionParser->parsePrimaryExpression() #3 /var/www/webapp/vendor/twig/twig/lib/Twig/ExpressionParser.php(45): Twig_ExpressionParser->getPrimary() #4 /var/www/webapp in /var/www/webapp/app/Resources/TwigBundle/views/Exception/error500.html.twig on line 12