Skip to content

magento man

Exception #0 (BadMethodCallException): Missing required argument $data when click on Import

We have not done changes in the files. It’s strange that When we click on System > Import , it give below error. It was working fine yesterday. Exception #0 (BadMethodCallException): Missing required argument $data of FroogalCatalogModelImport. #1 MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime() called… Read More »Exception #0 (BadMethodCallException): Missing required argument $data when click on Import

update magento issue

I’m trying to update my Magento but has some issues with the composer. When I try to use composer2 update, I get this: composer update Loading composer repositories with package information Authentication required (api.packages.vdc-services.io): Username: Password: But it does not… Read More »update magento issue

Having trouble refactoring Submit Index class that extends deprecated MagentoFrameworkAppActionAction;

<?php namespace AlexAskQuestionControllerSubmit; use AlexAskQuestionModelAskQuestionFactory; use MagentoFrameworkAppActionAction; use MagentoFrameworkAppActionContext; use MagentoFrameworkControllerResultJson; use MagentoFrameworkControllerResultFactory; use MagentoFrameworkDataFormFormKeyValidator; use MagentoFrameworkExceptionLocalizedException; class Index extends Action { public const STATUS_ERROR = ‘Error’; public const STATUS_SUCCESS = ‘Success’; /** * @var Validator */ private Validator $formKeyValidator;… Read More »Having trouble refactoring Submit Index class that extends deprecated MagentoFrameworkAppActionAction;

How to compress PDF of invoice shipment and Creditmemo

In Magento 2.4.1 I developed below code to compress the PDF and it was working fine Recently I updated Magento to 2.4.6-p3 and now compression stoped working. app/code/Vendor/CompressPDF/etc.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoSalesModelOrderPdfInvoice” type=”VendorCompressPDFModelSalesOrderPdfInvoice” /> </config> app/code/Vendor/CompressPDF/Model/Sales/Order/Pdf <?php… Read More »How to compress PDF of invoice shipment and Creditmemo

Adding a version to a module/extension in Magento 2 admin

I want to add Installed version of current extension/module in admin menu like below screenshot. https://i.imgur.com/0P7QZSA.png Note: For creating menus in m2 admin, I am using following code from /etc/adminhtml/menu.xml file. <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Backend:etc/menu.xsd”> <menu> <add id=”My_Module::main” title=”My… Read More »Adding a version to a module/extension in Magento 2 admin