magento2: Magento 2.3.1: Catalog setup fails with error "Magento\Catalog\Setup\Media does not exist"
Preconditions
- magento/product-enterprise-edition 2.3.0
- PHP 7.2
Exact PHP version:
PHP 7.2.16 (cli) (built: Mar 5 2019 13:10:50) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.16, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.7.0, Copyright (c) 2002-2019, by Derick Rethans
Steps to reproduce
- Update from magento/product-enterprise-edition 2.3.0 to 2.3.1
- Run
bin/magento setup:upgrade
Expected result
- No errors, normal output
Actual result
- Error
Class Magento\Catalog\Setup\Media does not existwhen runningData install/updateforMagento_Catalog
This seems to be a bug in the CategorySetup.php:
This should probably be \Magento\Catalog\Model\Product\Attribute\Backend\Media::class or a use \Magento\Catalog\Model\Product\Attribute\Backend\Media be added at the beginning of the file.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (8 by maintainers)
@orlangur he may have used the enterprise, but the error is in Magento_Catalog, which is in Open Source…
This functionality does not seem to be a part of Magento Open Source, isn’t it?
In such case