Luna Ryuko Posted February 12, 2019 Posted February 12, 2019 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. Share this post Link to post Share on other sites More sharing options...
Rhobur Posted February 17, 2019 Posted February 17, 2019 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 More sharing options...
Luna Ryuko Posted February 18, 2019 Posted February 18, 2019 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. 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 More sharing options...
Luna Ryuko Posted March 1, 2019 Posted March 1, 2019 bump I've updated to version 1.7.5.1 and it's still happening Share this post Link to post Share on other sites More sharing options...
bbnicu Posted November 19, 2019 Posted November 19, 2019 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 More sharing options...
PrestaHeroes.com Posted November 19, 2019 Posted November 19, 2019 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 More sharing options...
Rosi Posted March 11, 2020 Posted March 11, 2020 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. Share this post Link to post Share on other sites More sharing options...
vahid abdi Posted March 14, 2020 Posted March 14, 2020 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 More sharing options...
kamerman Posted July 15, 2021 Posted July 15, 2021 For those who have the same issue and already try this: delete cache check the table PREFIX_shop_url, the domain, domain_ssl and the physical_uri are correctly set. regenerate the file .htaccess by renaming the old file to .htaccess_old Disable friendly URL Enable friendly URL Try also to delete your navigator cookies (this was the fix for me on prestashop 1.7.7.5). But you can also check if you don't have (beta) page speed module enabled on the cPanel. Share this post Link to post Share on other sites More sharing options...
Milok Posted July 29, 2021 Posted July 29, 2021 I had the same problem and found a solution, that was trivial. For me, the problem was that the hosting had ssl set by default, and I didn't know about it. So I just turn on ssl on the website and the problem was solved. Share this post Link to post Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now