Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Some pages not working in Internet Explorer


Guest

Recommended Posts

Hi all,

 

I've got an oscommerce site - http://advancedkeyslimited.co.uk in development and for some reason any link that appears after the index.php (i.e http://advancedkeyslimited.co.uk/index.php/keys-remote-controls-c-6) doesn't load in  internet explorer .

 

In chrome & all other browsers It loads fine, but it's like its not loading the stylesheet for just those pages. If you go to http://advancedkeyslimited.co.uk/create_account.php in internet explorer it works fine?

 

Has anyone experienced this issue?

Link to comment
Share on other sites

Do you have any .htaccess processing that bypasses the normal SEO URL rewriting (e.g., to /index.php?catID=6 or whatever) for IE? You might try with the dynamic (non-SEO) URL directly to see if that eliminates the URL rewrite as the problem. Is this an IIS/Windows Server server (which by default ignores .htaccess) or Apache? I take it that it works fine on Firefox, Chrome, etc.

Link to comment
Share on other sites

Do you have any .htaccess processing that bypasses the normal SEO URL rewriting (e.g., to /index.php?catID=6 or whatever) for IE? You might try with the dynamic (non-SEO) URL directly to see if that eliminates the URL rewrite as the problem. Is this an IIS/Windows Server server (which by default ignores .htaccess) or Apache? I take it that it works fine on Firefox, Chrome, etc.

 

There are no rules in the htaccess file and It's an apache server. On every other browser it works perfectly. After a bit more delving into the code, it looks like internet explorer isn't adding a '/' to the various stylesheets and scripts when it loads the page. As soon I manually inspect the element and add a '/' to the beginning of the 'css/stylesheet.css' the stylesheet loads. Any ideas?

Link to comment
Share on other sites

So it's not just the URI you gave as an example, but any page? Or just those requiring rewriting (SEO format URIs)? I'd be surprised if only SEO URIs had the css/ instead of /css/ problem. Does your output HTML format file links correctly, or perhaps it needs a RewriteBase / command in the HTML for the benefit of IE? Later versions of IE can be very finicky about the HTML they'll accept.

Link to comment
Share on other sites

Could you clarify what you've done? Do you now have <base href=....> on each HTML page, per the browser's View > Page source? If so, do some pages work and others don't? Does the CSS link show as css/... on all pages, or /css/... on some? Is the problem only on pages with SEO style URIs, or not? There should be a place to add the <base> tag for all pages (a common header), and not just the index.php page. I seem to recall that there may even be an add-on to do the job. First make sure you're getting <base> on each page. 

Link to comment
Share on other sites

Hi, all i've done at the moment is add another base tag to index.php to see what would happen and it worked, but then the actual product_info.php doesn't.

 

Normally the base tag is controlled from my template-top.php file (see below)

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"/>

 

This works on all browsers but internet explorer. In the internet explorer code, the base tag exists at the top (exactly the same as in every other browser, but  if i edit the code and add a '/' at the beginning '/css/stylesheet.css' to the various stylesheets, then they load?

Link to comment
Share on other sites

Certainly, changes to index.php won't affect other 'top level' files such as product_info.php. template-top.php is used by all top level files, so you might want to look at why it is producing different results between index.php and product_info.php. Does it in fact look different between the two? Did someone perhaps change application_top.php so that $request_type is different between the two? How about admin vs. catalog -- any difference between those two, such as HTTP_SERVER or DIR_WS_CATALOG in the configure.php files or application_top.php files?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...