Skip to content

Plugin references class that doesn't exist #781

Open
@Quazz

Description

@Quazz

Preconditions (*)

  1. 2.2.1, Magento 2.4.3 CE

Steps to reproduce (*)

Look at file: https://github.com/magento/magento2-page-builder/blob/develop/app/code/Magento/PageBuilder/Plugin/Catalog/Model/Product/Attribute/RepositoryPlugin.php
See the constructor argument (and its reference further down in the same file)
This class does not exist in the Community Edition (https://github.com/magento/magento2/tree/2.4.3/app/code/Magento/Eav/Api/Data)

There is no Magento\Eav\Api\Data\AttributeExtension (or its factory)

So when https://github.com/magento/magento2-page-builder/blob/develop/app/code/Magento/PageBuilder/Plugin/Catalog/Model/Product/Attribute/RepositoryPlugin.php#L60 that point gets reached you get the following error:

Call to undefined method Magento\Eav\Api\Data\AttributeExtension::setIsPagebuilderEnabled()

Expected result (*)

  1. No error in system.log and exception.log

Actual result (*)

  1. Errors in system.log and exception.log

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions