Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
nubbin

OSCThumb causing many W3C validation errors

Recommended Posts

I installed OSCThumb v1.2 onto OSCrc2a a few weeks ago.

 

I thought it was all working ok until I ran the home page through the W3C validator.

 

I am getting nearly 150 validation errors when OSCThumb is switched on.

 

Many are like this:

#  Line 43, column 126: "1" is not a member of a group specified for any attribute
…g src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td>

# Line 50, column 85: "1" is not a member of a group specified for any attribute
… src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td>

# Line 56, column 85: "1" is not a member of a group specified for any attribute
… src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td>

 

It looks like the character 1 has somehow been mistakenly inserted near the end of each line

 

I would really appreciate it if someone could help me track down where this error is occurring and how to fix it.

 

Cheers

Share this post


Link to post
Share on other sites

I installed OSCThumb v1.2 onto OSCrc2a a few weeks ago.

 

I thought it was all working ok until I ran the home page through the W3C validator.

 

I am getting nearly 150 validation errors when OSCThumb is switched on.

 

Many are like this:

#  Line 43, column 126: "1" is not a member of a group specified for any attribute
…g src="images/pixel_trans.gif" border="0" alt="" width="11" height="14" 1></td>

# Line 50, column 85: "1" is not a member of a group specified for any attribute
… src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td>

# Line 56, column 85: "1" is not a member of a group specified for any attribute
… src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1" 1></td>

 

It looks like the character 1 has somehow been mistakenly inserted near the end of each line

 

I would really appreciate it if someone could help me track down where this error is occurring and how to fix it.

 

Cheers

 

I've discovered the errors shown above are not caused by OSCThumb. But, I cannot work out which part of the code is creating this HTML and how the erroneous 1 is getting inserted.

Please can someone explain where I should be looking for the bug.

Thanks

Share this post


Link to post
Share on other sites

In these functions in /catalog/includes/functions/html_output.php

 

function tep_draw_separator()

function tep_image()


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 >

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×