|
vee
|
 |
« on: January 15, 2008, 10:59:31 AM » |
|
Hi This could be a weird caching issue but on a site we are having problems with (osc post php upgrade) I cannot see the images or css when I view in IE (except card images in right side bar but they are called form a folder outside of the catalog folder) but can in firefox. Please could someone take a look in both IE and firefox and see if you can see the images in both or just one http://www.aircon4less.co.uk/catalog/index.phpcheers vee
|
|
|
|
|
Logged
|
|
|
|
|
Jeewhizz
|
 |
« Reply #1 on: January 15, 2008, 11:09:10 AM » |
|
<base href="">
Kill that.
At least, that's my bet
|
|
|
|
|
Logged
|
|
|
|
|
Mr Anderson
|
 |
« Reply #2 on: January 15, 2008, 11:15:34 AM » |
|
Is the right answer. It's causing IE to rewrite the links as though the images were located in the root, and then getting that wrong too, eg: http:///images/portable_frontpg3_price2v2.gif
|
|
|
|
|
Logged
|
|
|
|
|
vee
|
 |
« Reply #3 on: January 15, 2008, 11:16:35 AM » |
|
Cheers Jee,
Not sure where to start looking in the OSC stuff.
My other half (sponna) was looking at the mods needed on the osc shops when we upgraded from php4 to 5
Unfortunately he is away for a few days so I am trying to work out what he has done.
We have a couple of other shops working fine post the upgrade.
cheers
vee
|
|
|
|
|
Logged
|
|
|
|
|
Jeewhizz
|
 |
« Reply #4 on: January 15, 2008, 11:42:52 AM » |
|
In Osc, this is the line:
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
It's in almost all the files.
It looks like it's not picking up the configure.php files, and hence the borking...
|
|
|
|
|
Logged
|
|
|
|
|
vee
|
 |
« Reply #5 on: January 15, 2008, 11:55:58 AM » |
|
Cheers Jee,
I see it now - just not sure what to do about it.
I have been changing htaccess files following the upgrade - David thinks the mistake is there which seems likely just wierd IE and FF arre behaving differently.
Off to look at the htacccess files again..................
|
|
|
|
|
Logged
|
|
|
|
|
Charisma Bypass
|
 |
« Reply #6 on: January 15, 2008, 12:50:20 PM » |
|
configure.php make sure that these are correct; define('HTTP_SERVER', ''); define('HTTPS_SERVER', ''); Even if define('ENABLE_SSL', false); is false, the HHTTPS_SERVER one still matters - so if oyu are not using SSL on the website, fill it in anyway with the http:// address
|
|
|
|
|
Logged
|
|
|
|
|
vee
|
 |
« Reply #7 on: January 15, 2008, 01:31:02 PM » |
|
Hi
I have now realsied I have a bit more of a problem than I thought.
All my OSC stores on the same server have the same fault.
I think the htaccess files are not working.
Cheers for all the sugggestions -I have contacted out hosting company to see if they have b*****ed it up
cheers
vee
|
|
|
|
|
Logged
|
|
|
|
AndrewShanklin
Newbie

Posts: 23
|
 |
« Reply #8 on: January 15, 2008, 05:37:15 PM » |
|
Its a long shot... but i had something similar on a script i had problems with.
Firefox is cleverly designed so that if you enter a url into the address bar without .com / .co.uk etc... it auto corrects the url and links to the correct page. I think it also works the same with image urls etc...
I.E. does not have this function.
Therefore if you are using absolute url's in the <a href= and the url is ever so slightly wrong, Firefox will correct it and load the correct image. I.E will bork and the image will not be displayed.
Not sure if it is applicable in your situation but its worth checking.
Andy
|
|
|
|
|
Logged
|
|
|
|
|
vee
|
 |
« Reply #9 on: January 15, 2008, 07:09:42 PM » |
|
Hi guys
Thanks for all the replies.
You are right it is to do with base href.
For some reason all my osc stores have stopped generating one.
CAn anyone else confirm please that they do not seee the images in IE, Dave thinks it may have been because we did a microsoft update at the weekend and IE id misbehaving but I think thats a long shot.
cheers
vee
|
|
|
|
|
Logged
|
|
|
|
|
Jeep Stone
|
 |
« Reply #10 on: January 15, 2008, 09:22:50 PM » |
|
Nothing here for me with IE7 but see if FF.
One of the images on the homepage comes up as:
http:///images/portable_frontpg3_price2v2.gif
Looks like it's missing the URL
|
|
|
|
|
Logged
|
|
|
|
|
vee
|
 |
« Reply #11 on: January 15, 2008, 10:26:04 PM » |
|
Hi
Fixed with the help of some very nice gentlemen on the OSC forum
go to includes/application_top.php and where it says $request_type = (getenv('HTTPS') == 'on') try changing the "on" to "off"
It worked - should be OK in IE now. The base href is now being written.
thanks for all the helpful suggestions - you got me on the right track.
|
|
|
|
« Last Edit: January 15, 2008, 10:28:43 PM by vee »
|
Logged
|
|
|
|
|
sponna
|
 |
« Reply #12 on: January 16, 2008, 08:01:44 PM » |
|
cheers guys, Basically the generic secure cert on the server expired casuing the problem - we were unaware that this was ever an issue with application_top.php. Nasty! Thanks for helping my fraught other half!  Dave
|
|
|
|
|
Logged
|
up the down escalator...................
|
|
|
|