abbott75 Posted March 18, 2010 Share Posted March 18, 2010 I can't seem to get the style sheet to work in IE. My site is here. The home page seems to work, but no other pages. It is fine in Firefox and Safari, bit not IE. Any help would be appreciated, Thanks. Adam Link to comment Share on other sites More sharing options...
abbott75 Posted March 19, 2010 Author Share Posted March 19, 2010 Could anybody please help? Thanks Link to comment Share on other sites More sharing options...
spooks Posted March 19, 2010 Share Posted March 19, 2010 Could anybody please help? Thanks Works fine for me in ie7, have you tried reseting youir cache? Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
abbott75 Posted March 19, 2010 Author Share Posted March 19, 2010 Works fine for me in ie7, have you tried reseting youir cache? The homepage works fine. It is the catalog pages that don't work. IE is calling up "/catalog/index.php/stylesheet.css" rather than "/catalog/stylesheet.css" and I can't figure out how to fix it. Adam Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2010 Share Posted March 19, 2010 Couple of things. This is at the top of your index pages source code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <br> </body> </html> You might want to check that and remove it. Secondly go to Admin-->Configuration. Click on Use Search Engine Safe URLs and set to false. Link to comment Share on other sites More sharing options...
abbott75 Posted March 19, 2010 Author Share Posted March 19, 2010 When I look at the source through FireFox I see what you have told me to remove, however it isn't there when I do the code editor to remove it ??? Also Search engine safe URLS is turned off. Any other ideas? I know the problem is that IE is looking in the wrong place for the .css file, but I can't figure out how to fix it. It is fine in every other browser but IE... Couple of things. This is at the top of your index pages source code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <br> </body> </html> You might want to check that and remove it. Secondly go to Admin-->Configuration. Click on Use Search Engine Safe URLs and set to false. Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2010 Share Posted March 19, 2010 Did you install one of the header tags contributions? If so go back over the install and make sure you did everything it said. Link to comment Share on other sites More sharing options...
MrPhil Posted March 19, 2010 Share Posted March 19, 2010 Somewhere your index.php (and possibly other files) has been modified to output that superfluous empty page at the top. That's the first thing to address. It certainly could be giving IE an upset tummy and causing it to ignore certain things later on (such as the "base" tag). I see that your links to other pages use some form of SEO. They are http://fullscale.com.au/catalog/index.php/page-specific-stuff. Is this the intended result? All the images seem to use the proper path to your images directory. You've got what appears to be a correct "base" tag: <base href="http://fullscale.com.au/catalog/"> and combined with the stylesheet link: <link rel="stylesheet" type="text/css" href="stylesheet.css"> ought to send any browser looking for http://fullscale.com.au/catalog/stylesheet.css. That's where it appears to be, and Firefox finds it correctly. Your problem is that IE seems to be ignoring the "base" setting, and gluing together the page "address" (actually, SEO-ized): http://fullscale.com.au/catalog/index.php plus stylesheet.css gives http://fullscale.com.au/catalog/index.php/stylesheet.css which doesn't exist, and .htaccess isn't rewriting it to normal mode (without index.php). Are you running IE8? If so, try putting it in IE7 emulation mode. There are a lot of broken things in IE8. You might try putting the IE7 emulation tag in your .php files: http://www.oscommerce.com/forums/topic/352905-ie8-google-oscommerce-problem/page__view__findpost__p__1479206 and http://www.oscommerce.com/forums/topic/347247-tep-image-button-problem-with-internet_explorer/page__gopid__1449869entry1449869 . Be aware that Microsoft has apparently broken this fix in some IE8 releases, so it may not work for you. After removing the "empty page", if no one can figure out why IE is ignoring the "base" tag setting, a workaround might be to do some redirection in your .htaccess file. If a request comes in for a .css file, remove "index.php/" from the URL and use that. Something like RewriteEngine On RewriteRule ^catalog/index\.php/(.*)\.css$ /catalog/$1.css [NC,R=302] That might work. Link to comment Share on other sites More sharing options...
Leightong Posted April 25, 2010 Share Posted April 25, 2010 Somewhere your index.php (and possibly other files) has been modified to output that superfluous empty page at the top. That's the first thing to address. It certainly could be giving IE an upset tummy and causing it to ignore certain things later on (such as the "base" tag). I see that your links to other pages use some form of SEO. They are http://fullscale.com.au/catalog/index.php/page-specific-stuff. Is this the intended result? All the images seem to use the proper path to your images directory. You've got what appears to be a correct "base" tag: <base href="http://fullscale.com.au/catalog/"> and combined with the stylesheet link: <link rel="stylesheet" type="text/css" href="stylesheet.css"> ought to send any browser looking for http://fullscale.com.au/catalog/stylesheet.css. That's where it appears to be, and Firefox finds it correctly. Your problem is that IE seems to be ignoring the "base" setting, and gluing together the page "address" (actually, SEO-ized): http://fullscale.com.au/catalog/index.php plus stylesheet.css gives http://fullscale.com.au/catalog/index.php/stylesheet.css which doesn't exist, and .htaccess isn't rewriting it to normal mode (without index.php). Are you running IE8? If so, try putting it in IE7 emulation mode. There are a lot of broken things in IE8. You might try putting the IE7 emulation tag in your .php files: http://www.oscommerce.com/forums/topic/352905-ie8-google-oscommerce-problem/page__view__findpost__p__1479206 and http://www.oscommerce.com/forums/topic/347247-tep-image-button-problem-with-internet_explorer/page__gopid__1449869entry1449869 . Be aware that Microsoft has apparently broken this fix in some IE8 releases, so it may not work for you. After removing the "empty page", if no one can figure out why IE is ignoring the "base" tag setting, a workaround might be to do some redirection in your .htaccess file. If a request comes in for a .css file, remove "index.php/" from the URL and use that. Something like RewriteEngine On RewriteRule ^catalog/index\.php/(.*)\.css$ /catalog/$1.css [NC,R=302] That might work. Hi There! This is my first post here. I am really new to PhP and OsCommerce. I have this exact same problem at the moment : www.thehouseofmagic.co.uk The front page is fine, however when I click on a product category on the left, I lose the stylesheet and pictures. The pages look fine when using Chrome or Firefox. I have absolutely no idea what is causing this issue so any help at all would be greatly appreciated. Thanks. Leighton Link to comment Share on other sites More sharing options...
germ Posted April 26, 2010 Share Posted April 26, 2010 In your Admin, set 'Use Search-Engine Safe URLs (still in development)' to false. Save it. Sometimes you have to set 'Use Cache' to false (or better yet clear the cache) to see any change. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
dandelion Posted April 26, 2010 Share Posted April 26, 2010 When I view your source code it shows two heads check your files to see if you have replicated this in the index and the header.php files. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <br> </body> </html> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Full Scale Marine Life - Online Marine Fish and Coral Store</title> <base href="http://fullscale.com.au/catalog/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.