after enabled the content_translation module:
1. goto admin/store
2. click "Create order" link
3. select "No customer account required."
4. click "Create order" button
will cause this issue:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.uc_order.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 191 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal\Core\Routing\UrlGenerator->getRoute('entity.uc_order.canonical')
Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.uc_order.canonical', Array, Array, 1)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.uc_order.canonical', Array, Array, )
Drupal\Core\Url->toString()
content_translation_page_attachments(Array)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)
Stack\StackedHttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)
Comment | File | Size | Author |
---|---|---|---|
#6 | 2623410-canonical-6.patch | 11.22 KB | jian he |
| |||
#6 | interdiff.txt | 415 bytes | jian he |
#4 | 2623410-create-order-fatal-error-4.patch | 10.01 KB | jian he |
|
Comments
Comment #2
jian he CreditAttribution: jian he commentedComment #3
TR CreditAttribution: TR commentedLet's see if this works. I didn't test it ...
The entity.uc_order.canonical route is defined in the uc_order entity annotation, but I guess that's not enough ...
Comment #4
jian he CreditAttribution: jian he commentedThe /admin/store/orders/{uc_order} is canonical.
Comment #5
jian he CreditAttribution: jian he commented#2623394: Fix views schemas for uc_order depends on this issue, because the standard views field plugin need usable canonical link to make id link to entity.
Comment #6
jian he CreditAttribution: jian he commentedRemove TODO, because the RouteProvider already provided.
Comment #8
longwaveThanks! Committed #6 without the Views config changes that were previously removed: