- Issue created by @almador
I'm using Drupal 10.3 and Commerce ticketing is installed with the following in composer.json:
"repositories": [
{
"type":"vcs",
"url":"https://git.drupalcode.org/issue/commerce_ticketing-3382034.git"
},
and "drupal/commerce_ticketing": "dev-3382034-drupal-10-upgrade",
here is the list of installed patches:
"patches": {
"drupal/entity_print": {
"Issue #3383187: Unexpected error with print engine PhpWkhtmlToPdf or DomPdf":
"https://www.drupal.org/files/issues/2023-12-06/3383187-5.patch"},
"drupal/commerce_ticketing": {
"3416185 - symphony mailer plugin":
"https://git.drupalcode.org/project/commerce_ticketing/-/merge_requests/29.diff",
"3415783 - tickets not autosending": "https://www.drupal.org/files/issues/2024-03-13/autoactivating-
3415783-12.patch",
"3425570 - Error: Call to a member function getWorkflowId() on null":
"https://www.drupal.org/files/issues/2024-03-05/commerce_ticketing-3425570.patch",
"3250757 - Events and Disabled Tickets": "https://www.drupal.org/files/issues/2024-03-12/events-
disabled-tickets-3250757-8.patch",
"3415300 - ticketing twig theming patch": "https://www.drupal.org/files/issues/2024-01-17/theming-3415300-4.patch"
},
After adding the ticket product, adding it to the card and testing payment I see the new commerce ticket at commerce_ticket/xxx-xxx-xxx
But then the page stops opening with the error:
The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "route_enhancer.param_conversion", path: "router_listener -> router -> router.no_access_checks -> route_enhancer.param_conversion -> paramconverter_manager -> commerce_ticketing.uuid_param_converter". in Drupal\Component\DependencyInjection\Container->get() (line 149 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->get() (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 239)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 91)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->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)
Install the module on Drupal 10.3, create a ticket product, add to the cart, checkout, and visit the commerce ticket a few times.
Make sure that the service uuid_param_converter is not creating the loop in Drupal 10.3
commerce_ticketing.uuid_param_converter:
class: Drupal\commerce_ticketing\Routing\UuidParamConverter
arguments: ['@entity_type.manager', '@entity.repository']
tags:
- { name: paramconverter }
Active
2.0
Code