Created
August 20, 2018 16:44
-
-
Save vanleantking/43fc464494482bdd452e5bad04fc9e4f to your computer and use it in GitHub Desktop.
error symlink on magento 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After install magento 2, some css and js lib can not run because symlinks Magento 2 create. | |
We can fix this issue by | |
1. on di.xml file at app/etc, and find virtualType name="developerMaterialization" section | |
find item name="view_preprocessed", modify content from Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink to Magento\Framework\App\View\Asset\MaterializationStrategy\Copy | |
2. Delete the files under pub/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess file. | |
From https://magento.stackexchange.com/questions/64802/magento-2-404-error-for-scripts-and-css/64808#64808 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!