cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access css/js

Can't access css/js

Hello,

I've just installed Magento 2.3 and the installation went to its term.

 

However when I try to access the Magento store or admin, the page is loaded but the css/js are not loaded.

Example

https://magento.mydomain.org/pub/static/version1544234356/adminhtml/Magento/backend/fr_FR/extjs/resources/css/ext-all.css

Leads to a 404 page.

 

If I look at pub/static I don't see the version1544234356 directory

# ls magento/pub/static/
.htaccess            adminhtml            deployed_version.txt frontend

 

So why Magento tries to access the version1544234356 directory ? The problem is there.

1 REPLY 1

Re: Can't access css/js

Hi,

 

Remove all files from pub/static folder but not .htaccess

Go to app/etc/di.xml

Replace ('Symlink' --> 'Copy')

Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
by

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

The following link may help you!

https://magento.stackexchange.com/questions/154728/magento-2-not-loading-css-and-js-after-successful...


Thank You!

Prema M