WaterSoftenerCentre Posted February 24, 2014 Share Posted February 24, 2014 My newly installed prestashop 1.5.6.2 and login page seem to have no CSS styling, just plain unformatted text. Also the back office dropdown menu is permanently dropped down and very difficult to navigate. There is a spinning loading gif permanently present. See attached pictures. I unzipped locally and uploaded by FTP. Permissions were 777. It is installed in a temporary domain until testing is completed which is:- http://shop.thewatersoftenercentre.com.temporary-domain.com/index.php I have pulled down, deleted the database and started again three times now, but still no CSS styling. Any ideas anybody? Thanks. Link to comment Share on other sites More sharing options...
vekia Posted February 24, 2014 Share Posted February 24, 2014 it's because of "base uri" var baseUri = 'http://shop.thewatersoftenercentre.com.temporary-domain.com/index.php'; are you able to open preferences > seo & urls tab in your back office? if so, please check your base_uri field, it should be defined as "/" not as an url to index page Link to comment Share on other sites More sharing options...
WaterSoftenerCentre Posted February 24, 2014 Author Share Posted February 24, 2014 Okay, I checked and the base_uri is "/". Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 24, 2014 Share Posted February 24, 2014 This looks like a problem with write permissions for your htaccess file. You can try setting permissions directly to the file but some hosts override permissions on htaccess and you must get them to set permissions on the htaccess file for you. That said if I try to load, http://shop.thewatersoftenercentre.com.temporary-domain.com/themes/default/css/global.css I receive this error, ---------------------------------------- WebsitePanel IIS Modules Error AuthName directive not found. File: C:\HostingSpaces\Ensign\shop.thewatersoftenercentre.com\wwwroot\themes\.htaccess ----------------------------------------- So it looks like you are using a Microsoft windows IIS server and it will ignore htaccess. IIS uses a file called web.config and you must configure it yourself. In short, if you are planning to use a windows based server in the future than continue on and learn about that environment. But if you plan to move to regular Linux hosting than perhaps you should find another way to practice. You can download and install an Apache web server for example. Don't get me wrong, I use Windows Server myself, but I install a module that can directly use htaccess. Link to comment Share on other sites More sharing options...
WaterSoftenerCentre Posted February 25, 2014 Author Share Posted February 25, 2014 Bill you are spot on. I am using a windows IIS server. My hosting support have written a single IIS rewrite rule in a web.config file for the themes folder and I can now see CSS styling, although it is still missing some images. They say that there are over 20 more .htaccess files in PS and that if I want them to write custom rules for all of them they will charge for it. A question they asked is, is there a version of Prestashop that is designed specifically to run on a windows IIS server. I presume this means a version with web.config files instead of .htaccess files. Anyone know? Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 25, 2014 Share Posted February 25, 2014 I have not yet found any software that works directly with IIS web.config. Also the problem isn't Windows or IIS. It is your "host". For example even on a Linux based host, if the proper module is not installed you miss out on features like friendly URLS. So if your host is not willing to install a very basic module, you need a new host. Because if you want a blog and install WordPress, you will have the same problem you have now. The IIS server can use htaccess if the proper module is installed. That is the best solution. I have attached a web.config file (make sure you rename the one you have now in case you need to revert back. This web.config is setup for Friendly URLS. You can turn on this feature in back office Preferences > SEO & URLs. It may give a message that it can't find a module, just ignore that. This web.config may not work, but it might. Regardless, it would get you most of the way there and your host guy should be able to tweak it without too much effort. web.zip 2 Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 25, 2014 Share Posted February 25, 2014 Also I should add, you only need one web.config file located in your Prestashop directory. You don't need to put one in all sub directories. Link to comment Share on other sites More sharing options...
Juanmax Posted March 25, 2014 Share Posted March 25, 2014 Good Work Thx. 1 Link to comment Share on other sites More sharing options...
dtr2000 Posted May 7, 2014 Share Posted May 7, 2014 Thanks bill for post #6 your code finally sorted my problem!! Cheers!! 1 Link to comment Share on other sites More sharing options...
MauroG Posted July 7, 2014 Share Posted July 7, 2014 I have the same problem but on the last version (1.6.0.8). I tried the file web.config but nothing. Are there different rules for Rewrite url between 1.5.6.2 and 1.6.0.8? Link to comment Share on other sites More sharing options...
ahpl Posted February 15, 2015 Share Posted February 15, 2015 (edited) Hi. Want to try Prestashop on home.pl and as I see problem like this on start, it doesn`t look as a friendly software. I have the same problem with last version 1.6.0.8 as well, and doesn`t work trick with web.config for me. I`m tired trying to find a reason. So maybe here some answer? It shouldnt be so difficult. Thanks. edited 17.02.2015: Answer for me is here: https://www.prestashop.com/forums/topic/331640-serwer-homepl-problemy-z-prestashop-rozjechany-szablon/ just change two files .htaccess: /themes/.htaccess /modules/.htaccess original content: <FilesMatch "\.tpl$">Deny from all</FilesMatch> new content: <Files ~ "\.tpl$">Deny from all</Files> Thanks vekia Edited February 17, 2015 by ahpl (see edit history) Link to comment 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