Error while editing ticket order

Created on 14 October 2021, about 3 years ago
Updated 14 February 2024, 9 months ago

Hi,

I'm getting this error after trying to edit a ticket order. I go to Orders>View>Tickets>Edit. I get the 'Unexpected error' page and this is what's in the logs:

Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("uuid") to generate a URL for route "entity.commerce_ticket.display". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 182 of /code/core/lib/Drupal/Core/Routing/UrlGenerator.php).

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇬Nigeria chike Nigeria

    I am also getting a WSOD when trying to edit tickets (although this error is not a problem to us as we hardly will want to edit tickets).

    How to reproduce:

    Navigate to /admin/commerce/tickets and click Edit button for any of the tickets.

    The error logged in dblog is,

    Error: Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getTransitions() in Drupal\state_machine\Access\StateTransitionAccessCheck->access() (line 51 of /home/hostacct/public_html/modules/contrib/state_machine/src/Access/StateTransitionAccessCheck.php).

    I am using the latest version on Drupal 10.2.0.

  • 🇧🇪Belgium mgstables

    Same problem with version 2 and patches for Drupal 10.
    When I try to delete a ticket I also get the wsod with the same error message.

    For now, I change the state via the view "All tickets (Commerce Ticket)", where I change the "Commerce Ticket: Active? (State)" in the Format Tool from "list_default" to "state_transition_form".
    This way I can quickly change the state with a button on each ticket.

    Here the entire log:

    Error: Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getTransitions() in Drupal\state_machine\Access\StateTransitionAccessCheck->access() (regel 51 van C:\sites\nailsUp\root\modules\contrib\state_machine\src\Access\StateTransitionAccessCheck.php)
    
    #0 [internal function]: Drupal\state_machine\Access\StateTransitionAccessCheck->access(Object(Drupal\Core\Routing\RouteMatch), Object(Drupal\Core\Session\AccountProxy))
    #1 C:\sites\nailsUp\root\core\lib\Drupal\Core\Access\AccessManager.php(160): call_user_func_array(Array, Array)
    #2 C:\sites\nailsUp\root\core\lib\Drupal\Core\Access\AccessManager.php(136): Drupal\Core\Access\AccessManager->performCheck('access_check.st...', Object(Drupal\Component\Utility\ArgumentsResolver))
    #3 C:\sites\nailsUp\root\core\lib\Drupal\Core\Access\AccessManager.php(113): Drupal\Core\Access\AccessManager->check(Object(Drupal\Core\Routing\RouteMatch), Object(Drupal\Core\Session\AccountProxy), Object(Symfony\Component\HttpFoundation\Request), true)
    #4 C:\sites\nailsUp\root\core\lib\Drupal\Core\Routing\AccessAwareRouter.php(110): Drupal\Core\Access\AccessManager->checkRequest(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Session\AccountProxy), true)
    #5 C:\sites\nailsUp\root\core\lib\Drupal\Core\Routing\AccessAwareRouter.php(95): Drupal\Core\Routing\AccessAwareRouter->checkAccess(Object(Symfony\Component\HttpFoundation\Request))
    #6 C:\sites\nailsUp\root\modules\contrib\easy_breadcrumb\src\EasyBreadcrumbBuilder.php(939): Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object(Symfony\Component\HttpFoundation\Request))
    #7 C:\sites\nailsUp\root\modules\contrib\easy_breadcrumb\src\EasyBreadcrumbBuilder.php(505): Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->getRequestForPath('/admin/commerce...', Array)
    #8 C:\sites\nailsUp\root\core\lib\Drupal\Core\Breadcrumb\BreadcrumbManager.php(83): Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->build(Object(Drupal\Core\Routing\RouteMatch))
    #9 C:\sites\nailsUp\root\core\modules\system\src\Plugin\Block\SystemBreadcrumbBlock.php(72): Drupal\Core\Breadcrumb\BreadcrumbManager->build(Object(Drupal\Core\Routing\CurrentRouteMatch))
    #10 C:\sites\nailsUp\root\core\modules\block\src\BlockViewBuilder.php(171): Drupal\system\Plugin\Block\SystemBreadcrumbBlock->build()
    #11 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
    #12 C:\sites\nailsUp\root\core\lib\Drupal\Core\Security\DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
    #13 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
    #14 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(374): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
    #15 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array)
    #16 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
    #17 C:\sites\nailsUp\root\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
    #18 C:\sites\nailsUp\root\sites\default\files\php\twig\65ccc8c849c90_page.html.twig_z13MaCObQqWNlXLNVFdAobyWX\e2jQWqNGzTKNHOLOPl77o7MEJ9ajtulyLRtCvqf7xKI.php(43): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
    #19 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(405): __TwigTemplate_8c6c3e6f4253afde926c18433c40e58a->doDisplay(Array, Array)
    #20 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
    #21 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array)
    #22 C:\sites\nailsUp\root\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array)
    #23 C:\sites\nailsUp\root\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)
    #24 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('page', Array)
    #25 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
    #26 C:\sites\nailsUp\root\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
    #27 C:\sites\nailsUp\root\sites\default\files\php\twig\65ccc8c849c90_html.html.twig__frEPFORwWd0zxxqNt56KBmAi\RIyZrtCkrtuCdAdu04M7uZ9U1FM8UsGqLgFp2wkiqGs.php(86): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
    #28 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(405): __TwigTemplate_38788a772bf65b6fa718cb9700cd1284->doDisplay(Array, Array)
    #29 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
    #30 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array)
    #31 C:\sites\nailsUp\root\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array)
    #32 C:\sites\nailsUp\root\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)
    #33 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('html', Array)
    #34 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
    #35 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render(Array)
    #36 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
    #37 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
    #38 C:\sites\nailsUp\root\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
    #39 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
    #40 C:\sites\nailsUp\root\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
    #41 C:\sites\nailsUp\root\vendor\symfony\http-kernel\HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
    #42 C:\sites\nailsUp\root\vendor\symfony\http-kernel\HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #43 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #44 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #45 C:\sites\nailsUp\root\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #46 C:\sites\nailsUp\root\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #47 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #48 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #49 C:\sites\nailsUp\root\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #50 C:\sites\nailsUp\root\core\lib\Drupal\Core\DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #51 C:\sites\nailsUp\root\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #52 {main}
    
Production build 0.71.5 2024