Upgraded from 2.0.0 to 2.0.1 and site crashed to WSOD

Created on 13 October 2022, about 2 years ago
Updated 18 April 2023, over 1 year ago

Error message :

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\twig_field_value\Twig\Extension\FieldValueExtension::__construct(), 0 passed in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and exactly 2 expected in Drupal\twig_field_value\Twig\Extension\FieldValueExtension->__construct() (line 44 of modules/composer/twig_field_value/src/Twig/Extension/FieldValueExtension.php).
Drupal\twig_field_value\Twig\Extension\FieldValueExtension->__construct() (Line: 262)
Drupal\Component\DependencyInjection\Container->createService(Array, 'twig_field_value.twig.extension') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('twig_field_value.twig.extension', 1) (Line: 437)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 276)
Drupal\Component\DependencyInjection\Container->createService(Array, 'twig') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('twig') (Line: 197)
Drupal::service('twig') (Line: 47)
twig_render_template('core/themes/seven/templates/classy/dataset/table.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('table', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 241)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 164)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Rolled back to 2.0.0 and everything started working again.

This was seen when I tried to view the Image styles interface at : /admin/config/media/image-styles

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇺🇸United States alphex Atlanta, GA USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India mohitgupta.ald Gurugram, Haryana

    It will be great if someone provide any working patch from upgrading the module to 2.0.2.

  • 🇺🇸United States Webbeh Georgia, USA

    As a reminder, to fix this, we need to find a reproducible process to recreate this issue.

    The steps should begin with: install Drupal using a default profile, install version 2.0.0, then upgrade, and see error; or, to find a process that reproduces this.

  • 🇺🇸United States Rick Hood

    I am getting errors.

    Steps to reproduce (on my local using Lando):

    1. composer update drupal/twig_field_value
    Upgrading drupal/twig_field_value (2.0.1 => 2.0.2)

    2. lando drush updb
    [success] No pending updates.

    3. I get errors on all page similar to error below

    4. lando drush cr
    Gets rid of the errors.
    However, a concern is that I could not clear cache via the interface because this page also have errors: /admin/config/development/performance

    I am holding off deploying this live for now.

    The website encountered an unexpected error. Please try again later.
    TypeError: Drupal\twig_field_value\Twig\Extension\FieldValueExtension::__construct(): Argument #1 ($language_manager) must be of type Drupal\Core\Language\LanguageManagerInterface, Drupal\Core\Controller\ControllerResolver given, called in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\twig_field_value\Twig\Extension\FieldValueExtension->__construct() (line 67 of modules/contrib/twig_field_value/src/Twig/Extension/FieldValueExtension.php).

    ....etc.

    full output of errors is in the attached file.

  • 🇩🇪Germany Grevil

    Is this still a problem for latest dev?

Production build 0.71.5 2024