Illegal offset type

Created on 16 October 2024, 2 months ago

Problem/Motivation

I just updated to latest version of drupal 10.3.6 and ECA + BPMN.iO for ECA and I am experiencing issues with building a form :

Simple test :

Validate Form (article) > ENTITY FORM : BUILD Entity (node) > ENTITY: FIELD VALUE IS EMPTY (Body) > FORM FIELD : Set Validation ERROR (body).

Once I navigate to article and try to save content I am getting following error:

The website encountered an unexpected error. Try again later.

TypeError: Illegal offset type in Drupal\Core\Render\ElementInfoManager->getInfo() (line 94 of core/lib/Drupal/Core/Render/ElementInfoManager.php).

Drupal\Core\Form\FormBuilder->doBuildForm() (Line: 1069)
Drupal\Core\Form\FormBuilder->doBuildForm() (Line: 579)
Drupal\Core\Form\FormBuilder->processForm() (Line: 168)
Drupal\eca_form\Plugin\Action\FormBuildEntity->execute() (Line: 106)
Drupal\eca\Entity\Objects\EcaAction->execute() (Line: 290)
Drupal\eca\Processor->executeSuccessors() (Line: 221)
Drupal\eca\Processor->execute() (Line: 39)
Drupal\eca\EventSubscriber\DynamicSubscriber->onEvent()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 66)
Drupal\eca\Event\TriggerEvent->dispatchFromPlugin() (Line: 134)
Drupal\eca_form\HookHandler::validate()
call_user_func_array() (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers() (Line: 274)
Drupal\Core\Form\FormValidator->doValidateForm() (Line: 118)
Drupal\Core\Form\FormValidator->validateForm() (Line: 593)
Drupal\Core\Form\FormBuilder->processForm() (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

as I am frustrated I have also tried to download ECA example here : content_validation and import it, but there is the same issue and debug shows this:

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

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

Comments & Activities

  • Issue created by @coaston
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Is there any chance that your Drupal core code base is somehow broken? I'm asking because the stack trace above contains Drupal\Core\Form\FormBuilder->processForm() (Line: 168) but at that line there is a comment and no executable code. Could you please verify? Maybe an outdated patch being applied or something like that.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Thank you for your support,

    I have reverted back to version 10.2.5 (also the database) but I found out there is the same issue. I haven't tried to build the form there before to be honest.
    However I am building form on my site where is still D9 running with no issues and it seems all modules are the same /enabled on both sites.

    Do you think it can be module related ?

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Well, you downgraded to Drupal core 10.2.5? But then you had to downgrade ECA as well, right? Because ECA 2 requires at least Drupal 10.3

    Do you think it can be module related ?

    That's always possible, but I would be more worried about that stack trace which shows some code lines that certainly don't exist.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Well, I found out the reason.

    It was a GIN Admin theme. When I switched to Claro - no issue found.

    I had been using Gin 8.x-3.0-rc10 and now when I updated to latest Gin 8.x-3.0-rc13 everything works as expected.

    Well to be honest I did not expect such fix, but glad it works after 2 days of troubleshooting...

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Thanks for your feedback, glad you found it.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024