Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If you try a minimal install of the module (reproducible on simplytest.me) you get the following error:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "product_variation" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: [error]
active_store, node, taxonomy_tid, current_user, user, fixed, query_parameter, raw in /var/www/html/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:53
Stack trace:
#0 /var/www/html/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition(Array,
'product_variati...', true)
#1 /var/www/html/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(16): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('product_variati...')
#2 /var/www/html/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('product_variati...', Array)
#3 /var/www/html/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(1129): Drupal\Component\Plugin\PluginManagerBase->createInstance('product_variati...')
#4 /var/www/html/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(1334):
Drupal\views\Plugin\views\argument\ArgumentPluginBase->getPlugin('argument_defaul...')
#5 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(71): Drupal\views\Plugin\views\argument\ArgumentPluginBase->calculateDependencies()
#6 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(89):
Drupal\views\Plugin\views\display\DisplayPluginBase->getPluginDependencies(Object(Drupal\views\Plugin\views\argument\NumericArgument))
#7 [internal function]: Drupal\views\Plugin\views\display\DisplayPluginBase->calculatePluginDependencies(Object(Drupal\views\Plugin\views\argument\NumericArgument), 8)
#8 /var/www/html/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(960): array_walk(Array, Array)
#9 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(71): Drupal\views\Plugin\views\display\DisplayPluginBase->calculateDependencies()
#10 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(89):
Drupal\Core\Config\Entity\ConfigEntityBase->getPluginDependencies(Object(Drupal\views\Plugin\views\display\DefaultDisplay))
#11 /var/www/html/core/modules/views/src/Entity/View.php(282):
Drupal\Core\Config\Entity\ConfigEntityBase->calculatePluginDependencies(Object(Drupal\views\Plugin\views\display\DefaultDisplay))
#12 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(319): Drupal\views\Entity\View->calculateDependencies()
#13 /var/www/html/core/modules/views/src/Entity/View.php(292): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
#14 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(494): Drupal\views\Entity\View->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
#15 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(449): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\views\Entity\View))
#16 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(252): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\views\Entity\View))
#17 /var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\views\Entity\View))
#18 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(592): Drupal\Core\Entity\EntityBase->save()
#19 /var/www/html/core/lib/Drupal/Core/Config/ConfigInstaller.php(388): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#20 /var/www/html/core/lib/Drupal/Core/Config/ConfigInstaller.php(152): Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array)
#21 /var/www/html/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'commerce_pricel...')
#22 /var/www/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php(324): Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('module',
'commerce_pricel...')
#23 /var/www/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#24 /home/web/.composer/vendor/drush/drush/commands/core/drupal/environment_common.inc(91): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#25 /home/web/.composer/vendor/drush/drush/commands/core/drupal/environment_common.inc(158): drush_module_install(Array)
#26 /home/web/.composer/vendor/drush/drush/commands/pm/pm.drush.inc(1191): drush_module_enable(Array)
#27 /home/web/.composer/vendor/drush/drush/includes/command.inc(422): drush_pm_enable('commerce_pricel...')
#28 /home/web/.composer/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#29 /home/web/.composer/vendor/drush/drush/includes/command.inc(199): drush_command('commerce_pricel...')
#30 /home/web/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#31 /home/web/.composer/vendor/drush/drush/includes/preflight.inc(67): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#32 /home/web/.composer/vendor/drush/drush/drush.php(12): drush_main()
#33 {main}
Steps to reproduce
Install Drupal (I tried 9) and try to enable commerce pricelist.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 3231056-2.patch | 657 bytes | jsacksick |
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro commentedHopefully, the attached patch should do the trick.
Comment #4
jsacksick CreditAttribution: jsacksick at Centarro commentedCommitted.