Skip to content

Class Magento\Customer\Block\Address\Renderer\AbstractAddress does not exist #3448

@moleman

Description

@moleman

When calling "bin/magento setup:di:compile-multi-tenant", it will fail with the error message:

[Magento\Framework\Exception\LocalizedException]
Class Magento\Customer\Block\Address\Renderer\AbstractAddress does not exist

This only happens when we are using a certain third-party module and not in a vanilla Magento2 installation.

After some investigation, the error occurs because the argument type expected in getFormat(...) in https://github.com/magento/magento2/blob/develop/app/code/Magento/Customer/Block/Address/Renderer/DefaultRenderer.php#L98 is of the type AbstractAddress and it's undefined in that class. Looking at the history it seems that this commit, 99acfee, where "use ...\AbstractAddress" was changed to "use ...\AddressModelInterface", caused the error because the argument type in getFormat(...) should also have been changed to AddressModelInterface.

Metadata

Metadata

Assignees

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions