website encountered error line 374 of Store.php ADDRESS_LINE3

Created on 31 December 2023, 11 months ago
Updated 14 January 2024, 10 months ago

Commerce Core 8.x-2.37
White page: The website encountered an unexpected error. Try again later.

Error: Undefined constant CommerceGuys\Addressing\AddressFormat\AddressField::ADDRESS_LINE3 in Drupal\commerce_store\Entity\Store::baseFieldDefinitions() (line 374 of modules/commerce/modules/store/src/Entity/Store.php).

line 374 of Store.php: AddressField::ADDRESS_LINE3 => ['override' => FieldOverride::HIDDEN],

  • Drupal Version 10.2.0
  • PHP Version 8.2.13
  • Update via admin UI / Ludwig

Ludwig packages page / logging & errors reports:
The website encountered an unexpected error. Try again later.

Error: Undefined constant CommerceGuys\Addressing\AddressFormat\AddressField::ADDRESS_LINE3 in Drupal\commerce_store\Entity\Store::baseFieldDefinitions() (line 374 of modules/commerce/modules/store/src/Entity/Store.php).

Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions() (Line: 195)
Drupal\Core\Entity\EntityFieldManager->getBaseFieldDefinitions() (Line: 454)
Drupal\Core\Entity\EntityFieldManager->getFieldStorageDefinitions() (Line: 359)
Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider->getEntityTypeIdKeyType() (Line: 233)
Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider->getCanonicalRoute() (Line: 86)
Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider->getRoutes() (Line: 19)
Drupal\entity\Routing\DefaultHtmlRouteProvider->getRoutes() (Line: 19)
Drupal\entity\Routing\AdminHtmlRouteProvider->getRoutes() (Line: 47)
Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber->onDynamicRouteEvent()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 184)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 485)
drupal_flush_all_caches() (Line: 126)
Drupal\ludwig\Controller\PackageController->page()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
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: 57)
Drupal\advban\AdvbanMiddleware->handle() (Line: 50)
Drupal\ban\BanMiddleware->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: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

💬 Support request
Status

Fixed

Version

2.37

Component

Store

Created by

🇺🇸United States corE

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

Comments & Activities

  • Issue created by @corE
  • Status changed to Fixed 11 months ago
  • 🇮🇱Israel jsacksick

    Commerce now requires Address 2.x... Not really sure how to tell Ludwig to fetch the right version of the module / libraries. Composer is definitely the recommended way of updating Commerce.

  • 🇺🇸United States corE

    Thank you @jsacksick

    I overlooked the Address update and didn't make the connection. Appreciate the help!

    I also did the Inline Entity Form version update just in case, since commerce relies on that. They had some problems with their version 2, and I was hesitant to update.

    All is green now! Thank you once again.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024