Skip to content

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

@nussjustin

Description

@nussjustin

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.

Metadata

Metadata

Assignees

Labels

Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions