New version of kickstart cant be installed by installer

Created on 14 January 2025, 6 days ago

Steps to reproduce

composer create-project -s dev centarro/commerce-kickstart-project kickstart
cd kickstart
ddev config
ddev start

Starting wizard of installator
choosing language
Instalotor progress bar run until almost end and finish with error

Error

The website encountered an unexpected error. Try again later.
TypeError: Unsupported operand types: null + array in commerce_order_theme_registry_alter() (line 451 of modules/contrib/commerce/modules/order/commerce_order.module).
commerce_order_theme_registry_alter() (Line: 459)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 434)
Drupal\Core\Theme\Registry->build() (Line: 276)
Drupal\Core\Theme\Registry->get() (Line: 88)
Drupal\Core\Utility\ThemeRegistry->initializeRegistry() (Line: 69)
Drupal\Core\Utility\ThemeRegistry->__construct() (Line: 314)
Drupal\Core\Theme\Registry->getRuntime() (Line: 141)
Drupal\Core\Theme\ThemeManager->render() (Line: 446)
Drupal\Core\Render\Renderer->doRender() (Line: 203)
Drupal\Core\Render\Renderer->render() (Line: 108)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 593)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 107)
Drupal\Core\Render\Renderer->renderRoot() (Line: 68)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage() (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage() (Line: 1076)
install_display_output() (Line: 160)
install_drupal() (Line: 53)

🐛 Bug report
Status

Active

Version

3.0

Component

CommerceKickstart.com

Created by

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

Comments & Activities

  • Issue created by @marianrk
  • I managed to apply fix, so installator progress to next part:

    In file: modules/contrib/commerce/modules/order/commerce_order.module

    adden to: function commerce_order_theme_registry_alter

    if (isset($theme_registry['commerce_price_calculated'])) {
    }

    like this:

    /**
    * Implements hook_theme_registry_alter().
    */
    function commerce_order_theme_registry_alter(&$theme_registry) {
    if (isset($theme_registry['commerce_price_calculated'])) {
    $theme_registry['commerce_price_calculated']['variables'] += [
    'result' => NULL,
    'base_price' => NULL,
    'adjustments' => [],
    ];
    }
    }

  • And after finish install, its redirected to homepage with another error:

    The website encountered an unexpected error. Try again later.

    Drupal\Component\Plugin\Exception\PluginNotFoundException: Unable to determine class for field type 'commerce_plugin_item:commerce_license_period' found in the 'field.storage.commerce_product_variation.license_expiration' configuration in Drupal\field\FieldStorageConfigStorage->mapFromStorageRecords() (line 167 of core/modules/field/src/FieldStorageConfigStorage.php).

    Drupal\Core\Plugin\DefaultPluginManager->getDefinition() (Line: 252)
    Drupal\Core\Field\FieldTypePluginManager->getPluginClass() (Line: 163)
    Drupal\field\FieldStorageConfigStorage->mapFromStorageRecords() (Line: 168)
    Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple() (Line: 312)
    Drupal\Core\Entity\EntityStorageBase->loadMultiple() (Line: 513)
    Drupal\Core\Entity\EntityBase::loadMultiple() (Line: 180)
    Drupal\field\Hook\FieldHooks->entityFieldStorageInfo() (Line: 592)
    Drupal\Core\Entity\EntityFieldManager->Drupal\Core\Entity\{closure}() (Line: 307)
    Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 589)
    Drupal\Core\Entity\EntityFieldManager->buildFieldStorageDefinitions() (Line: 466)
    Drupal\Core\Entity\EntityFieldManager->getFieldStorageDefinitions() (Line: 122)
    Drupal\views\EntityViewsData->getFieldStorageDefinitions() (Line: 204)
    Drupal\commerce\CommerceEntityViewsData->mapFieldDefinition() (Line: 334)
    Drupal\views\EntityViewsData->getViewsData() (Line: 67)
    Drupal\commerce\CommerceEntityViewsData->getViewsData() (Line: 32)
    Drupal\commerce_product\ProductVariationViewsData->getViewsData() (Line: 163)
    Drupal\views\Hook\ViewsViewsHooks->viewsData() (Line: 219)
    Drupal\views\ViewsData->Drupal\views\{closure}() (Line: 307)
    Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 218)
    Drupal\views\ViewsData->getData() (Line: 142)
    Drupal\views\ViewsData->get() (Line: 90)
    Drupal\views\Plugin\ViewsHandlerManager->getHandler() (Line: 896)
    Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers() (Line: 1100)
    Drupal\views\ViewExecutable->_initHandler() (Line: 958)
    Drupal\views\ViewExecutable->initHandlers() (Line: 2352)
    Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1752)
    Drupal\views\ViewExecutable->preExecute() (Line: 1687)
    Drupal\views\ViewExecutable->executeDisplay() (Line: 81)
    Drupal\views\Element\View::preRenderViewElement()
    call_user_func_array() (Line: 107)
    Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 825)
    Drupal\Core\Render\Renderer->doCallback() (Line: 387)
    Drupal\Core\Render\Renderer->doRender() (Line: 203)
    Drupal\Core\Render\Renderer->render() (Line: 238)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 593)
    Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231)
    Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
    Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
    Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() (Line: 246)
    Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 188)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->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: 709)
    Drupal\Core\DrupalKernel->handle() (Line: 19)

Production build 0.71.5 2024