0

Have this issue all css and js are not loaded on live site. Tried with terminal to do this.

php bin/magento setup:static-content:deploy -f

then php bin/magento indexer:reindex

and in the end php bin/magento cache:flush

And after all this still have issue with css and js not loading. I need help bad.

asked Mar 6, 2022 at 14:25
4
  • You do have multi store website? Also share console error aor any other errors. Commented Mar 6, 2022 at 15:26
  • not a multi site here is the link industria.rs Commented Mar 6, 2022 at 15:49
  • Do you have multi language? Commented Mar 6, 2022 at 17:43
  • I see site is running now.. please close this question now or add answer Commented Mar 7, 2022 at 3:39

1 Answer 1

0

This is most likely issue with server configuration, look at .css or .js urls for example:

https://industria.rs/pub/static/frontend/Smartweb...

It should be something like:

https://industria.rs/static/version1644913932/frontend/Smartweb...

Check if your root folder is properly configured in server to be [MagentoRootDir]/pub/ and also compare your nginx configuration with default nginx conf

answered Mar 6, 2022 at 17:30
2
  • Im not that good with configuration but will try. Could you help and share what file need to be edited Commented Mar 6, 2022 at 18:47
  • @AleksandarZubic. sorry to say but your are totally wrong. we can disable "version1644913932" this thing from admin. in his case it could be disabled. issue is something else. Commented Mar 7, 2022 at 3:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.