Zen Cart Logo
Forums / General Questions / Validation Errors - can't seem to fix

Validation Errors - can't seem to fix

Locked

Views: 2,618

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
30 Jan 2008, 1:54 PM
#1
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Validation Errors - can't seem to fix

I am trying to validate my site and can not figure out the last error(s). Can anyone point me in a direction. I have corrected some of the errors, but they seem to be valid tags and such, because after I correct them I get new errors or it breaks the cart.:lamo:

Any help is GREATLY appreciated!

**XHTML validation errors**

30 Jan 2008, 2:30 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

When using an online Validator they usually provide an Option to 'Show Source'. You need to choose that option then Revalidate.

In your case, you can see the first error mentioned (line 249) which includes this error:

Line 249, Column 5: end tag for "td" omitted, but OMITTAG NO was specified .

245 <div/>
246 </div>
247 <!--// eof: ccaccept //-->
248
249 </div></td>

After correcting the above, you may have to check further to correct other errors.

30 Jan 2008, 2:54 PM
#3
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

Website Rob:

When using an online Validator they usually provide an Option to 'Show Source'. You need to choose that option then Revalidate.

In your case, you can see the first error mentioned (line 249) which includes this error:

Line 249, Column 5: end tag for "td" omitted, but OMITTAG NO was specified .

245 <div/>
246 </div>
247 <!--// eof: ccaccept //-->
248
249 </div></td>

After correcting the above, you may have to check further to correct other errors.
Thank you for your help. I found the view source and I am glad you mentioned Line 249. I can not find where it is getting that from! I have looked everywhere used the Developers Tool Kit and I am at a brick wall! What file is that in? Thanks again!

30 Jan 2008, 3:51 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Validation Errors - can't seem to fix

Try taking your code in tpl_cc_accept.php:

$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<img id="ccVisa" class="cc_img" src="images/cc_logos/logo_ccVisa.gif" alt="Visa" />' . "\n" .
            '<img id="ccAmex" class="cc_img" src="images/cc_logos/logo_ccAmex.gif" alt="American Express" />' . "\n" .
            '<img id="ccDiscover" class="cc_img" src="images/cc_logos/logo_ccDiscover.gif" alt="Discover" />' . "\n" .
            '<img id="ccMC" class="cc_img" src="images/cc_logos/logo_ccMC.gif" alt="Mastercard" />' . "\n" .
            '<img id="ccPaypal" class="cc_img" src="images/verification_seal_paypal.gif" alt="Paypal" />' . "\n" .
			'<img id="ssllogo" class="cc_img"  src="images/ssllogo.gif" alt="Secured with Rapid SSL" />' . "\n".
			'</div>' . "\n".
			'</div>' . "\n".
			'<img id="weacceptbuttonclear" class="cc_img"  src="images/weacceptbuttonclear.gif" alt="We Accept Mommy Perks" />' . "\n";
$content .= '<div/>' . "\n";
?>

and replace with:

$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<img id="ccVisa" class="cc_img" src="images/cc_logos/logo_ccVisa.gif" alt="Visa" />' . "\n" .
	'<img id="ccAmex" class="cc_img" src="images/cc_logos/logo_ccAmex.gif" alt="American Express" />' . "\n" .
	'<img id="ccDiscover" class="cc_img" src="images/cc_logos/logo_ccDiscover.gif" alt="Discover" />' . "\n" .
	'<img id="ccMC" class="cc_img" src="images/cc_logos/logo_ccMC.gif" alt="Mastercard" />' . "\n" .
	'<img id="ccPaypal" class="cc_img" src="images/verification_seal_paypal.gif" alt="Paypal" />' . "\n" .
	'<img id="ssllogo" class="cc_img"  src="images/ssllogo.gif" alt="Secured with Rapid SSL" />' . "\n".
	'<img id="weacceptbuttonclear" class="cc_img"  src="images/weacceptbuttonclear.gif" alt="We Accept Mommy Perks" />' . "\n";
$content .= '<div/>';
?>

Do this to a copy > upload and see what results

30 Jan 2008, 4:02 PM
#5
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

Thanks Kobra, but no luck. I did find it is pulling the line 249 from the tpl_main_page.php file. But I replaced my tpl_main_page.php file with a new zc file there is still no change.
Kuroi suggested that some of my errors are from a align tag in the middle of my site. But I can't find one?
Thanks everybody!

30 Jan 2008, 6:37 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

Fixing the previous error(s) now shows only one left.

Line 263, Column 155: end tag for element "a" which is not open .

…>Zen Cart</a>. Powered by Zen Cart</a></div>

<!--bof- site copyright display -->

<div id="siteinfoLegal" class="legalCopyright">Copyright © 2008 <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. Powered by Zen Cart</a></div>

<!--eof- site copyright display -->

Fix that and you should be good to go.

30 Jan 2008, 8:04 PM
#7
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

Thank you so much for all your help! Do you really show that I have no more errors? I still show 6 on line 294 </body></html> Not knowing much about this stuff, I have tried everything and can not get it accept anything.
Thanks a million!

30 Jan 2008, 10:15 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

For whatever reason, you ended up missing two closing DIV tags.

Presuming you have this file:
includes/templates/your_template/common/tpl_main_page.php

Edit the bottom to add two tags:

<!--eof- banner #6 display -->

</div>

</div> </body>
30 Jan 2008, 11:29 PM
#9
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

You are awesome!! Thanks a MILLION!!!! I was sure that I was going to be bald before I got that done!!!:clap:

31 Jan 2008, 12:36 AM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

You're welcome for the help but it was a team effort after all. :smile:

31 Jan 2008, 1:26 AM
#11
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

Oh definitely! I wouldn't have been able to build this cart and at least start to make a living without everyone here!:smile:

19 Jul 2008, 1:09 PM
#12
romy avatar

romy

New Zenner

Join Date:
May 2007
Location:
york, pa
Posts:
98
Plugin Contributions:
0

Re: Validation Errors - can't seem to fix

Help,I get syntex error on my site elephat. net line2 char1..I validated my site I get 69 errors ..fixed some but can't figure out the rest.
The & symble seems to be some of them. My question is how do I find the pages to fix the errors? Any help ...Thanks.