4 Rollback to Revision 2 - Edit approval overridden by post owner or moderator
| link
3 version tag
| link
2 removed "Drupal" and tags from the title
source | link

Drupal 8.4.3 -> 8.4.5: The "The website encountered an unexpected error. (WSOD) Service 'twig_extensions.twig.array' for consumer 'twig'

New to Drupal.I have an Acquia Cloud hosted site built on Drupal 8.4.3. Using Acquia Dev Desktop +and Drush to update, I updated a local devdevelopment environment to Drupal 8.4.5 (Jira backlog is 118+ tickets and I have to start solving problems ASAP.) 

Immediately after Drush updateupdated the site, I getgot this error in the Apache log and the dreaded white screen of death. No idea what on Earth this error is on about, tried installing

Service 'twig_extensions.twig.array' for consumer 'twig' does not implement Twig_ExtensionInterface. in /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php on line 164
0 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php(97): Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array, 'twig', Object(Drupal\Core\DependencyInjection\ContainerBuilder))
1 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/Compiler/Compiler.php(120): Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
2 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(573): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
3 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(1307): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
4 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(884): Drupal\Core\DrupalKernel->compileContainer()
5 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(466): Drupal\Core\DrupalKernel->initializeContainer()
6 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(656): Drupal\Core\DrupalKernel->boot()
7 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
8 {main}

I was trying to install the latest version of the Twig module. No change. TwigArray.php looks fine. Any help with this is greatly appreciated. Many thanks.

Service 'twig_extensions.twig.array' for consumer 'twig' does not implement Twig_ExtensionInterface. in /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php on line 164 #0 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php(97): Drupal\\Core\\DependencyInjection\\Compiler\\TaggedHandlersPass->processServiceCollectorPass(Array, 'twig', Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))
[Fri Mar 23 12:04:11.706202 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #1 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/Compiler/Compiler.php(120): Drupal\\Core\\DependencyInjection\\Compiler\\TaggedHandlersPass->process(Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))
[Fri Mar 23 12:04:11.706220 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #2 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(573): Symfony\\Component\\DependencyInjection\\Compiler\\Compiler->compile(Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))
[Fri Mar 23 12:04:11.706248 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #3 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(1307): Symfony\\Component\\DependencyInjection\\ContainerBuilder->compile()
[Fri Mar 23 12:04:11.706254 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #4 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(884): Drupal\\Core\\DrupalKernel->compileContainer()
[Fri Mar 23 12:04:11.706273 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #5 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(466): Drupal\\Core\\DrupalKernel->initializeContainer()
[Fri Mar 23 12:04:11.706279 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #6 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(656): Drupal\\Core\\DrupalKernel->boot()
[Fri Mar 23 12:04:11.706284 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #7 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))
[Fri Mar 23 12:04:11.706290 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #8 {main}

ContentThe content of TwigArray.php fromthe /core/modules/contrib/bamboo_twig/bamboo_twig_extensions/src/TwigArray.php

Not sure if this file is even where I should be lookingthe following.  

Drupal 8.4.3 -> 8.4.5: The website encountered an unexpected error. (WSOD) Service 'twig_extensions.twig.array' for consumer 'twig'

New to Drupal. Acquia Cloud hosted site built on Drupal 8.4.3. Using Acquia Dev Desktop + Drush to update local dev environment to 8.4.5 (Jira backlog is 118+ tickets and I have to start solving problems ASAP.) Immediately after Drush update, I get this error in the Apache log and the dreaded white screen of death. No idea what on Earth this error is on about, tried installing the latest version of the Twig module. No change. TwigArray.php looks fine. Any help with this is greatly appreciated. Many thanks.

Service 'twig_extensions.twig.array' for consumer 'twig' does not implement Twig_ExtensionInterface. in /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php on line 164 #0 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php(97): Drupal\\Core\\DependencyInjection\\Compiler\\TaggedHandlersPass->processServiceCollectorPass(Array, 'twig', Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))
[Fri Mar 23 12:04:11.706202 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #1 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/Compiler/Compiler.php(120): Drupal\\Core\\DependencyInjection\\Compiler\\TaggedHandlersPass->process(Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))
[Fri Mar 23 12:04:11.706220 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #2 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(573): Symfony\\Component\\DependencyInjection\\Compiler\\Compiler->compile(Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))
[Fri Mar 23 12:04:11.706248 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #3 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(1307): Symfony\\Component\\DependencyInjection\\ContainerBuilder->compile()
[Fri Mar 23 12:04:11.706254 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #4 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(884): Drupal\\Core\\DrupalKernel->compileContainer()
[Fri Mar 23 12:04:11.706273 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #5 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(466): Drupal\\Core\\DrupalKernel->initializeContainer()
[Fri Mar 23 12:04:11.706279 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #6 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(656): Drupal\\Core\\DrupalKernel->boot()
[Fri Mar 23 12:04:11.706284 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #7 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))
[Fri Mar 23 12:04:11.706290 2018] [fcgid:warn] [pid 38016:tid 2969358336] [client 127.0.0.1:54988] mod_fcgid: stderr: #8 {main}

Content of TwigArray.php from /core/modules/contrib/bamboo_twig/bamboo_twig_extensions/src/TwigArray.php

Not sure if this is even where I should be looking.  

"The website encountered an unexpected error. (WSOD) Service 'twig_extensions.twig.array' for consumer 'twig'

I have an Acquia Cloud hosted site built on Drupal 8.4.3. Using Acquia Dev Desktop and Drush, I updated a local development environment to Drupal 8.4.5. 

Immediately after Drush updated the site, I got this error in the Apache log and the dreaded white screen of death.

Service 'twig_extensions.twig.array' for consumer 'twig' does not implement Twig_ExtensionInterface. in /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php on line 164
0 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php(97): Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array, 'twig', Object(Drupal\Core\DependencyInjection\ContainerBuilder))
1 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/Compiler/Compiler.php(120): Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
2 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(573): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
3 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(1307): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
4 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(884): Drupal\Core\DrupalKernel->compileContainer()
5 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(466): Drupal\Core\DrupalKernel->initializeContainer()
6 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(656): Drupal\Core\DrupalKernel->boot()
7 /Users/iamtheghost/Sites/devdesktop/ukhealthcare-dev/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
8 {main}

I was trying to install the latest version of the Twig module. No change. TwigArray.php looks fine. Any help with this is greatly appreciated.

The content of the /core/modules/contrib/bamboo_twig/bamboo_twig_extensions/src/TwigArray.php file is the following.

1
source | link