# Error After Update To 1.1.1

**URL:** https://forum.mautic.org/t/error-after-update-to-1-1-1/1931
**Category:** Product Support
**Created:** [June 9, 2015, 3:34pm UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931 "2015-06-09T15:34:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [June 9, 2015, 3:34pm UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931/1 "2015-06-09T15:34:07Z")

</div>

Hello, after updating my system via

Code:

php /var/www/html/mautic2/app/console mautic:update:find -e prod php /var/www/html/mautic2/app/console mautic:update:apply -e prod

  
the system throws the following exception:  

Code:

InvalidArgumentException: Unable to load class "Twig\_Environment"

in /var/www/html/mautic2/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 259  
at ClassCollectionLoader::getOrderedClasses(array(‘DoctrineBundleDoctrineBundleRegistry’, ‘DoctrineCommonAnnotationsDocLexer’, ‘DoctrineCommonAnnotationsFileCacheReader’, ‘DoctrineCommonAnnotationsPhpParser’, ‘DoctrineCommonAnnotationsReader’, ‘DoctrineCommonLexer’, ‘DoctrineCommonPersistenceConnectionRegistry’, ‘DoctrineCommonPersistenceProxy’, ‘DoctrineCommonUtilClassUtils’, ‘MonologFormatterFormatterInterface’, ‘MonologFormatterLineFormatter’, ‘MonologHandlerAbstractHandler’, ‘MonologHandlerAbstractProcessingHandler’, ‘MonologHandlerFilterHandler’, ‘MonologHandlerFingersCrossedHandler’, ‘MonologHandlerFingersCrossedActivationStrategyInterface’, ‘MonologHandlerFingersCrossedErrorLevelActivationStrategy’, ‘MonologHandlerHandlerInterface’, ‘MonologHandlerStreamHandler’, ‘MonologHandlerTestHandler’, ‘MonologLogger’, ‘SensioBundleFrameworkExtraBundleConfigurationConfigurationAnnotation’, ‘SensioBundleFrameworkExtraBundleEventListenerControllerListener’, ‘SensioBundleFrameworkExtraBundleEventListenerHttpCacheListener’, ‘SensioBundleFrameworkExtraBundleEventListenerParamConverterListener’, ‘SensioBundleFrameworkExtraBundleEventListenerSecurityListener’, ‘SensioBundleFrameworkExtraBundleEventListenerTemplateListener’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterDateTimeParamConverter’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterDoctrineParamConverter’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterParamConverterInterface’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterParamConverterManager’, ‘SymfonyBridgeMonologHandlerDebugHandler’, ‘SymfonyBridgeMonologLogger’, ‘SymfonyBundleFrameworkBundleControllerControllerNameParser’, ‘SymfonyBundleFrameworkBundleControllerControllerResolver’, ‘SymfonyBundleFrameworkBundleEventListenerSessionListener’, ‘SymfonyBundleFrameworkBundleRoutingRedirectableUrlMatcher’, ‘SymfonyBundleFrameworkBundleRoutingRouter’, ‘SymfonyBundleFrameworkBundleTemplatingGlobalVariables’, ‘SymfonyBundleFrameworkBundleTemplatingLoaderFilesystemLoader’, ‘SymfonyBundleFrameworkBundleTemplatingLoaderTemplateLocator’, ‘SymfonyBundleFrameworkBundleTemplatingPhpEngine’, ‘SymfonyBundleFrameworkBundleTemplatingTemplateNameParser’, ‘SymfonyBundleFrameworkBundleTemplatingTemplateReference’, ‘SymfonyBundleSecurityBundleSecurityFirewallContext’, ‘SymfonyBundleSecurityBundleSecurityFirewallMap’, ‘SymfonyComponentConfigFileLocator’, ‘SymfonyComponentEventDispatcherContainerAwareEventDispatcher’, ‘SymfonyComponentEventDispatcherEvent’, ‘SymfonyComponentHttpFoundationRequestMatcher’, ‘SymfonyComponentHttpFoundationSessionSession’, ‘SymfonyComponentHttpFoundationSessionStorageHandlerNativeFileSessionHandler’, ‘SymfonyComponentHttpFoundationSessionStorageNativeSessionStorage’, ‘SymfonyComponentHttpFoundationSessionStoragePhpBridgeSessionStorage’, ‘SymfonyComponentHttpFoundationSessionStorageProxyAbstractProxy’, ‘SymfonyComponentHttpFoundationSessionStorageProxySessionHandlerProxy’, ‘SymfonyComponentHttpKernelConfigFileLocator’, ‘SymfonyComponentHttpKernelControllerControllerResolver’, ‘SymfonyComponentHttpKernelEventListenerResponseListener’, ‘SymfonyComponentHttpKernelEventListenerRouterListener’, ‘SymfonyComponentHttpKernelEventFilterControllerEvent’, ‘SymfonyComponentHttpKernelEventFilterResponseEvent’, ‘SymfonyComponentHttpKernelEventGetResponseEvent’, ‘SymfonyComponentHttpKernelEventGetResponseForControllerResultEvent’, ‘SymfonyComponentHttpKernelEventGetResponseForExceptionEvent’, ‘SymfonyComponentHttpKernelEventKernelEvent’, ‘SymfonyComponentHttpKernelKernelEvents’, ‘SymfonyComponentRoutingGeneratorUrlGenerator’, ‘SymfonyComponentRoutingRequestContext’, ‘SymfonyComponentRoutingRouter’, ‘SymfonyComponentSecurityCoreAuthenticationAuthenticationProviderManager’, ‘SymfonyComponentSecurityCoreAuthorizationAccessDecisionManager’, ‘SymfonyComponentSecurityCoreAuthorizationVoterVoterInterface’, ‘SymfonyComponentSecurityCoreSecurityContext’, ‘SymfonyComponentSecurityCoreUserUserProviderInterface’, ‘SymfonyComponentSecurityHttpAccessMap’, ‘SymfonyComponentSecurityHttpFirewall’, ‘SymfonyComponentTemplatingStorageFileStorage’, ‘Twig\_Environment’, ‘Twig\_Extension’, ‘Twig\_Extension\_Core’, ‘Twig\_Extension\_Escaper’, ‘Twig\_Extension\_Optimizer’, ‘Twig\_LoaderInterface’, ‘Twig\_Markup’, ‘Twig\_Template’)) in /var/www/html/mautic2/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 98

  
...

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [June 9, 2015, 3:34pm UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931/2 "2015-06-09T15:34:07Z")

</div>

Hello, after updating my system via

`php /var/www/html/mautic2/app/console mautic:update:find -e prod
php /var/www/html/mautic2/app/console mautic:update:apply -e prod`

the system throws the following exception:

[code]InvalidArgumentException: Unable to load class “Twig\_Environment”

in /var/www/html/mautic2/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 259  
at ClassCollectionLoader::getOrderedClasses(array(‘DoctrineBundleDoctrineBundleRegistry’, ‘DoctrineCommonAnnotationsDocLexer’, ‘DoctrineCommonAnnotationsFileCacheReader’, ‘DoctrineCommonAnnotationsPhpParser’, ‘DoctrineCommonAnnotationsReader’, ‘DoctrineCommonLexer’, ‘DoctrineCommonPersistenceConnectionRegistry’, ‘DoctrineCommonPersistenceProxy’, ‘DoctrineCommonUtilClassUtils’, ‘MonologFormatterFormatterInterface’, ‘MonologFormatterLineFormatter’, ‘MonologHandlerAbstractHandler’, ‘MonologHandlerAbstractProcessingHandler’, ‘MonologHandlerFilterHandler’, ‘MonologHandlerFingersCrossedHandler’, ‘MonologHandlerFingersCrossedActivationStrategyInterface’, ‘MonologHandlerFingersCrossedErrorLevelActivationStrategy’, ‘MonologHandlerHandlerInterface’, ‘MonologHandlerStreamHandler’, ‘MonologHandlerTestHandler’, ‘MonologLogger’, ‘SensioBundleFrameworkExtraBundleConfigurationConfigurationAnnotation’, ‘SensioBundleFrameworkExtraBundleEventListenerControllerListener’, ‘SensioBundleFrameworkExtraBundleEventListenerHttpCacheListener’, ‘SensioBundleFrameworkExtraBundleEventListenerParamConverterListener’, ‘SensioBundleFrameworkExtraBundleEventListenerSecurityListener’, ‘SensioBundleFrameworkExtraBundleEventListenerTemplateListener’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterDateTimeParamConverter’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterDoctrineParamConverter’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterParamConverterInterface’, ‘SensioBundleFrameworkExtraBundleRequestParamConverterParamConverterManager’, ‘SymfonyBridgeMonologHandlerDebugHandler’, ‘SymfonyBridgeMonologLogger’, ‘SymfonyBundleFrameworkBundleControllerControllerNameParser’, ‘SymfonyBundleFrameworkBundleControllerControllerResolver’, ‘SymfonyBundleFrameworkBundleEventListenerSessionListener’, ‘SymfonyBundleFrameworkBundleRoutingRedirectableUrlMatcher’, ‘SymfonyBundleFrameworkBundleRoutingRouter’, ‘SymfonyBundleFrameworkBundleTemplatingGlobalVariables’, ‘SymfonyBundleFrameworkBundleTemplatingLoaderFilesystemLoader’, ‘SymfonyBundleFrameworkBundleTemplatingLoaderTemplateLocator’, ‘SymfonyBundleFrameworkBundleTemplatingPhpEngine’, ‘SymfonyBundleFrameworkBundleTemplatingTemplateNameParser’, ‘SymfonyBundleFrameworkBundleTemplatingTemplateReference’, ‘SymfonyBundleSecurityBundleSecurityFirewallContext’, ‘SymfonyBundleSecurityBundleSecurityFirewallMap’, ‘SymfonyComponentConfigFileLocator’, ‘SymfonyComponentEventDispatcherContainerAwareEventDispatcher’, ‘SymfonyComponentEventDispatcherEvent’, ‘SymfonyComponentHttpFoundationRequestMatcher’, ‘SymfonyComponentHttpFoundationSessionSession’, ‘SymfonyComponentHttpFoundationSessionStorageHandlerNativeFileSessionHandler’, ‘SymfonyComponentHttpFoundationSessionStorageNativeSessionStorage’, ‘SymfonyComponentHttpFoundationSessionStoragePhpBridgeSessionStorage’, ‘SymfonyComponentHttpFoundationSessionStorageProxyAbstractProxy’, ‘SymfonyComponentHttpFoundationSessionStorageProxySessionHandlerProxy’, ‘SymfonyComponentHttpKernelConfigFileLocator’, ‘SymfonyComponentHttpKernelControllerControllerResolver’, ‘SymfonyComponentHttpKernelEventListenerResponseListener’, ‘SymfonyComponentHttpKernelEventListenerRouterListener’, ‘SymfonyComponentHttpKernelEventFilterControllerEvent’, ‘SymfonyComponentHttpKernelEventFilterResponseEvent’, ‘SymfonyComponentHttpKernelEventGetResponseEvent’, ‘SymfonyComponentHttpKernelEventGetResponseForControllerResultEvent’, ‘SymfonyComponentHttpKernelEventGetResponseForExceptionEvent’, ‘SymfonyComponentHttpKernelEventKernelEvent’, ‘SymfonyComponentHttpKernelKernelEvents’, ‘SymfonyComponentRoutingGeneratorUrlGenerator’, ‘SymfonyComponentRoutingRequestContext’, ‘SymfonyComponentRoutingRouter’, ‘SymfonyComponentSecurityCoreAuthenticationAuthenticationProviderManager’, ‘SymfonyComponentSecurityCoreAuthorizationAccessDecisionManager’, ‘SymfonyComponentSecurityCoreAuthorizationVoterVoterInterface’, ‘SymfonyComponentSecurityCoreSecurityContext’, ‘SymfonyComponentSecurityCoreUserUserProviderInterface’, ‘SymfonyComponentSecurityHttpAccessMap’, ‘SymfonyComponentSecurityHttpFirewall’, ‘SymfonyComponentTemplatingStorageFileStorage’, ‘Twig\_Environment’, ‘Twig\_Extension’, ‘Twig\_Extension\_Core’, ‘Twig\_Extension\_Escaper’, ‘Twig\_Extension\_Optimizer’, ‘Twig\_LoaderInterface’, ‘Twig\_Markup’, ‘Twig\_Template’)) in /var/www/html/mautic2/vendor/symfony/class-loader/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 98  
[/code]

…

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [June 9, 2015, 3:34pm UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931/3 "2015-06-09T15:34:25Z")

</div>

…

`at ClassCollectionLoader::load(array('SymfonyBundleFrameworkBundleEventListenerSessionListener', 'SymfonyComponentHttpFoundationSessionStorageNativeSessionStorage', 'SymfonyComponentHttpFoundationSessionStoragePhpBridgeSessionStorage', 'SymfonyComponentHttpFoundationSessionStorageHandlerNativeFileSessionHandler', 'SymfonyComponentHttpFoundationSessionStorageProxyAbstractProxy', 'SymfonyComponentHttpFoundationSessionStorageProxySessionHandlerProxy', 'SymfonyComponentHttpFoundationSessionSession', 'SymfonyBundleFrameworkBundleTemplatingGlobalVariables', 'SymfonyBundleFrameworkBundleTemplatingTemplateReference', 'SymfonyBundleFrameworkBundleTemplatingTemplateNameParser', 'SymfonyBundleFrameworkBundleTemplatingLoaderTemplateLocator', 'SymfonyComponentTemplatingStorageFileStorage', 'SymfonyBundleFrameworkBundleTemplatingPhpEngine', 'SymfonyBundleFrameworkBundleTemplatingLoaderFilesystemLoader', 'SymfonyComponentRoutingGeneratorUrlGenerator', 'SymfonyComponentRoutingRequestContext', 'SymfonyComponentRoutingRouter', 'SymfonyBundleFrameworkBundleRoutingRedirectableUrlMatcher', 'SymfonyBundleFrameworkBundleRoutingRouter', 'SymfonyComponentConfigFileLocator', 'SymfonyComponentEventDispatcherEvent', 'SymfonyComponentEventDispatcherContainerAwareEventDispatcher', 'SymfonyComponentHttpKernelEventListenerResponseListener', 'SymfonyComponentHttpKernelEventListenerRouterListener', 'SymfonyComponentHttpKernelControllerControllerResolver', 'SymfonyComponentHttpKernelEventKernelEvent', 'SymfonyComponentHttpKernelEventFilterControllerEvent', 'SymfonyComponentHttpKernelEventFilterResponseEvent', 'SymfonyComponentHttpKernelEventGetResponseEvent', 'SymfonyComponentHttpKernelEventGetResponseForControllerResultEvent', 'SymfonyComponentHttpKernelEventGetResponseForExceptionEvent', 'SymfonyComponentHttpKernelKernelEvents', 'SymfonyComponentHttpKernelConfigFileLocator', 'SymfonyBundleFrameworkBundleControllerControllerNameParser', 'SymfonyBundleFrameworkBundleControllerControllerResolver', 'SymfonyComponentSecurityHttpAccessMap', 'SymfonyComponentSecurityHttpFirewall', 'SymfonyComponentSecurityCoreSecurityContext', 'SymfonyComponentSecurityCoreUserUserProviderInterface', 'SymfonyComponentSecurityCoreAuthenticationAuthenticationProviderManager', 'SymfonyComponentSecurityCoreAuthorizationAccessDecisionManager', 'SymfonyComponentSecurityCoreAuthorizationVoterVoterInterface', 'SymfonyBundleSecurityBundleSecurityFirewallMap', 'SymfonyBundleSecurityBundleSecurityFirewallContext', 'SymfonyComponentHttpFoundationRequestMatcher', 'MonologFormatterFormatterInterface', 'MonologFormatterLineFormatter', 'MonologHandlerHandlerInterface', 'MonologHandlerAbstractHandler', 'MonologHandlerAbstractProcessingHandler', 'MonologHandlerStreamHandler', 'MonologHandlerFingersCrossedHandler', 'MonologHandlerFilterHandler', 'MonologHandlerTestHandler', 'MonologLogger', 'SymfonyBridgeMonologLogger', 'SymfonyBridgeMonologHandlerDebugHandler', 'MonologHandlerFingersCrossedActivationStrategyInterface', 'MonologHandlerFingersCrossedErrorLevelActivationStrategy', 'DoctrineCommonAnnotationsDocLexer', 'DoctrineCommonAnnotationsFileCacheReader', 'DoctrineCommonAnnotationsPhpParser', 'DoctrineCommonAnnotationsReader', 'DoctrineCommonLexer', 'DoctrineCommonPersistenceConnectionRegistry', 'DoctrineCommonPersistenceProxy', 'DoctrineCommonUtilClassUtils', 'DoctrineBundleDoctrineBundleRegistry', 'SensioBundleFrameworkExtraBundleEventListenerControllerListener', 'SensioBundleFrameworkExtraBundleEventListenerParamConverterListener', 'SensioBundleFrameworkExtraBundleRequestParamConverterDateTimeParamConverter', 'SensioBundleFrameworkExtraBundleRequestParamConverterDoctrineParamConverter', 'SensioBundleFrameworkExtraBundleRequestParamConverterParamConverterInterface', 'SensioBundleFrameworkExtraBundleRequestParamConverterParamConverterManager', 'SensioBundleFrameworkExtraBundleEventListenerTemplateListener', 'SensioBundleFrameworkExtraBundleEventListenerHttpCacheListener', 'SensioBundleFrameworkExtraBundleEventListenerSecurityListener', 'SensioBundleFrameworkExtraBundleConfigurationConfigurationAnnotation', 'Twig_Environment', 'Twig_Extension', 'Twig_Extension_Core', 'Twig_Extension_Escaper', 'Twig_Extension_Optimizer', 'Twig_LoaderInterface', 'Twig_Markup', 'Twig_Template'), '/var/www/html/mautic2/app/cache/dev', 'classes', true, false, '.php') in /var/www/html/mautic2/app/bootstrap.php.cache line 2489
at Kernel->doLoadClassCache('classes', '.php') in /var/www/html/mautic2/app/AppKernel.php line 208
at AppKernel->boot() in /var/www/html/mautic2/app/AppKernel.php line 74
at AppKernel->handle(object(Request)) in /var/www/html/mautic2/index_dev.php line 38`

Any ideas?

Peter

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [June 10, 2015, 5:40am UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931/4 "2015-06-10T05:40:07Z")

</div>

I restored my system and tried the updater from the notification tray. How long is the Moving Package Contents step intended to take? I started the update 10 minutes ago and there is still a “spinning wheel” for this step.

Peter

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [June 10, 2015, 6:59am UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931/5 "2015-06-10T06:59:50Z")

</div>

I have another update!

I am pretty sure, the failed update has something to to with file and folder permissions. I - for testing purposes - changed all permissions to 777. After that I was able to update the application via the update GUI.

BUT: When I reset the permissions to the standard values (755 for directories, 644 for files, 777 for logs and cache and asset directories), the application does not work as expected, e.g. when I tried to create a new form, I was not able to choose between campaign and standalone - clicking the button did not cause any action, the dialog just stayed there.

Any ideas?

Peter

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/error-after-update-to-1-1-1/1931/6 "2020-02-02T22:59:34Z")

</div>


