Problem/Motivation

I was trying to use this to help me knock out some Computed Field plugins. When I go to the "Generate Code" tab, I get the following error:

 The website encountered an unexpected error. Try again later.

Error: Interface "Psr\Cache\CacheItemInterface" not found in include() (line 23 of /home/sewardsdevel9/sewards10/vendor/symfony/cache-contracts/ItemInterface.php).

Composer\Autoload\{closure}() (Line: 427)
Composer\Autoload\ClassLoader->loadClass() (Line: 22)
include('/home/sewardsdevel9/sewards10/vendor/symfony/cache/CacheItem.php') (Line: 576)
Composer\Autoload\{closure}() (Line: 427)
Composer\Autoload\ClassLoader->loadClass()
class_exists() (Line: 18)
include('/home/sewardsdevel9/sewards10/vendor/symfony/cache/Adapter/AdapterInterface.php') (Line: 576)
Composer\Autoload\{closure}() (Line: 427)
Composer\Autoload\ClassLoader->loadClass() (Line: 29)
include('/home/sewardsdevel9/sewards10/vendor/symfony/cache/Adapter/ArrayAdapter.php') (Line: 576)
Composer\Autoload\{closure}() (Line: 427)
Composer\Autoload\ClassLoader->loadClass() (Line: 39)
Symfony\Component\ExpressionLanguage\ExpressionLanguage->__construct() (Line: 597)
DrupalCodeBuilder\Task\Generate\ComponentCollector->acquireDataFromRequestingComponent() (Line: 263)
DrupalCodeBuilder\Task\Generate\ComponentCollector->getComponentsFromData() (Line: 198)
DrupalCodeBuilder\Task\Generate\ComponentCollector->assembleComponentList() (Line: 131)
DrupalCodeBuilder\Task\Generate->generateComponent() (Line: 52)
Drupal\module_builder\Form\ComponentGenerateForm->form() (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm() (Line: 136)
Drupal\module_builder\Form\ComponentFormBase->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult() (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
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: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->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)

I have tried it with and without my computed_field "Plugins" I was hoping to use it for. Even tried it without selecting any hooks, plugins or entity types. Get the same error when I click on Generate Code.

Can someone point me in the right direction to maybe find a solution for it? I have searched around and have not found anything yet.

I am on:

Drupal 10.2.1
PHP 8.1.26
Composer 2.6.5
Drush 12.4.3.0
Module builder 4.0.1

I have checked composer with this:

composer show psr/cache
name     : psr/cache
descrip. : Common interface for caching libraries
keywords : cache, psr, psr-6
versions : * 3.0.0
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage :
source   : [git] https://github.com/php-fig/cache.git aa5030cfa5405eccfdcb1083ce040c2cb8d253bf
dist     : [zip] https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf aa5030cfa5405eccfdcb1083ce040c2cb8d253bf
path     : /home/vendor/psr/cache
names    : psr/cache

support
source : https://github.com/php-fig/cache/tree/3.0.0

autoload
psr-4
Psr\Cache\ => src/

requires
php >=8.0.0

I have cleared caches, rebuilt with dependencies. Just not sure where to go from here. Any help would be appreciated

Comments

tawellman created an issue. See original summary.

tawellman’s picture

Issue summary: View changes
tawellman’s picture

Issue summary: View changes
joachim’s picture

Status: Active » Postponed (maintainer needs more info)

What version of symfony/expression-language do you have installed?

And can you do a config export of the module you were building, and paste it here please?