Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Building Websites with PHP Contact Form & Sending Email Named Routes

Jason Feliz
Jason Feliz
9,084 Points

Fatal error: Uncaught Error: Class 'Twig_SimpleFunction' not found... Please help!!!

Fatal error: Uncaught Error: Class 'Twig_SimpleFunction' not found in /home/treehouse/workspace/vendor/slim/views/Slim/Views/TwigExtension.php:47 Stack trace: #0 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/Environment.php(961): Slim\Views\TwigExtension->getFunctions() #1 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/ExpressionParser.php(471): Twig_Environment->getFunctions() #2 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/ExpressionParser.php(323): Twig_ExpressionParser->getFunctionNodeClass('baseUrl') #3 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/ExpressionParser.php(138): Twig_ExpressionParser->getFunctionNode('baseUrl', 29) #4 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/ExpressionParser.php(85): Twig_ExpressionParser->parsePrimaryExpression() #5 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/ExpressionParser.php(42): Twig_ExpressionParser->getPrimary() #6 /home/treehouse/workspace/vendor/twig/twig/lib/Twig/Parser.php(140): Twig_ExpressionParser->parseExpression() #7 /home/tree in /home/treehouse/workspace/vendor/slim/views/Slim/Views/TwigExtension.php on line 47

How do I fix this?