cancel
Showing results for 
Search instead for 
Did you mean: 

css and js is not loading after upgrading magento 2.4.2 from 2.3.2

css and js is not loading after upgrading magento 2.4.2 from 2.3.2

GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/mage/requirejs/mixins.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/requirejs-config.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/Magento_Theme/js/theme-color.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/requirejs/require.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/Magento_Theme/js/theme-core.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/THEME_FOLDER_NAMELocal_FlashSales/js/flashsales.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAMETHEME_FOLDER_NAME/local/en_US/Magenest_SmsMarketing/js/validation.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/THEME_FOLDER_NAMELocal_CustomerCheckout/js/checkqtyaddtocart.js net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1/magento/static/version1616140032/frontend/THEME_FOLDER_NAME/local/en_US/mage/requirejs/mixins.js 404 (Not Found)
I have already performed below steps (In developer Mode)
1-Enable Apache Rewrite
2- Fix Files & Folders Permissions
3- Delete Generated Files, Sessions & Caches
4-Deploy Static View Files
5- Reindex the Indexer

Magento FrontpageFrontpageFrontpage

3 REPLIES 3

Re: css and js is not loading after upgrading magento 2.4.2 from 2.3.2

Any solution found please share

Re: css and js is not loading after upgrading magento 2.4.2 from 2.3.2

Run the following commands:-
1. php bin/magento se:up
2. php bin/magento se:di:com
3. php bin/magento s:s:d -f
4. php bin/magento c:f
5. php bin/magento cache:clean
6. php bin/magento indexer:reindex
7.   Give permissions of all files and directory.

// 644 permission for files
find . -type f -exec chmod 644 {} \; 

// 755 permission for directory find . -type d -exec chmod 755 {} \;

chmod 644 ./app/etc/*.xml chown -R :<web server group> . chmod u+x bin/magento

 I hope it will help you.  Click Kudos and Accept as Solution.

Re: css and js is not loading after upgrading magento 2.4.2 from 2.3.2

Try to give permission to the pub/media folder

 

sudo chmod -R 777 var/ generated/ pub/static/ pub/media/