- Issue created by @martin@manarock.co.uk
- π¬π§United Kingdom martin@manarock.co.uk
Note this with a D10 install (3382034), and ready patched with 341685, 3415783, 3425570.
- π³πΏNew Zealand davidwhthomas
This appears to happen because the ticket edit route conflicts with the commerce_order state-transition-form, or vice versa.
Drupal\commerce_order\Entity\Order.php "state-transition-form" = "/admin/commerce/orders/{commerce_order}/{field_name}/{transition_id}" Drupal\commerce_ticketing\Entity\CommerceTicket.php "edit-form" = "/admin/commerce/orders/{commerce_order}/tickets/{commerce_ticket}/edit"
So the edit form is processed via the state_maching transform form access check.
- πΊπΈUnited States bogdog400
Yes, I'm seeing essentially the same error. I'm just adding this in case it helps.
Error: Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getTransitions() in Drupal\state_machine\Access\StateTransitionAccessCheck->access() (line 51 of modules/contrib/state_machine/src/Access/StateTransitionAccessCheck.php). Drupal\state_machine\Access\StateTransitionAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 113) Drupal\Core\Access\AccessManager->checkRequest() (Line: 110) Drupal\Core\Routing\AccessAwareRouter->checkAccess() (Line: 95) Drupal\Core\Routing\AccessAwareRouter->matchRequest() (Line: 225) Drupal\system\PathBasedBreadcrumbBuilder->getRequestForPath() (Line: 171) Drupal\system\PathBasedBreadcrumbBuilder->build() (Line: 83) Drupal\Core\Breadcrumb\BreadcrumbManager->build() (Line: 72) Drupal\system\Plugin\Block\SystemBreadcrumbBlock->build() (Line: 171) Drupal\block\BlockViewBuilder::preRender() call_user_func_array() (Line: 101) Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 788) Drupal\Core\Render\Renderer->doCallback() (Line: 374) Drupal\Core\Render\Renderer->doRender() (Line: 446) Drupal\Core\Render\Renderer->doRender() (Line: 204) Drupal\Core\Render\Renderer->render() (Line: 479) Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 43) __TwigTemplate_68a0a88db1848b1b290b0eeffdae2a75->doDisplay() (Line: 405) Twig\Template->displayWithErrorHandling() (Line: 378) Twig\Template->display() (Line: 390) Twig\Template->render() (Line: 55) twig_render_template() (Line: 384) Drupal\Core\Theme\ThemeManager->render() (Line: 433) Drupal\Core\Render\Renderer->doRender() (Line: 204) Drupal\Core\Render\Renderer->render() (Line: 479) Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 86) __TwigTemplate_bd2763cc78037ec013753a462d2694d4->doDisplay() (Line: 405) Twig\Template->displayWithErrorHandling() (Line: 378) Twig\Template->display() (Line: 390) Twig\Template->render() (Line: 55) twig_render_template() (Line: 384) Drupal\Core\Theme\ThemeManager->render() (Line: 433) Drupal\Core\Render\Renderer->doRender() (Line: 204) Drupal\Core\Render\Renderer->render() (Line: 162) Drupal\Core\Render\MainContent\HtmlRenderer->{closure:Drupal\Core\Render\MainContent\HtmlRenderer::renderResponse():157}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 157) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() call_user_func() (Line: 142) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 174) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->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: 23) Stack\StackedHttpKernel->handle() (Line: 718) Drupal\Core\DrupalKernel->handle() (Line: 19)