Class 'Drupal\Core\Render\Element\FormElementBase' not found in include() (line 26 of modules/contrib/commerce_currencies_price/src/Element/CurrenciesPrice.php).

Created on 22 January 2025, 2 months ago

Problem/Motivation

After I installed the module on Drupal 9, I can't even use the site anymore due to this error:

The website encountered an unexpected error. Please try again later.
Error: Class 'Drupal\Core\Render\Element\FormElementBase' not found in include() (line 26 of modules/contrib/commerce_currencies_price/src/Element/CurrenciesPrice.php).
include() (Line: 571)
Composer\Autoload\includeFile('/app/web/modules/contrib/commerce_currencies_price/src/Element/CurrenciesPrice.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Drupal\commerce_currencies_price\Element\CurrenciesPrice')
spl_autoload_call('Drupal\commerce_currencies_price\Element\CurrenciesPrice')
class_exists('Drupal\commerce_currencies_price\Element\CurrenciesPrice') (Line: 96)
Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass('commerce_currencies_price', Array, 'Drupal\Core\Render\Element\ElementInterface') (Line: 17)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('commerce_currencies_price', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('commerce_currencies_price', Array) (Line: 141)
Drupal\Core\Render\ElementInfoManager->createInstance('commerce_currencies_price') (Line: 111)
Drupal\Core\Render\ElementInfoManager->buildInfo('vape') (Line: 77)
Drupal\Core\Render\ElementInfoManager->getInfo('view') (Line: 301)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 241)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 242)
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: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
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: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024