- Issue created by @4kant
- 🇩🇪Germany jurgenhaas Gottmadingen
This is most likely on PHP 8.3, am I right? That's where parameter types are checked much more strictly and if a module provides arguments to config forms that are unexpected, then PHP in the past only logged a warning, but with 8.3 the behaviour can be more impactful.
What you can do to narrow down the origin of the problem is to set a break point in the code where the error occurs, and then try to find out which plugin is providing a value that's unexpected by PHP. When we know where this is coming from, we can work on a strategy to prevent that from happening in the future, and maybe also provide a workaround to heal the issue on the fly.
- 🇩🇪Germany 4kant
Thanks Jürgen,
unfortunately, I'm not a programmer...
When I search Google for "set a breakpoint in the code," I get suggestions for doing it in Chrome's Developer Console.
But how do I get to that point in the code if the page isn't accessible because of the white screen?
And... Is that point in the code one of the two lines from the error message? Otherwise, this is the wrong approach anyway...Sorry for my lack of knowledge.
- 🇩🇪Germany 4kant
I completely forgot to check Drupal's dblog.
Here's the backtrace to the error message:
#0 /web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(845): Drupal\eca_modeller_bpmn\ModellerBpmnBase->checkbox('...', '...', 0, NULL, Array)
#1 /web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(655): Drupal\eca_modeller_bpmn\ModellerBpmnBase->prepareConfigFields(Array, Array)
#2 /web/modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(607): Drupal\eca_modeller_bpmn\ModellerBpmnBase->properties(Object(Drupal\eca_commerce\Plugin\ECA\Condition\Commerce), '...', '...', Array)
#3 /web/modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(106): Drupal\eca_modeller_bpmn\ModellerBpmnBase->getTemplates()
#4 /web/modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(67): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo->build()
#5 /web/modules/contrib/bpmn_io/src/Controller/BpmnIo.php(74): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo->edit()
#6 [internal function]: Drupal\bpmn_io\Controller\BpmnIo->add()
#7 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#8 /web/core/lib/Drupal/Core/Render/Renderer.php(637): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#10 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#11 /vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#13 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /web/modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#25 {main}After uninstalling eca_commerce and then accessing the URL for creating a new model for the first time, this error message appears in the dblog:
ECA ran into error from third party in the context of "Collecting all available actions": \Drupal\entity\Plugin\Action\DeleteAction has been deprecated in favor of \Drupal\Core\Action\Plugin\Action\DeleteAction. Use that instead. Line 7 of /web/modules/entity/src/Plugin/Action/DeleteAction.php
- 🇩🇪Germany jurgenhaas Gottmadingen
OK, PHP 8.2 has also started to be more strict. Not as much as 8.3 yet, but still can cause this exception.
The message you found in dblog is something different. It informs you about a deprecated action plugin that will be removed from Drupal core eventually, and if you use that somewhere, you should replace it.
The breakpoint thing is not within the browser, it's in the PHP code, and it requires xdebug to work with it. I haven't made that clear in my original comment above. It's fully understandable that without being a programmer, this is something alien, and you should not be trying learning that just because of this issue.
So, we need to find somebody who tries to reproduce this and then to find out which of the plugins in commerce is causing this issue. For that, it's necessary to have a complete list of all the commerce modules that are installed and also the version of them as well as the versions of Drupal core, ECA, and bpmn_io
- 🇩🇪Germany 4kant
Thanks again Jürgen,
The error appears in both the live version and the development environment, which I had completely updated.
As to the versions of modules and core:
The development version´s "ingredients":
- Drupal 10.5.1
- ECA 2.1.10
- BPMN.iO 2.0.10
- ECA Commerce 2.1.0
- Commerce Agree Terms 2.0.2
- Commerce Ajax ATC (Add to cart) 1.0.0-rc4
- Commerce Cart Blocks 8.x-1.0-rc1
- Commerce Checkout Order Fields 8.x-1.2
- Commerce Conditions Plus 1.0.0-alpha4
- Commerce FedEx 2.0.0-alpha1
- Commerce Feeds 8.x-1.0-alpha5
- Commerce Invoice 8.x-2.2
- Commerce Klarna Checkout 8.x-2.11
- Commerce PayPal 8.x-1.10
- Commerce Product Limits 1.0.4 (not in live below)
- Commerce Purchase Order 2.1.0
- Commerce Shipping 8.x-2.14
- Commerce Shipping Weight Tariff 3.0.0-alpha2
- Commerce Variation Cart Form 8.x-1.5
so far for the development-version...
The live version consists of:
- Drupal 10.4.5
- ECA 1.1.11
- BPMN.iO 1.1.4
- ECA Commerce 1.0.0
- Commerce Agree Terms 2.0.2 (same as above)
- Commerce Ajax ATC (Add to cart) 1.0.0-rc4 (same as above)
- Commerce Cart Blocks 8.x-1.0-rc1 (same as above)
- Commerce Checkout Order Fields 8.x-1.2 (same as above)
- Commerce Conditions Plus 1.0.0-alpha4 (same as above)
- Commerce FedEx 2.0.0-alpha1 (same as above)
- Commerce Feeds 8.x-1.0-alpha5 (same as above)
- Commerce Invoice 8.x-2.0-rc5
- Commerce Klarna Checkout 8.x-2.11 (same as above)
- Commerce PayPal 8.x-1.8
- Commerce Purchase Order 2.1.0 (same as above)
- Commerce Shipping 8.x-2.12
- Commerce Shipping Weight Tariff 3.0.0-alpha2 (same as above)
- Commerce Variation Cart Form 8.x-1.5 (same as above)