Patch error commerce 2.38 & D9

Created on 16 February 2024, 4 months ago
Updated 19 February 2024, 4 months ago

I wanted to use this module according to the description, but the step enabling the required patch gives me an error:

   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2021-12-09/3017662-50.patch

The module will install without the patch, but then throws:
Error: Call to a member function dispatch() on null in Drupal\commerce\CommerceContentEntityStorage->postLoad() (line 48 of modules/contrib/commerce/src/CommerceContentEntityStorage.php).

Drupal\commerce\CommerceContentEntityStorage->postLoad(Array) (Line: 353)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 46)
Drupal\Core\Field\EntityReferenceFieldItemList->referencedEntities() (Line: 283)
Drupal\commerce_order\Entity\Order->getItems() (Line: 121)
Drupal\commerce_order\OrderStorage->doOrderPreSave(Object) (Line: 86)
Drupal\commerce_order\OrderStorage->invokeHook('presave', Object) (Line: 563)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 753)
Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object) (Line: 517)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 804)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 169)
Drupal\commerce_order\OrderStorage->save(Object) (Line: 339)
Drupal\Core\Entity\EntityBase->save() (Line: 156)
Drupal\commerce_order\OrderStorage->postLoad(Array) (Line: 353)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 232)
Drupal\commerce_cart\CartProvider->loadCartData(Object) (Line: 180)
Drupal\commerce_cart\CartProvider->getCartIds(NULL, NULL) (Line: 167)
Drupal\commerce_cart\CartProvider->getCarts() (Line: 237)
Drupal\commerce_cart\Plugin\Block\CartBlock->getCacheTags() (Line: 47)
Drupal\block\BlockViewBuilder->viewMultiple(Array, 'full', NULL) (Line: 32)
Drupal\block\BlockViewBuilder->view(Object) (Line: 151)
Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build() (Line: 274)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands rsamsen

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

Comments & Activities

Production build 0.69.0 2024