-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Description
What happened?
Description
After updating my local installation to Commerce 5.4.0
, it is not possible to load the variants when opening a product. The table listing the variants is empty and he following error is thrown:
2025-06-24 08:31:26 [web.ERROR] [craft\errors\MissingComponentException] craft\errors\MissingComponentException: Unable to find component class 'craft\elements\actions\Copy'. in /var/www/html/vendor/craftcms/cms/src/helpers/Component.php:48
Stack trace:
#0 /var/www/html/vendor/craftcms/cms/src/helpers/Component.php(133): craft\helpers\Component::validateComponentClass()
#1 /var/www/html/vendor/craftcms/cms/src/services/Elements.php(2833): craft\helpers\Component::createComponent()
#2 /var/www/html/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(894): craft\services\Elements->createAction()
#3 /var/www/html/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(128): craft\controllers\ElementIndexesController->availableActions()
#4 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(176): craft\controllers\ElementIndexesController->beforeAction()
#5 /var/www/html/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#6 /var/www/html/vendor/craftcms/cms/src/web/Application.php(361): yii\base\Module->runAction()
#7 /var/www/html/vendor/craftcms/cms/src/web/Application.php(660): craft\web\Application->runAction()
#8 /var/www/html/vendor/craftcms/cms/src/web/Application.php(323): craft\web\Application->_processActionRequest()
#9 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#10 /var/www/html/web/index.php(12): yii\base\Application->run()
#11 {main} {"memory":5944736,"exception":"[object] (craft\\errors\\MissingComponentException(code: 0): Unable to find component class 'craft\\elements\\actions\\Copy'. at /var/www/html/vendor/craftcms/cms/src/helpers/Component.php:48)"}
I am running Craft 5.6.17
. Could this error be related to the new Copy feature introduced in Craft 5.7
? If so, Commerce 5.4
should probably require Craft 5.7
.
Steps to reproduce
- Open any product
- Variants do not load and the error is shown
Expected behavior
Variants are displayed.
Craft CMS version
5.6.17
Craft Commerce version
5.4.0
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response