Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[I NEED HELP] Error in Internet Explorer [A.S.A.P]


Chris82

Recommended Posts

Posted

Hello guys,

 

I really need your help bad.

I'm trying to get this webshop online before October 1st

and there's this problem. :'(

 

I'm running the webshop using STS (Simple Template System)

so I can customize the appearance easily. After a CLEAN install

of the webshop and STS it works fine in Firefox but I get an

error in Internet Explorer and I just can't figure out what the

problem is.

 

Here's a screenshot of the error box.

 

ie_error.jpg

 

It talking about the first character on line 2.

And here's the first few lines of code of product_info.php

 

<?php
/*
 $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);

 

 

The above is my MAIN problem, another problem I've got

has to do with how it looks in Internet Explorer. The infoboxes aren't

the same size and the background image that I used in the header

(with the breadcrubs over it) doesn't seem to display well.

 

See the red circles.

 

Internet Explorer view

 

ie_view.jpg

 

 

Firefox view

 

firefox_view.jpg

Posted

I tried to visit your website to see would I get the same error but you have it password protected.

Regards

Will

Posted

The first error is probably a javascript error. STS always shows a javacsript error, because javascript is not defined properly by it. You need to check out any javacsript used by STS and make sure it begins, or is referenced, like so:

 

<script language="javascript" type="text/javascript">

 

The first error on the page is caused by table borders being turned on in the template file.

 

I don't know what's causing the error in the right column, but the one in the lower left column can be cured by using a <br> command between the two words in includes/languages/dutch.php

 

Vger

Posted

Vger thanks for the tips worked on the appearance problems and got those to workout but still keeping that error. Checked all the Javascript just like you said..same thing.

Posted

In Firefox you have the javascript console which can display these errors too.

 

Surely when Javascript is refering to line numbers it is the lines you would get viewing source in your browser, not the php source code which the browser wouldn't see.

Posted
In Firefox you have the javascript console which can display these errors too.

 

Surely when Javascript is refering to line numbers it is the lines you would get viewing source in your browser, not the php source code which the browser wouldn't see.

 

True there's a error in sts_osc_javascript on line 9.

 

Error: missing } in XML expression
Source File: sts_osc_javascript.js
Line: 9, Column: 16
Source Code:
  submitter = 1;}

 

Don't get it all the tags seem to be neat and closed. :huh:

Archived

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

×
×
  • Create New...