Super8Man Posted March 2, 2006 Share Posted March 2, 2006 I have something very strange and do not see an explanation for it. I use a windows server and know this creates problems with the paths but i do not see how this could effect the stylesheets. First off all the stylesheet is in the catalog directory so stylesheet.css should be sufficiant for it to work. Now comes the strange part. In firefox the stylesheets work but at Internet Explorer they do not. As far as i know if it is a path problem it shouldn't work in both of the browsers as the problem would be at php and not html. How can give me the reason why firefox en IE react different and how could i solve it? Thanks Link to comment Share on other sites More sharing options...
♥Vger Posted March 2, 2006 Share Posted March 2, 2006 Firefox has better error handling than IE - and Firefox will 'guess' at what a pathway should be while IE won't. Check your configure.php files because it's my guess that no data, other than MySQL data, was written to them during the install procedure. Vger Link to comment Share on other sites More sharing options...
Super8Man Posted March 3, 2006 Author Share Posted March 3, 2006 What kind of data wouldn't it have then? I looked at the configure file and as far as i can see it has everything it needs, the thing is that if i look at the source (in IE) of www.mysite/catalog/index.php the path is correct: <link rel="stylesheet" type="text/css" href="stylesheet.css"> this is when i open www.mysite/catalog and the stylesheet is under the catalog directory, when i type www.mysite/catalog/stylesheet.css it downloads the stylesheet so it should work. I really don't understand why IE has problems with it, it should just use the stylesheet. I find this the most strange error i ever came across. Anyone has an idea what could be wrong? Thanks Link to comment Share on other sites More sharing options...
♥Vger Posted March 3, 2006 Share Posted March 3, 2006 It (Internet Explorer) doesn't use the stylesheet because it can't find the website pathway data in the configure.php files. You need to add the data manually to the two configure.php files. There is a thread in the Tips & Tricks forum on setting up your configure.php files manually. Vger Link to comment Share on other sites More sharing options...
boxtel Posted March 3, 2006 Share Posted March 3, 2006 What kind of data wouldn't it have then? I looked at the configure file and as far as i can see it has everything it needs,the thing is that if i look at the source (in IE) of www.mysite/catalog/index.php the path is correct: <link rel="stylesheet" type="text/css" href="stylesheet.css"> this is when i open www.mysite/catalog and the stylesheet is under the catalog directory, when i type www.mysite/catalog/stylesheet.css it downloads the stylesheet so it should work. I really don't understand why IE has problems with it, it should just use the stylesheet. I find this the most strange error i ever came across. Anyone has an idea what could be wrong? Thanks bet your <base href> tag is wrong Treasurer MFC Link to comment Share on other sites More sharing options...
Super8Man Posted March 3, 2006 Author Share Posted March 3, 2006 i can believe my configure files aren't 100% but at the end it is still a very strange error as if i look at the html source file the path to the stylesheet IS correct and SHOULD work. Anyway thanks for the help i'll check the thread in the tips and tricks forum out after the weekend. So i don't need to search the thread monday again: http://www.oscommerce.com/forums/index.php?showtopic=193738 Link to comment Share on other sites More sharing options...
Super8Man Posted March 6, 2006 Author Share Posted March 6, 2006 It works!!!! Thanks for helping me out! although i still don't understand how this could have made it not works as php just makes html pages and if the html is correct it should be shown correct. Anyway thanks again! Link to comment Share on other sites More sharing options...
Guest Posted November 28, 2006 Share Posted November 28, 2006 I've fixed this issue. I was having a large problem where IE wouldn't display the images and icons, but Firefox and Safari did. This got me to playing around with the configure.php file. I was able to make the images appear in IE by putting the fully qualified path in for images and icons, however, the stylesheet wasn't being recognized by IE. After a couple of hours of playing around with conifgure.php, I was able to get it working in both IE and Firefox/Safari, and all the links were correct. Note: I do not use SSL: Note: My OScommerce site is installed in the /cart/ directory. Here's the relevant part of my includes/configure.php define('HTTP_SERVER', 'http://www.mydomain.com/'); [NOTICE the trailing / (slash)] define('HTTPS_SERVER', 'http://www.mydomain.com/'); [NOTICE it points to http and not https] define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'http://www.mydomain.com'); define('HTTP_COOKIE_PATH', 'http://www.mydomain.com/cart/'); define('HTTPS_COOKIE_PATH', 'http://www.mydomain.com/cart/'); define('DIR_WS_HTTP_CATALOG', 'cart/'); define('DIR_WS_HTTPS_CATALOG', 'cart/'); define('DIR_WS_IMAGES', 'http://www.mydomain.com/cart/images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'http://www.mydomain.com/cart/icons/'); Important NOTES: 1. Make sure you have the trailing slash on the http server line 2. You must use your http://www.mydomain.com in the HTTPS server line 3. HTTP_CATALOG should be 'cart/' and not '/cart' If you don't set it up exactly like this, one of the following will break. 1. The links on your site will have the wrong URL such as http://www.mydomain.comhttp://www.mydomain.com 2. The Stylesheet won't be recognized by IE Hope this helps someone. Link to comment Share on other sites More sharing options...
Guest Posted November 28, 2006 Share Posted November 28, 2006 Actually, I you leave out the full path on the images and icons line it will also work, and the images and icons will also show in IE. My original problem was that 1. I did not have the trailing slash at the end of the HTTP server line. 2. I did not have the http://www.mydomain.com/ in the HTTPS server line. Link to comment Share on other sites More sharing options...
boxtel Posted November 28, 2006 Share Posted November 28, 2006 I've fixed this issue. I was having a large problem where IE wouldn't display the images and icons, but Firefox and Safari did. This got me to playing around with the configure.php file. I was able to make the images appear in IE by putting the fully qualified path in for images and icons, however, the stylesheet wasn't being recognized by IE. After a couple of hours of playing around with conifgure.php, I was able to get it working in both IE and Firefox/Safari, and all the links were correct. Note: I do not use SSL: Note: My OScommerce site is installed in the /cart/ directory. Here's the relevant part of my includes/configure.php define('HTTP_SERVER', 'http://www.mydomain.com/'); [NOTICE the trailing / (slash)] define('HTTPS_SERVER', 'http://www.mydomain.com/'); [NOTICE it points to http and not https] define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'http://www.mydomain.com'); define('HTTP_COOKIE_PATH', 'http://www.mydomain.com/cart/'); define('HTTPS_COOKIE_PATH', 'http://www.mydomain.com/cart/'); define('DIR_WS_HTTP_CATALOG', 'cart/'); define('DIR_WS_HTTPS_CATALOG', 'cart/'); define('DIR_WS_IMAGES', 'http://www.mydomain.com/cart/images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'http://www.mydomain.com/cart/icons/'); Important NOTES: 1. Make sure you have the trailing slash on the http server line 2. You must use your http://www.mydomain.com in the HTTPS server line 3. HTTP_CATALOG should be 'cart/' and not '/cart' If you don't set it up exactly like this, one of the following will break. 1. The links on your site will have the wrong URL such as http://www.mydomain.comhttp://www.mydomain.com 2. The Stylesheet won't be recognized by IE Hope this helps someone. with a name like "cookie" you should know that there is no "http://" in cookie domains (or paths) Treasurer MFC Link to comment Share on other sites More sharing options...
naylwin Posted November 28, 2006 Share Posted November 28, 2006 with a name like "cookie" you should know that there is no "http://" in cookie domains (or paths) Thanks, it helps alot!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.