cancel
Showing results for 
Search instead for 
Did you mean: 

Broken Magento 2 - CSS not loading?

SOLVED

Broken Magento 2 - CSS not loading?

Hi,

 

I made a mistake today with my test installation.

Seems like the CSS is not loading correctly.

 

I tried to install an extension and there was a error like: can't delete directory XXX so I just renamed it was deleted from the system Smiley Sad

 

Right now I see the frontend and backend with broken layouts.

Is it possible to fix this somehow or shoud I reinstall it?

 

in my exception.log I have this:

[2022-03-27 18:12:46] main.CRITICAL: The contents from the "/home/seedsat/public_html/magento2-ub3/pub/static/adminhtml/Magento/backend/de_AT/mage/requirejs/mixins.js" file can't be read.
Warning!file_get_contents(/home/seedsat/public_html/magento2-ub3/pub/static/adminhtml/Magento/backend/de_AT/mage/requirejs/mixins.js): failed to open stream: No such file or directory {"exception":"[object] (Magento\\Framework\\Exception\\FileSystemException(code: 0): The contents from the \"/home/seedsat/public_html/magento2-ub3/pub/static/adminhtml/Magento/backend/de_AT/mage/requirejs/mixins.js\" file can't be read. Warning!file_get_contents(/home/seedsat/public_html/magento2-ub3/pub/static/adminhtml/Magento/backend/de_AT/mage/requirejs/mixins.js): failed to open stream: No such file or directory at /home/seedsat/public_html/magento2-ub3/vendor/magento/framework/Filesystem/Driver/File.php:150)"} []

 

This files don't exist Smiley Sad

 

In my Webbrowser I get the status 304

 

I tried:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex

 

and I tried to set the permissions correctly.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Broken Magento 2 - CSS not loading?

I copied all files from

pub/static/adminhtml/Magento/backend/en_US

to:

pub/static/adminhtml/Magento/backend/de_DE

and
pub/static/adminhtml/Magento/backend/de_AT

 

this repaired the backend again.

I did the same for my theme

from:

/pub/static/frontend/Smartwave/porto/en_US
to:

/pub/static/frontend/Smartwave/porto/de_DE

 

Can somebody tell me why this files was deleted?

View solution in original post

1 REPLY 1

Re: Broken Magento 2 - CSS not loading?

I copied all files from

pub/static/adminhtml/Magento/backend/en_US

to:

pub/static/adminhtml/Magento/backend/de_DE

and
pub/static/adminhtml/Magento/backend/de_AT

 

this repaired the backend again.

I did the same for my theme

from:

/pub/static/frontend/Smartwave/porto/en_US
to:

/pub/static/frontend/Smartwave/porto/de_DE

 

Can somebody tell me why this files was deleted?