Jump to content
Luna Ryuko

[PS 1.7.5.0] JS and CSS not loading

Recommended Posts

Hello!
I have an issue with PrestaShop 1.7.5.0 where the JavaScript and CSS files aren't getting loaded properly due to an invalid URL. This is a fresh install btw, so keep that in mind.

firefox_2019-02-12_15-36-18.png

firefox_2019-02-12_15-24-52.png

Share this post


Link to post
Share on other sites

most likely you're subdomain is not set correctly, check the ps_shop_url table for physical_uri and the .htaccess file for the same,

Share this post


Link to post
Share on other sites
19 hours ago, Rhobur said:

most likely you're subdomain is not set correctly, check the ps_shop_url table for physical_uri and the .htaccess file for the same,

Seems like it's set up correctly.

image.png.bd387a7b86636fbb34583658261bc7fd.png

Anyway, the issue is with the paths to the CSS and JS files on frontend. There are no slashes in the URL at all for some reason.

Share this post


Link to post
Share on other sites

Hello, did you solve it, i have a new hosting, and this problem, happened to me too.

same page i have loaded on other server and working ok.

On this server PHP Version 5.6 , 7.2, 7.3 and nothing works, i thik it is something from hosting.

Share this post


Link to post
Share on other sites
28 minutes ago, bbnicu said:

Hello, did you solve it, i have a new hosting, and this problem, happened to me too.

same page i have loaded on other server and working ok.

On this server PHP Version 5.6 , 7.2, 7.3 and nothing works, i thik it is something from hosting.

post url and community can review/provide feedback.

Share this post


Link to post
Share on other sites

Hi,

I have the same problem on version 1.7.5.2. It happens that for some requests Prestashop does not load media, Css and JavaScript.

 

2020-03-11_9-44-54.jpg

Share this post


Link to post
Share on other sites

i cloned the source from git and had same problem with 1.7.7.0 develop branch.
you need to install php, javascript and css dependencies as they are not included in the git repo.

this is the related link to documentation: https://devdocs.prestashop.com/1.7/basics/installation/#download-dependencies

to install PHP dependencies, go into root folder of the project and run below commands in terminal(Composer required):

cd /path/to/prestashop
composer install
# or alternatively, since 1.7.8:
make composer

for Javascript and CSS(NodeJS required):

cd /path/to/prestashop
make assets

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More