Hi guys,
I have installed Magento 2 and after that Magento 2 sample data which was missing. The only problem now is that the front is completely broken and it looks like this:
Any guess why is this happening and what could be the solution.
Tnx.
Hi guys,
I have installed Magento 2 and after that Magento 2 sample data which was missing. The only problem now is that the front is completely broken and it looks like this:
Any guess why is this happening and what could be the solution.
Tnx.
Hi @Petar and welcome.
You’ll need to provide some additional information to point you in the right direction.
I would normally suggest that apache rewrite isn’t enabled. However, your question seems to suggest that it was working before installing the Sample Data. You answers to the above questions will help.
After that sample data show up along with products and categories but as you can see from the screenshot is all messed up. I tried to find the solution but unfortunately all the topics related to this issue were not helpfull.
This is the screnshot from my home page block:
Working in a Windows environment can be tricky.
Is it just JS and CSS files not loading? What does Chrome tell you is the reason for them not loading in? File Not Found? Access Denied?
Interesting… It definitely looks CSS related. It looks like some files are being generated. I’m pretty sure there should be:
styles-l.css
styles-m.css
styles.css
Deploy your static content again, but add your Locale at the end. For example:
bin/magento setup:static-content:deploy -f en_US
It’s really hard to diagnose without being able to have a poke around.
EDIT: I found this article based on the missing files - But I can’t condone the solution because it requires the editing of core code, which is bad practice. Plus it feels more like solving the symptom and not the issue itself.
No, unfortunately your solution does not work.
Something similar here, altough none of these solutions suggested also work:
There’s a few similar solutions but they relate to 404 files - Not non-generated files. I’m afraid your scenario isn’t an one that I’ve experienced or heard of.
At this stage it could be anything from an Installation issue (i.e. some core files missing) or an Environmental issue (i.e. stopping files from being generated).
If your plan is to development locally, then running an Ubuntu VirtualBox would eliminate the Environment Variables. There’s a ton of articles about this on Google.
If in the meantime you do find a solution, please let us know in case others come across this issue too.
Thanks for tips Craig, I appreciate it. If I find solution in the meantime I will post it, in the meantime let me check what can I do with Ubuntu.
Cheers.
A post was split to a new topic: Theme broken after manually clearing the pub/static folder