magento2: Magento 2.3.1: Catalog setup fails with error "Magento\Catalog\Setup\Media does not exist"

Preconditions

  1. magento/product-enterprise-edition 2.3.0
  2. 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

  1. Update from magento/product-enterprise-edition 2.3.0 to 2.3.1
  2. Run bin/magento setup:upgrade

Expected result

  1. No errors, normal output

Actual result

  1. Error Class Magento\Catalog\Setup\Media does not exist when running Data install/update for Magento_Catalog

This seems to be a bug in the CategorySetup.php:

https://github.com/magento/magento2/blob/4a28abb/app/code/Magento/Catalog/Setup/CategorySetup.php#L629

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)

Most upvoted comments

@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

Please report Magento Commerce issues via the Support portal of your account or Partner portal if you are a partner reporting on behalf of a merchant. GitHub is intended for Magento Open Source bug reports given no account management for Magento Open Source users. This will allow for proper tracking of issues at the account level.