- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2020
10:24 PM
11-26-2020
10:24 PM
JS and font not loading 404 error
Hello,
In my Magento 2.2.5 store there is JS and fonts 4040 error.
I am using centos with lamp and webserver user and group name is daemon
I have run below commands but still issue exist.
alias mage="/opt/lampp/bin/php -d memory_limit=-1 bin/magento" sudo find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + sudo find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + sudo chown -R :daemon . sudo chmod u+x bin/magento mage s:s:d mage c:c mage c:f
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2020
02:05 AM
11-27-2020
02:05 AM
Re: JS and font not loading 404 error
try the following steps :
- disable sign static files
bin/magento config:show dev/static/sign 0
- check .htaccess file in pub/static folder
- try 755 permission for pub/static folder
bin/magento config:show dev/static/sign
kindly Accept as a Solution if this works for you and give Kudos
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2020
03:08 AM
11-27-2020
03:08 AM
Re: JS and font not loading 404 error
Below commands resolved my issue basically I pu en_GB in mage s:s:d en_GB and it solved the issue.
Below is the list of commands
rm -rf var/view_preprocessed/* pub/static/* sudo chmod -R 777 var pub mage s:s:d en_GB mage c:c mage c:f