Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSCThumb causing many W3C validation errors


nubbin

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

Link to comment
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

Link to comment
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 >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...