Skip to content

Instantly share code, notes, and snippets.

@ZermattChris
Created July 11, 2012 12:37
Show Gist options
  • Save ZermattChris/3090109 to your computer and use it in GitHub Desktop.
Save ZermattChris/3090109 to your computer and use it in GitHub Desktop.
InvalidArgumentException: Unable to load class "Twig_Environment"
InvalidArgumentException: Unable to load class "Twig_Environment"
1. in /home/chris/projects/OTP/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 251
2. at ClassCollectionLoader::getOrderedClasses(array('JMS\DiExtraBundle\HttpKernel\ControllerResolver', 'Monolog\Formatter\FormatterInterface', 'Monolog\Formatter\LineFormatter', 'Monolog\Handler\AbstractHandler', 'Monolog\Handler\AbstractProcessingHandler', 'Monolog\Handler\FingersCrossedHandler', 'Monolog\Handler\HandlerInterface', 'Monolog\Handler\StreamHandler', 'Monolog\Handler\TestHandler', 'Monolog\Logger', 'Symfony\Bridge\Monolog\Handler\DebugHandler', 'Symfony\Bridge\Monolog\Logger', 'Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser', 'Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver', 'Symfony\Bundle\FrameworkBundle\EventListener\SessionListener', 'Symfony\Bundle\FrameworkBundle\HttpKernel', 'Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher', 'Symfony\Bundle\FrameworkBundle\Routing\Router', 'Symfony\Bundle\FrameworkBundle\Templating\EngineInterface', 'Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables', 'Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator', 'Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser', 'Symfony\Bundle\FrameworkBundle\Templating\TemplateReference', 'Symfony\Bundle\SecurityBundle\Security\FirewallContext', 'Symfony\Bundle\SecurityBundle\Security\FirewallMap', 'Symfony\Component\Config\FileLocator', 'Symfony\Component\Config\FileLocatorInterface', 'Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher', 'Symfony\Component\EventDispatcher\Event', 'Symfony\Component\EventDispatcher\EventDispatcher', 'Symfony\Component\EventDispatcher\EventDispatcherInterface', 'Symfony\Component\EventDispatcher\EventSubscriberInterface', 'Symfony\Component\HttpFoundation\FileBag', 'Symfony\Component\HttpFoundation\HeaderBag', 'Symfony\Component\HttpFoundation\ParameterBag', 'Symfony\Component\HttpFoundation\Request', 'Symfony\Component\HttpFoundation\RequestMatcher', 'Symfony\Component\HttpFoundation\RequestMatcherInterface', 'Symfony\Component\HttpFoundation\Response', 'Symfony\Component\HttpFoundation\ResponseHeaderBag', 'Symfony\Component\HttpFoundation\ServerBag', 'Symfony\Component\HttpFoundation\Session\Session', 'Symfony\Component\HttpFoundation\Session\Storage\Handler\FileSessionHandler', 'Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage', 'Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy', 'Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy', 'Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface', 'Symfony\Component\HttpKernel\Config\FileLocator', 'Symfony\Component\HttpKernel\Controller\ControllerResolver', 'Symfony\Component\HttpKernel\Controller\ControllerResolverInterface', 'Symfony\Component\HttpKernel\EventListener\ResponseListener', 'Symfony\Component\HttpKernel\EventListener\RouterListener', 'Symfony\Component\HttpKernel\Event\FilterControllerEvent', 'Symfony\Component\HttpKernel\Event\FilterResponseEvent', 'Symfony\Component\HttpKernel\Event\GetResponseEvent', 'Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent', 'Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent', 'Symfony\Component\HttpKernel\Event\KernelEvent', 'Symfony\Component\HttpKernel\HttpKernel', 'Symfony\Component\HttpKernel\KernelEvents', 'Symfony\Component\Routing\Generator\UrlGenerator', 'Symfony\Component\Routing\Generator\UrlGeneratorInterface', 'Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface', 'Symfony\Component\Routing\Matcher\UrlMatcher', 'Symfony\Component\Routing\Matcher\UrlMatcherInterface', 'Symfony\Component\Routing\RequestContext', 'Symfony\Component\Routing\RequestContextAwareInterface', 'Symfony\Component\Routing\Router', 'Symfony\Component\Routing\RouterInterface', 'Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface', 'Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager', 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager', 'Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface', 'Symfony\Component\Security\Core\Authorization\Voter\VoterInterface', 'Symfony\Component\Security\Core\SecurityContext', 'Symfony\Component\Security\Core\SecurityContextInterface', 'Symfony\Component\Security\Core\User\UserProviderInterface', 'Symfony\Component\Security\Http\Firewall', 'Symfony\Component\Security\Http\FirewallMapInterface', 'Symfony\Component\Templating\EngineInterface', 'Symfony\Component\Templating\StreamingEngineInterface', 'Symfony\Component\Templating\TemplateNameParser', 'Symfony\Component\Templating\TemplateNameParserInterface', 'Symfony\Component\Templating\TemplateReference', 'Symfony\Component\Templating\TemplateReferenceInterface', 'Twig_Environment', 'Twig_Extension', 'Twig_ExtensionInterface', 'Twig_Extension_Core', 'Twig_Extension_Escaper', 'Twig_Extension_Optimizer', 'Twig_LoaderInterface', 'Twig_Markup', 'Twig_Template', 'Twig_TemplateInterface')) in /home/chris/projects/OTP/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 97
3. at ClassCollectionLoader::load(array('Symfony\Bundle\FrameworkBundle\EventListener\SessionListener', 'Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface', 'Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage', 'Symfony\Component\HttpFoundation\Session\Storage\Handler\FileSessionHandler', 'Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy', 'Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy', 'Symfony\Component\HttpFoundation\Session\Session', 'Symfony\Component\Routing\Matcher\UrlMatcherInterface', 'Symfony\Component\Routing\Generator\UrlGeneratorInterface', 'Symfony\Component\Routing\RouterInterface', 'Symfony\Component\Routing\Matcher\UrlMatcher', 'Symfony\Component\Routing\Generator\UrlGenerator', 'Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface', 'Symfony\Component\Routing\RequestContextAwareInterface', 'Symfony\Component\Routing\RequestContext', 'Symfony\Component\Routing\Router', 'Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher', 'Symfony\Bundle\FrameworkBundle\Routing\Router', 'Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables', 'Symfony\Bundle\FrameworkBundle\Templating\EngineInterface', 'Symfony\Component\Templating\StreamingEngineInterface', 'Symfony\Component\Templating\TemplateNameParserInterface', 'Symfony\Component\Templating\TemplateNameParser', 'Symfony\Component\Templating\EngineInterface', 'Symfony\Component\Config\FileLocatorInterface', 'Symfony\Component\Templating\TemplateReferenceInterface', 'Symfony\Component\Templating\TemplateReference', 'Symfony\Bundle\FrameworkBundle\Templating\TemplateReference', 'Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser', 'Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator', 'Symfony\Component\HttpFoundation\ParameterBag', 'Symfony\Component\HttpFoundation\HeaderBag', 'Symfony\Component\HttpFoundation\FileBag', 'Symfony\Component\HttpFoundation\ServerBag', 'Symfony\Component\HttpFoundation\Request', 'Symfony\Component\HttpFoundation\Response', 'Symfony\Component\HttpFoundation\ResponseHeaderBag', 'Symfony\Component\Config\FileLocator', 'Symfony\Component\EventDispatcher\EventDispatcherInterface', 'Symfony\Component\EventDispatcher\EventDispatcher', 'Symfony\Component\EventDispatcher\Event', 'Symfony\Component\EventDispatcher\EventSubscriberInterface', 'Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher', 'Symfony\Component\HttpKernel\HttpKernel', 'Symfony\Component\HttpKernel\EventListener\ResponseListener', 'Symfony\Component\HttpKernel\EventListener\RouterListener', 'Symfony\Component\HttpKernel\Controller\ControllerResolver', 'Symfony\Component\HttpKernel\Controller\ControllerResolverInterface', 'Symfony\Component\HttpKernel\Event\KernelEvent', 'Symfony\Component\HttpKernel\Event\FilterControllerEvent', 'Symfony\Component\HttpKernel\Event\FilterResponseEvent', 'Symfony\Component\HttpKernel\Event\GetResponseEvent', 'Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent', 'Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent', 'Symfony\Component\HttpKernel\KernelEvents', 'Symfony\Component\HttpKernel\Config\FileLocator', 'Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser', 'Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver', 'Symfony\Bundle\FrameworkBundle\HttpKernel', 'Symfony\Component\Security\Http\Firewall', 'Symfony\Component\Security\Http\FirewallMapInterface', 'Symfony\Component\Security\Core\SecurityContext', 'Symfony\Component\Security\Core\SecurityContextInterface', 'Symfony\Component\Security\Core\User\UserProviderInterface', 'Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager', 'Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface', 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager', 'Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface', 'Symfony\Component\Security\Core\Authorization\Voter\VoterInterface', 'Symfony\Bundle\SecurityBundle\Security\FirewallMap', 'Symfony\Bundle\SecurityBundle\Security\FirewallContext', 'Symfony\Component\HttpFoundation\RequestMatcher', 'Symfony\Component\HttpFoundation\RequestMatcherInterface', 'Twig_Environment', 'Twig_ExtensionInterface', 'Twig_Extension', 'Twig_Extension_Core', 'Twig_Extension_Escaper', 'Twig_Extension_Optimizer', 'Twig_LoaderInterface', 'Twig_Markup', 'Twig_TemplateInterface', 'Twig_Template', 'Monolog\Formatter\FormatterInterface', 'Monolog\Formatter\LineFormatter', 'Monolog\Handler\HandlerInterface', 'Monolog\Handler\AbstractHandler', 'Monolog\Handler\AbstractProcessingHandler', 'Monolog\Handler\StreamHandler', 'Monolog\Handler\FingersCrossedHandler', 'Monolog\Handler\TestHandler', 'Monolog\Logger', 'Symfony\Bridge\Monolog\Logger', 'Symfony\Bridge\Monolog\Handler\DebugHandler', 'JMS\DiExtraBundle\HttpKernel\ControllerResolver'), '/home/chris/projects/OTP/app/cache/dev', 'classes', true, false, '.php') in /home/chris/projects/OTP/app/bootstrap.php.cache line 749
4. at Kernel->loadClassCache() in /home/chris/projects/OTP/public_html/app_dev.php line 27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment