cancel
Showing results for 
Search instead for 
Did you mean: 

css not loading after changing to production mode

css not loading after changing to production mode

Originally when website was changed from developer to production mode this error was occuring;

There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number:

But some areas of the website were accessible but now the CSS is not loading at all.

Any help would be grateful. 

1 REPLY 1

Re: css not loading after changing to production mode

I guess you've tried, but if you haven't - you should deploy static assets:

 

php bin/magento setup:static-content:deploy
php bin/magento cache:flush

Also, it could be due to wrong permissions. In that case, you can try with:

chmod 755 -R pub/static

 

If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this issue