cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.x Creating New Store Error

SOLVED

Magento 2.x Creating New Store Error

I Have Created a new store and I have name it    /new_Store/ and it opens but 

 

CSS and Javascript not loading ( in the new store ) - The old one is working perfectly 

 

I am using Ubuntu 18.04 and Apache 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2.x Creating New Store Error

Solved: I forget to add the path for the static and media files in the Base_URL

View solution in original post

6 REPLIES 6

Re: Magento 2.x Creating New Store Error

Hi,

Can you try deploying your magento store using below command

php bin/magento s:s:d -f

If still not works, try to run below all commands:

php bin/magento setup:upgrade

php bin/magento s:d:c

php bin/magento s:s:d -f

chmod 777 -R var/* generated/* pub/static/*

 

Thanks!

Problem Solved! Click kudos & Accept as Solution!

Re: Magento 2.x Creating New Store Error

Hi @sherif_sorour ,

 

First try with the solution shared by @Nishu Jindal , if you still not able to see your desired CSS and JS

Check the theme set for the new store view.

 

You can check from admin in :

CONTENT > Design > Configuration > [Edit your newly created store] > [Set Theme]

 

Take reference from here for more info :

https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/themes/theme-apply.html

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Magento 2.x Creating New Store Error

Nothing worked, I think .htdaccess has a problem ANY HELP

Re: Magento 2.x Creating New Store Error

@sherif_sorour 

 

It maybe due to the domain you've created, check if the Base URL, Base Link URL is correct (with / at ending), as CSS and JS will load at that domain.

 

See below if you have setup like this :

https://www.mageplaza.com/kb/how-to-setup-multiple-stores-magento-2.html

 

Thanks !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Magento 2.x Creating New Store Error

Solved: I forget to add the path for the static and media files in the Base_URL

Re: Magento 2.x Creating New Store Error

I faced a similar error and sought help from this Magento partner who was an expert in store theme customization and resolved my issue over night.