Skip to content

magento2.3

Auto Added by WPeMatico

What is the use of event_prefix and cache_tag variable magento 2 model file

When i am looking into magneto model files i find <?php namespace MageplazaHelloWorldModel; class Post extends MagentoFrameworkModelAbstractModel implements MagentoFrameworkDataObjectIdentityInterface { const CACHE_TAG = ‘mageplaza_helloworld_post’; protected $_cacheTag = ‘mageplaza_helloworld_post’; protected $_eventPrefix = ‘mageplaza_helloworld_post’; protected function _construct() { $this->_init(‘MageplazaHelloWorldModelResourceModelPost’); } public function… Read More »What is the use of event_prefix and cache_tag variable magento 2 model file

PHP Warning: require(/vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php): Failed to open stream

I am working on an upgrade project from Magento 2.3.2.p2 EE to 2.4.4 EE. After the composer update was done successfully I found the below error while run php bin/magento commands, can anyone help me on the same. I have… Read More »PHP Warning: require(/vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php): Failed to open stream

Magento 2 Newsletter Error Invalid Method Interceptor::loadByCustomer

Magento 2 Error Invalid Method Interceptor::loadByCustomer {“0″:”Mu00e9todo invu00e1lido VendorModuleModelSubscriberInterceptor::loadByCustomer”,”1″:”#1 VendorModuleObserverLogin->execute() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:88]n#2 MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:74]n#3 MagentoFrameworkEventInvokerInvokerDefault->dispatch() Code: <?php namespace VendorModuleObserver; use MagentoCustomerModelSession; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MagentoNewsletterModelSubscriber; use MagentoStoreModelStoreManagerInterface; class Login implements ObserverInterface { /** * @var… Read More »Magento 2 Newsletter Error Invalid Method Interceptor::loadByCustomer