Skip to content

magento man

Plugin Class does not exists

I am creating plugin to alter API response in M2.4.3. I am trying to alter this functionality via plugin MagentoFrameworkWebapiRestResponse and function prepareResponse My di.xml file is: <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoFrameworkWebapiRestResponse”> <plugin name=”vendor_apiresponses_extend_Webapi_rest_response” type=”VendorApiResponsesPluginFrameworkWebapiRestResponseUpdateResponse” /> </type>… Read More »Plugin Class does not exists

Unable to add attribute to product by InstallData

I would like to add a custom attribute to the product and create an installData.php according to the guide. However, nothing changed after se:up. Please help. app/code/My/Module/Setup/InstallData.php <?php namespace MyModuleSetup; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface;… Read More »Unable to add attribute to product by InstallData

Uncaught Error: Call to undefined method Magento\Catalog\Model\ResourceModel\Product\Interceptor::_construct()

I am getting the following error in my Magento application sometimes, it’s not breaking the application always but in regular interval I am getting this error. The application CPU usage is also going high sometimes. Application is using redis for… Read More »Uncaught Error: Call to undefined method Magento\Catalog\Model\ResourceModel\Product\Interceptor::_construct()