Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have installed the magento2 successfully but there are a lot of js error

I have installed the magento2 successfully but there are a lot of js error.

When see the console log through the firebug it shows a lot of errors and is there any thing else to config for the magento css and js.

enter image description here

like image 650
Yogendra - eCommerce Developer Avatar asked Dec 25 '14 11:12

Yogendra - eCommerce Developer


People also ask

How to fix Magento 2 error code 0x2?

Solution: This is a known issue with the Magento 2 develop branch. You can fix this by switching to the master branch with the following command: Once you successfully install Magento 2 and address any issues, you should explore the Magento extensions library next.

How to install Magento 2 on Windows 10?

1) Download the Magento 2. 2) Extract this in your www OR htdocs directory. 3) Install the magento. Do not use localhost, use 127.0.0.1 in store url and admin url. 4) After successful installation DO NOT RUN MAGENTO. 5) Now delete the cache / session of magento 2. Go to the below mentioned paths and delete the files.

Do you need to migrate from Magento 1 to Magento 2?

Magento 1 users who want to protect customer data, as well as take advantage of all the other benefits, will need to migrate to Magento 2. However, there may be some bumps along the way. Here's how to fix the most common Magento 2 installation issues. These tips will help your migration go as smoothly as possible. 1.

Why is my Magento installation stuck at 70%?

Issue: Once in the Magento Setup Wizard, installation can get stuck around the 70% mark — and no error message will display. Solution: To fix this problem, you may just need to adjust the PHP setting for max_execution_time. Open the php.ini file in a text editor (note: you’ll need to be a user with root privileges to do this).


2 Answers

try following :

  1. make bin/magento executable

    chmod +x bin/magento
    
  2. Clear cache etc in var folder

    rm -rf var/cache/ var/di/ var/generation/ var/page_cache/
    
  3. Run Setup ( if any thing missing )

    bin/magento setup:upgrade
    
  4. Deploy Static Content

    bin/magento setup:static-content:deploy
    
  5. Give Permission to var & pub folders

    chmod -R 777 pub/ var/
    

now all the static files containing js, css etc will be deployed in pub/static folder

like image 92
Emizen Tech Avatar answered Sep 21 '22 23:09

Emizen Tech


Remove all files and folder in pub/static except .htaccess and then run:

php bin/magento setup:static-content:deploy
like image 25
user1579524 Avatar answered Sep 21 '22 23:09

user1579524