How do I backup Magento?

Taking a backup of Magento 2 is quite easy. You need couple of very simple steps to take the whole site backup. What you need to do is – Make a zip file of the whole site. (Go to admin panel > System > backups) Take a database backup from admin panel or directly from […]

After Successful Installation Magento Getting Blank Gray page for Admin

…\vendor\magento\framework\View\Element\Template\File\Validator.php Find and add the extra code- protected function isPathInDirectories($path, $directories) { if (!is_array($directories)) { $directories = (array)$directories; } $realPath = $this->fileDriver->getRealPath($path); $realPath = str_replace(‘\\’, ‘/’, $realPath); // extra code added foreach ($directories as $directory) { if (0 === strpos($realPath, $directory)) { return true; } } return false; }

How to remove page title (h1) from home page, cms_index_index.xml not working

Create a cms_index_index.xml file in “/app/design/frontend/(vendor)/(theme)/Magento_Theme/layout” and paste the following code – <?xml version=”1.0″?> <!– /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ –> <page xmlns:xsi=”” layout=”1column” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”page.main.title” remove=”true” /> </body> </page> For all other Pages create cms_page_view.xml and use the same code

Override Login Page Title | How to change Customer Login Title in magento 2?

Create a customer_account_login.xml file to change title of customer login For theme – app/design/frontend/{Packagename}/{themename}/Magento_Customer/layout/customer_account_login.xml For module – app/code/{Package}/{Module}/view/frontend/layout/customer_account_login.xml Add the following line in the xml file – <referenceBlock name=”page.main.title”> <action method=”setPageTitle”> <argument translate=”true” name=”title” xsi:type=”string”>LOGIN OR CREATE AN ACCOUNT (Your Custom Title)</argument> </action> </referenceBlock>

How To Install Magento 2 On Ubuntu 18.04 | How to install Magento 2 with Sample Data

apt-get update #Install the server. apt-get install apache2 #Install PHP 7.2 and the required extensions: add-apt-repository ppa:ondrej/php apt-get update apt-get install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-curl php7.2-intl php7.2-xsl php7.2-mbstring php7.2-zip php7.2-bcmath php7.2-soap php-xdebug php-imagick php -v sudo subl /etc/php/7.2/apache2/php.ini Update the following options there.. memory_limit = 2G max_execution_time = 3600 max_input_time = 1800 upload_max_filesize […]

Fixing: Failed to Load Resources Error After Installing Magento 2 | XAMPP | WINDOWS 10

Go to – “D:\xampp\htdocs\mage2\vendor\magento\framework\View\Element\Template\File\”. Open The file name Validator.php Search for “$this->fileDriver->getRealPath“, you will find the similar code. Replace them with it accordingly. Basically add a php function to replace ‘\\’ with ‘\’. strpos( str_replace( ‘\\’,’/’,$this->fileDriver->getRealPath($path) ), $directory ) Clear caches of Magento 2. Go to following paths and delete everything: Installation root folder / var […]

The openssl extension is required for SSL/TLS protection but is not available.

$ php bin/magento setup:static-content:deploy The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the ‘disable-tls’ option to true.#0 E:\xampp\htdocs\magento225\vendor\composer\composer\sr c\Composer\Factory.php(325): Composer\Factory::createRemoteFilesystem(Object(Composer\IO\BufferIO), Object(Composer\Config)) #1 E:\xampp\htdocs\magento225\vendor\composer\composer\src\Composer\Factory.php(569): Composer\Factory->createComposer(Object(Composer\IO\BufferIO), Array, false) #2 E:\xampp\htdocs\magento225\vendor\magento\framework\Composer\ComposerFactory.php(47): Composer\Factory::create(Object(Composer\IO\BufferIO), ‘E:\\xampp\\htdocs…’) #3 E:\xampp\htdocs\magento225\vendor\magento\framework\Composer\ComposerInformation.php(362): […]

Refused to apply style because its MIME type (‘text/html’) is not a supported stylesheet MIME type

After installtion magento 2 you can see a error like MIME type not supported. To fix this: Use 2 comment: php bin/magento setup:static-content:deploy -f -s standard php bin/magento cache:clean *** Exception: If you use xampp server and you see “Xampp Warning: Module ‘openssl’ already loaded in line 0” Please visit this link for solve this […]