Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stuck with Validation


alexpeterson

Recommended Posts

Posted

I'm in the process of validating the HTML for my OSCommerce store Cad & The Dandy.

 

As you can see there are 5 validation errors referring to the entity "osCsid". The osCsid parameter isn't anywhere in the html?!

 

No idea where to begin to tackle these issues. Any help and advice much appreciated.

 

Here are the validation results -

 

Validation Results

 

Muchos Gracias!!

 

Alex

________________

PIXEL AIR

Imaginative Interaction

Posted
As you can see there are 5 validation errors referring to the entity "osCsid". The osCsid parameter isn't anywhere in the html?!

Well, the osCsid ones are fairly easy and all generated by the same problem. It's the pesky & symbol being contained in the URL that it's complaining about. The URL should be like this...

...measurement.php?mode=intro&osCsid=...

not like this:

...measurement.php?mode=intro&osCsid=...

 

You should check includes/functions/html_output.php. The tep_href_link function should include the line:

$separator = '&';

and not

$separator = '&';

 

I'll have a quick look at the first error next. :)

Posted

As for the first error, I think it's complaining about the <span style="float:right;"> before the <h2>. Try changing it to <div style="float:right">, plus the closing </span> to </div> at the end of the line of course. :)

 

Also, the 2 <link> lines on 149 and 150, I think you need to put these between <head> and </head>. You've got them in the body section.

Posted
Well, the osCsid ones are fairly easy and all generated by the same problem. It's the pesky & symbol being contained in the URL that it's complaining about. The URL should be like this...

...measurement.php?mode=intro&osCsid=...

not like this:

...measurement.php?mode=intro&osCsid=...

 

You should check includes/functions/html_output.php. The tep_href_link function should include the line:

$separator = '&';

and not

$separator = '&';

 

I'll have a quick look at the first error next. :)

 

You absolute legend. This one is fixed!

________________

PIXEL AIR

Imaginative Interaction

Posted
As for the first error, I think it's complaining about the <span style="float:right;"> before the <h2>. Try changing it to <div style="float:right">, plus the closing </span> to </div> at the end of the line of course. :)

 

Also, the 2 <link> lines on 149 and 150, I think you need to put these between <head> and </head>. You've got them in the body section.

 

It's now decided to validate it. So ALL good. Just need to remove those <link> lines. They're there because they only apply to certain pages. The header is in an include you see. Anyway I'll sort that. Thanks for all your help!

________________

PIXEL AIR

Imaginative Interaction

Posted
It's now decided to validate it. So ALL good. Just need to remove those <link> lines. They're there because they only apply to certain pages. The header is in an include you see. Anyway I'll sort that. Thanks for all your help!

No problem. I was surprised myself when I came to validate all my pages just how many problems there were in the stock osC, let alone the contributions. I meant to catalog them all, but you know how it is... just didn't get around to it whilst trying to get my site up and running :)

Archived

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

×
×
  • Create New...