Welcome to My Blog

Here you can fantastic Magento & Design posts.

Magento admin css and js not loading after trying to change path of the admin url

Magento admin css and js not loading after trying to change path of the admin url. These type of problem comes when we trying to use custom url for admin or trying to change backend url from CLI. Here are some steps to resolve this issue. Login it to phpmyadmin or any other tool that let you access for database and select database that you use for your magento. 1) Find and remove all entries with path like ‘admin/url/custom’ in core_config_data table. SELECT * FROM `core_config_data` where 'admin/url/custom'; If any entries exist run below mentioned query. DELETE FROM `core_config_data` where 'admin/url/custom'; 2) After that find value with with below mentioned query. SELECT * FROM `core_config_data` where scope='stores' and scope_id=0 and path ='web/secure/base_url'; If any entries exist run below mentioned query. DELETE FROM `core_config_data` where scope='stores' and scope_id=0 and path ='web/secure/base_url'; And SELECT * FROM `core_config_data` where scope='stores' and scope_id=0 and path ='web/unsecure/base_url'; If any entries exist run below mentioned query. DELETE FROM `core_config_data` where scope='stores' and scope_id=0 and path ='web/unsecure/base_url'; 3) Now set value 0 for path admin/url/use_custom SELECT * FROM `core_config_data` where path='admin/url/use_custom'; If any entries exist and value is not 0 then run below mentioned query. UPDATE `core_config_data` set value=0 where path='admin/url/use_custom'; 4) Check Magento_Root/etc/env.php and look for below mentioned line here ‘admin’ is your admin url so ‘www.example.com/admin’ is your admin url now you can change this value to and use updated with with new admin path. 'backend' => [ 'frontName' => 'admin' ], 5) clean cache from CLI by running below mentioned command. And hurrah! you are all...

Install patches in magento 2

There is two bellow mentioned types of patches provided in Magento 2 1) Composer Patch2) Git Patch Composer Patch: This patch implies that your all defual magento modules are in “vendor” folder. If yes then you need to download the composer patch and place inside “vendor” folder ie. (MAGENTO_ROOT/vendor). Then open terminal connect server with ssh change directory to “MAGENTO_ROOT/vendor” and user bellow mentioned command git apply patchname.patch Git Patch: This patch implies that your all defual magento modules are in “app/code” folder. If yes then you need to download the git patch and place inside “app” folder ie. (MAGENTO_ROOT/app). Then open terminal connect server with ssh change directory to “MAGENTO_ROOT/app” and user bellow mentioned command git apply...
Disable Magento compiler

Disable Magento compiler

You can disable the compiler from ssh also. login to server with ssh and go to magentoroot\shell and use below mentioned commands.