Zend Anwar

Full stack web developer

Category: Magento 2

Magento 2 after install shows blank page

Please below instruction hope it will resolve. Just got to vendor/magento/framework/View/Element/Template/File/validation.php And go to line 138 lines Replace  $realPath = $this->fileDriver->getRealPath($path); foreach ($directories as $directory) { if (0 === strpos($realPath, $directory)) { return true; } } With  $realPath = $this->fileDriver->getRealPath($path); foreach ($directories as $directory) { $directory = $this->fileDriver->getRealPath($path); if (0 === strpos($realPath, $directory)) { return […]

Read More

Notice: unserialize(): Unexpected end of serialized data in Magento 2 data migration

Just follow the following step. Go to /yii/caching/CCache.php file and replace with following code. $value=unserialize($value); Change to : $value=unserialize(base64_decode($value)); It will work fine. hope so  

Read More

magento 2 not working after the command bin/magento setup:di:compile

Very simple. please run following command:   php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush 🙂

Read More

Deprecated: The each() function is deprecated. C:\xampp\apps\magento\htdocs\vendor\colinmollenhour\cache-backend-file\File.php on line 81

This is probably because you use php 7.2 which Magento doesn’t support currently, even in 2.3 pre-release. You can downgrade to php 7.1.X and use Magento 2.2.X or downgrade to php 7.0.7.X and use Magento 2.1.X.

Read More

New Features in Magento 2.3

1. Progressive Web Apps 2. Page Builder 3. GraphQL 4. Declarative Database Schema 5. Google ReCAPTCHA 6. Multi-Source Inventory 7. Asynchronous API 8. Import/Export Improvements 9. Two Factor Authentication

Read More

How many design patterns in Magento 2?

Magento has a total of 12 design patterns. These patterns are given below: Factory Pattern Singleton Pattern Model View Controller Pattern Front Controller Pattern Registry Pattern Prototype Pattern Iterator Pattern Object Pool Pattern Service Locator Pattern Lazy Loading Pattern Observer Pattern Module Pattern  

Read More

Remove Advanced Search Link from header in Magento 2

Path –  Vendor_Name/Custom_Theme_Name/Magento_Theme/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”advanced-search-link” remove=”true”/> </page>

Read More

How to Edit/Change/remove Magento 2 Privacy Policy Page

Path –  Vendor_Name/Custom_Theme_Name/Magento_Theme/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”footer_links” remove=”true”/> </page>

Read More

Remove “help us keep magento healthy report all bugs” from footer in Magento 2

just create the following folder & file app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml add following code in default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”report.bugs” remove=”true” /> </page>

Read More

How to add a custom CSS in Magento 2

Just follow below step Step 1: Make sure your developer mode. Step 2: Create the following folder & files app / design / frontend / [vendor] / [Your_theme] / Magento_Theme / layout / default_head_blocks.xml app / design / frontend / [vendor] / [Your_theme] / web / css / custom.css Step 3: Pace this code within […]

Read More