Because of psr autoload: Error: Class "Drupal\eca\Plugin\Action\ConfigurableActionBase" not found in include()

Created on 9 July 2025, 3 days ago

Problem/Motivation

[error] Error: Class "Drupal\eca\Plugin\Action\ConfigurableActionBase" not found in include() (line 19 of /var/www/html/html/modules/contrib/eca_twilio_action/src/Plugin/Action/SendTwilioSms.php) #0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/html/modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsActionManager.php(88): class_implements()
#4 /var/www/html/html/modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsActionManager.php(129): Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager->findDefinitions()
#5 /var/www/html/html/modules/contrib/views_bulk_operations/src/Plugin/views/field/ViewsBulkOperationsBulkForm.php(139): Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager->getDefinitions()
#6 /var/www/html/html/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(913): Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm->init()
#7 /var/www/html/html/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(941): Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers()
#8 /var/www/html/html/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(977): Drupal\views\Plugin\views\display\DisplayPluginBase->getAllHandlers()
#9 /var/www/html/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(71): Drupal\views\Plugin\views\display\DisplayPluginBase->calculateDependencies()
#10 /var/www/html/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(89): Drupal\Core\Config\Entity\ConfigEntityBase->getPluginDependencies()
#11 /var/www/html/html/core/modules/views/src/Entity/View.php(283): Drupal\Core\Config\Entity\ConfigEntityBase->calculatePluginDependencies()
#12 /var/www/html/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(328): Drupal\views\Entity\View->calculateDependencies()
#13 /var/www/html/html/core/modules/views/src/Entity/View.php(293): Drupal\Core\Config\Entity\ConfigEntityBase->preSave()
#14 /var/www/html/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(528): Drupal\views\Entity\View->preSave()
#15 /var/www/html/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(483): Drupal\Core\Entity\EntityStorageBase->doPreSave()
#16 /var/www/html/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(266): Drupal\Core\Entity\EntityStorageBase->save()
#17 /var/www/html/html/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\Core\Config\Entity\ConfigEntityStorage->save()
#18 /var/www/html/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(617): Drupal\Core\Entity\EntityBase->save()
#19 /var/www/html/html/modules/contrib/update_helper/src/Updater.php(434): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#20 /var/www/html/html/modules/contrib/update_helper/src/Updater.php(209): Drupal\update_helper\Updater->updateConfig()
#21 /var/www/html/html/modules/contrib/config_modify/src/Updater.php(60): Drupal\update_helper\Updater->executeConfigurationActions()
#22 /var/www/html/html/modules/contrib/config_modify/src/ConfigInstaller.php(138): Drupal\config_modify\Updater->doExecuteUpdate()
#23 /var/www/html/html/modules/contrib/config_modify/src/ConfigInstaller.php(78): Drupal\config_modify\ConfigInstaller->installOptionalAlterConfig()
#24 /var/www/html/html/core/lib/Drupal/Core/Config/ConfigInstaller.php(170): Drupal\config_modify\ConfigInstaller->installOptionalConfig()
#25 /var/www/html/html/modules/contrib/config_modify/src/ProxyClass/ConfigInstaller.php(92): Drupal\Core\Config\ConfigInstaller->installDefaultConfig()
#26 /var/www/html/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php(326): Drupal\config_modify\ProxyClass\ConfigInstaller->installDefaultConfig()
#27 /var/www/html/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install()
#28 /var/www/html/vendor/drush/drush/src/Commands/pm/PmCommands.php(102): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install()
#29 [internal function]: Drush\Commands\pm\PmCommands->install()
#30 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#31 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#32 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#33 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#34 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#35 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#36 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#37 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#38 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#39 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#40 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#41 /var/www/html/vendor/drush/drush/drush(4): require('...')
#42 /var/www/html/vendor/bin/drush(119): include('...')
#43 {main}.

Steps to reproduce

i am just installing modules

Proposed resolution

I think it is the auotload in composer.json
It is autoloading eca_twilio_action/src but eca is not autoloaded so the library is not found.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States SocialNicheGuru

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

Comments & Activities

  • Issue created by @SocialNicheGuru
  • Hi @socialnicheguru,

    I tried to reproduce this on a fresh site with:

    • Drupal 10.5.1
    • ECA 2.1.10
    • ECA Twilio Action 2.0.0-alpha1

    …and everything stays perfectly calm—no errors.

    My hunch is that this is the composer-namespace mix-up tracked in #3534927 🐛 Wrong prefix for eca and twilio in .info.yml Active .

    The fix is already on the 2.0.x dev branch. Please give it a spin and let me know if anything still looks off. Once I get a 👍, I’ll tag the next release.
    composer require 'drupal/eca_twilio_action:2.0.x-dev@dev'

    If the error still appears, please share:

    1. Exact versions of Drupal core and the related modules.
    2. The point in the install/upgrade process where the error occurs.
  • 🇺🇸United States SocialNicheGuru

    I will try the new version.

    To clarify I had not enabled any eca modules and was enabling other modules.

    The autoload is calling eca_twilio_action classes and one of them depends on an eca class that is not autoloaded and not available:
    Error: Class "Drupal\eca\Plugin\Action\ConfigurableActionBase" not found in include() (line 19 of /var/www/html/html/modules/contrib/eca_twilio_action/src/Plugin/Action/SendTwilioSms.php)

    I do not know enough about autoloader so maybe this is just my hunch.

    I would suggest either removing autoloader from eca_twilio_action/composer.json or add it to eca.

Production build 0.71.5 2024