Skip to content

Can anyone suggest how to remove deprecated registry class and what are the alternative methods?

I’m performing an upgrade to Magento 2.4 and the registry class has been deprecated but it’s being used in some custom modules, please see the code below: <?php declare(strict_types=1); namespace TPCarsModel; use TPCarsModelResourceModelFacilityCollection; use TPCarsApiApiDataFacilityInterface; use TPCarsApiApiDataFacilityInterfaceFactory; use MagentoFrameworkApiDataObjectHelper; use… Read More »Can anyone suggest how to remove deprecated registry class and what are the alternative methods?

Magento 2.4.2 How to disable MSI

Here I have solution how to disable for M.2.4 – but this solution no work for M.2.4.2 Run the below command in your SSH to disable MSI in Magento 2.4.0 php bin/magento module:disable -f Magento_Inventory Magento_InventoryAdminUi Magento_InventoryAdvancedCheckout Magento_InventoryApi Magento_InventoryBundleProduct Magento_InventoryBundleProductAdminUi… Read More »Magento 2.4.2 How to disable MSI

very confused about Varnish. Is it running or not? no headers it only says Pregma: cache

Maybe someone can help: on Ubuntu, nginx, latest magento (2.4.6), varnish 6 This is my Nginx conf setup: upstream varnish { ip_hash; server 127.0.0.1:6081; keepalive 32; } server { listen 443 ssl http2; server_name example.com www.example.com; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;… Read More »very confused about Varnish. Is it running or not? no headers it only says Pregma: cache

Magento 2 Payment Method Hacked

My website’s checkout was hacked this 4th time. The hacker somehow modifies the following files: lib/web/jquery.js vendor/magento/framework/Interception/Interceptor.php vendor/magento/framework/Message/Session.php and adds some kind of encrypted scripts and code, which hides all the payment methods and shows a custom credit card payment… Read More »Magento 2 Payment Method Hacked