- Issue created by @jurgenhaas
I'm seeing this too - came up during migration. I disabled the model and reran the import - came up clear.
- First commit to issue fork.
- @nicxvan opened merge request.
That cleared the error message, but left me with this:
Warning: Array to string conversion in Drupal\eca_modeller_bpmn\ModellerBpmnBase->prepareConfigFields() (line 776 of /code/web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php) #0 /code/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(2, 'Array to string...', '/code/web/modul...', 776) #1 /code/web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(776): _drupal_error_handler(2, 'Array to string...', '/code/web/modul...', 776) #2 /code/web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(594): Drupal\eca_modeller_bpmn\ModellerBpmnBase->prepareConfigFields(Array) #3 /code/web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(544): Drupal\eca_modeller_bpmn\ModellerBpmnBase->properties(Object(Drupal\eca_commerce\Plugin\ECA\Condition\Commerce), 'condition', 'bpmn:SequenceFl...', Array) #4 /code/web/modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(76): Drupal\eca_modeller_bpmn\ModellerBpmnBase->getTemplates() #5 /code/web/modules/contrib/eca/modules/ui/src/Controller/EcaController.php(206): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo->edit() #6 [internal function]: Drupal\eca_ui\Controller\EcaController->edit('process_kkjxbdj') #7 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #8 /code/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #9 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #10 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #11 /code/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #12 /code/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #13 /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /code/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /code/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /code/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /code/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /code/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /code/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #21 {main}
.
- Status changed to Needs work
over 1 year ago 9:13am 18 August 2023 - π©πͺGermany jurgenhaas Gottmadingen
The error in #6 is caused by the plugin
eca_commerce_commerce:order_customer_role
and its field "Allowed roles". The field type ischeckboxes
and the default value is an empty array.At this point, BPMN based modellers are not supporting multi value checkboxes yet, only single value checkbox is supported. This is due to the third party property panel does not support that widget type yet.
There is an issue in ECA about this already: β¨ Improve multi-value and checkbox support for BPMN based modellers Active
As a workaround, for now the eca commerce conditions should fall back to single value checkbox for now.
- πΊπΈUnited States nicxvan
I've added some checks to remove checkboxes.
This needs additional testing since I don't have a specific condition I could trigger on.
@tonka67 does this clear up your issue?
-
nicxvan β
committed 8d3f2a4a on 1.0.x
Issue #3378519: Undefined array key "parent_entity_type" CommerceDeriver...
-
nicxvan β
committed 8d3f2a4a on 1.0.x
- Status changed to Fixed
over 1 year ago 2:34pm 19 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.