Warning: Array to string conversion in Drupal\eca_modeller_bpmn\ModellerBpmnBase->optionsField()

Created on 28 February 2025, about 1 month ago

Problem/Motivation

Got a lot of warnings when editing any model.

Warning: Array to string conversion in Drupal\eca_modeller_bpmn\ModellerBpmnBase->optionsField() (line 920 of eca/modules/modeller_bpmn/src/ModellerBpmnBase.php)

Steps to reproduce

Just edit any existing ECA model.

Here is some stack.

#0 /core/includes/bootstrap.inc(166): _drupal_error_handler_real()
#1 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(920): _drupal_error_handler()
#2 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(852): Drupal\eca_modeller_bpmn\ModellerBpmnBase->optionsField()
#3 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(655): Drupal\eca_modeller_bpmn\ModellerBpmnBase->prepareConfigFields()
#4 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(610): Drupal\eca_modeller_bpmn\ModellerBpmnBase->properties()
#5 /modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(106): Drupal\eca_modeller_bpmn\ModellerBpmnBase->getTemplates()
#6 /modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(67): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo->build()
#7 /modules/contrib/eca/modules/ui/src/Controller/EcaController.php(208): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo->edit()
#8 [internal function]: Drupal\eca_ui\Controller\EcaController->edit()
#9 /core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#10 /core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#12 /core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#13 /var/www/clients/client1/web39/web/repos/ccmar/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /var/www/clients/client1/web39/web/repos/ccmar/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#17 /core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#18 /core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#19 /core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#20 /core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#21 /core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#22 /core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#23 /core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 /core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 /modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#26 /core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle()
#27 /core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#28 /index.php(19): Drupal\Core\DrupalKernel->handle()
#29 {main}
🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇵🇹Portugal jrochate

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024