TypeError: Cannot access offset of type string on string in Drupal\eca_tamper\Plugin\ECA\Condition\Tamper->buildConfigurationForm()

Created on 13 September 2023, about 1 year ago
Updated 25 February 2024, 7 months ago

Problem/Motivation

Whenever I try to access any of the tamper filters using the ECA Classic Modeller, i get a WSOD. The full error on the log is:

TypeError: Cannot access offset of type string on string in Drupal\eca_tamper\Plugin\ECA\Condition\Tamper->buildConfigurationForm() (line 68 of /app/web/modules/contrib/eca_tamper/src/Plugin/ECA/Condition/Tamper.php)

#0 /app/web/modules/contrib/eca_cm/src/Form/EcaPluginForm.php(306): Drupal\eca_tamper\Plugin\ECA\Condition\Tamper->buildConfigurationForm()
#1 [internal function]: Drupal\eca_cm\Form\EcaPluginForm->buildForm()
#2 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array()
#3 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(283): Drupal\Core\Form\FormBuilder->retrieveForm()
#4 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(224): Drupal\Core\Form\FormBuilder->buildForm()
#5 /app/web/modules/contrib/eca_cm/src/Controller/CoreModeller.php(200): Drupal\Core\Form\FormBuilder->getForm()
#6 [internal function]: Drupal\eca_cm\Controller\CoreModeller->addCondition()
#7 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#8 /app/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#10 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#11 /app/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /app/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#13 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /app/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#17 /app/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#18 /app/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#19 /app/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#20 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#21 /app/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#22 /app/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#23 {main}

Steps to reproduce

Drupal Version
9.5.10

PHP Version
8.1.21

Install ECA and this module
Try to add any tamper action as a Condition.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica rolandoscott

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

Comments & Activities

Production build 0.71.5 2024