简体   繁体   中英

Error in Installing Magento 2.0

I am new to Magento. I have installed Magento on localhost and I am using XAMPP (Windows) server. The installation was successful.

And when I opened the home page, it was so blank with no images on it

Store home page: 在此处输入图片说明

When I opened the console I got the following errors

Console errors: 在此处输入图片说明

How do I fix this?

Install composer. You can use Composer to install Magento 2. It is a tool for dependent management in PHP which allows you to declare the dependent libraries your project needs and install them for you. Composer enables you to manage Magento 2, extensions, and their dependencies

It is a common problem on windows servers (mostly local xampp servers) because these servers dont have symlinks.

Do this to fix it:

  1. go to app/etc/di.xml and delete name="view_preprocessed" in virtualType name="developerMaterialization" section.
  2. go to pub/static and delete all files except the .htaccess

after that I installed it again and it worked

Check permissions of the /pub/media and pub/static folders

system permissions for Magento 2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM