I'm getting an error Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed() when running integration tests on my local development environment.

For some reason it seems that some extension attributes are not generated. In this case, Magento_Newsletter should add getIsSubscribed() method to CustomerExtension, but the method is missing. Any ideas why this is happening?

Log output:

Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed()
  • magento.stackexchange.com/a/276407/71181 - try this page maybe this might help you Jan 31, 2020 at 15:19
  • Thanks for your help, but this didn't solve my problem. The error occurs only when initiating the data for the integration tests by the fixtures. There's no any other problems with Customer extension_attributes. There's no any extension_attributes for Customer in my custom modules. Only Magento core modules are adding those. I added the log output to the original post where you can see that the error is thrown in Magento_Newsletter module. Feb 3, 2020 at 11:50

1 Answer 1


It seems Magento_Newsletter mudule is disabled for your site. Just enable it and run setup:upgrade

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.