Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    179
    Plugin Contributions
    0

    Default Markup Validation

    It appears that my pages are having problems with markup validation. For instance:

    http://validator.w3.org/check?uri=ht...alidator%2F1.3

    I'm wanting to resolve some of these errors but I'm unsure of how or where to even look to. Any advice?

    Thanks in advance....

  2. #2
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,927
    Plugin Contributions
    3

    Default Re: Markup Validation

    Core zencart will validate (in general). Problems occur when you start tinkering with code, build define pages and ezpages with bad HTML, install addons that are not well-built, fool about with SEO URL nonsense...)
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  3. #3
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    179
    Plugin Contributions
    0

    Default Re: Markup Validation

    well so being that this is a product page, how do I got about fixing this? is it simply a template modification? i don't really have a lot of additional add-ons or customizations. what steps would one take to resolve these problems?

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,369
    Plugin Contributions
    0

    Default Re: Markup Validation

    Many of those errors are "cascade" errors. That is, the first error triggers a second one which triggers a third one, and so on. From what I can see the first error is just an incorrect closing tag in one of the head tags...

    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

    So find where you put the code for the favicon, fix it with the correct closing for the XHTML doctype, then redo the validation. It should be...
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />

    Note the addition of a space and a slash at the end of the bracket. (The space is also needed to fix several other errors.)

    Fix the next one at the top of the list, and so on. most of the errors will magically disappear after you fix the first few. (Don't worry about the ampersand ones. Yes, technically they're errors, but they won't have any effect on anything else.)

    Rob
    Breakfast: the most important donut of the day.

  5. #5
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    179
    Plugin Contributions
    0

    Default Re: Markup Validation

    hey, thanks. that's def helpful. and appreciated!

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,974
    Plugin Contributions
    0

    Default Re: Markup Validation

    Quote Originally Posted by rstevenson View Post
    Many of those errors are "cascade" errors. That is, the first error triggers a second one which triggers a third one, and so on. From what I can see the first error is just an incorrect closing tag in one of the head tags...

    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

    So find where you put the code for the favicon, fix it with the correct closing for the XHTML doctype, then redo the validation. It should be...
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />

    Note the addition of a space and a slash at the end of the bracket. (The space is also needed to fix several other errors.)

    Fix the next one at the top of the list, and so on. most of the errors will magically disappear after you fix the first few. (Don't worry about the ampersand ones. Yes, technically they're errors, but they won't have any effect on anything else.)

    Rob
    CORE zencart deals with the FAVICON automatically and properly:
    PHP Code:
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>
    ... so if you are getting errors here, then your custom template has HARD-CODED this into the HTML header. The fact that this has been "manually adjusted" at some point, would make me suspicious about other possible "hard coding" has occurred.

    I would be concerned about things like this. There is NO NEED to manually adjust the FAVICON coding, and the fact that it HAS been adjusted, indicates that the person adjusting it has a poor understanding of some of the fundamentals of ZC. Other tinkering may have gone on...

 

 

Similar Threads

  1. W3C Markup Validation Errors Help
    By mw4kids in forum General Questions
    Replies: 3
    Last Post: 12 Nov 2009, 05:04 AM
  2. validation markup issue
    By Goofster in forum General Questions
    Replies: 5
    Last Post: 9 Jul 2008, 03:17 PM
  3. Markup Validation Error from Reward mod?
    By imperialis in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 May 2008, 06:30 AM
  4. W3C Markup Validation question
    By MCanes in forum General Questions
    Replies: 1
    Last Post: 1 Mar 2008, 08:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •