XHTML Validation Failure

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
asim

XHTML Validation Failure

Post by asim »

Hi,

After putting my site live I have found that it has about 53 XHTML Errors. I fixed some of the more simple ones, however I'm having great trouble fixing the ones that involve my tags used on my menu, as you'll see in the validation check below. I was wondering if there was anyone out there who could lend a helping hand in fixing and making my site XHTML valid.

Here is the site: http://www.jenniemarshtrust.org

Here is the XHTML Validation page: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jenniemarshtrust.org%2F&charset=%28detect+automatically%29&doctype=Inline

Thank you!
Last edited by asim on Sat May 12, 2007 10:07 am, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: XHTML Validation Failure

Post by tsw »

It seems that your menu li's miss

what menu template are you using
asim

Re: XHTML Validation Failure

Post by asim »

Hi,

I'm using the template: cssmenu.tpl

Yes I thought as much, I tried adding closing TAGS, but I only broke the menu, so I returned to my default version of cssmenu.tpl. I don't understand why the validation should fail on the menu as I never made any changes to the cssmenu.tpl template originally, I only styled my CSS to get the menu/nav looking as it does.

I'm at a dead-end here, so any light on how to resolve this issue would exteremely welcomed.

Thank you.
Last edited by asim on Sun May 13, 2007 6:54 am, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: XHTML Validation Failure

Post by tsw »

probably your cssmenu.tpl is broken for some reason.

get the default menu to fix the validation issue and then check that your css is correct for that menu.
asim

Re: XHTML Validation Failure

Post by asim »

Hi TSW,

Apologies, but I seem not to be understanding what could be possibly going wrong. In my Menu Manager I have one "Database Template" which is called "cssmenu.tpl" this is the default template I have not made a single change to this. In my Layout Templates I'm calling:

Code: Select all

<!-- Start Navigation -->
      <div id="sidebar">
         <h2 class="accessibility">Navigation</h2>
         {menu template='cssmenu.tpl'}
      <hr class="accessibility" />
      </div>
<!-- End Navigation -->
So this tells me that the menu template being called is "cssmenu.tpl" - which I have not made any changes to. So I'm not understanding what I should be correcting or fixing.

I'm pretty new to PHP and CMSMS in general, so I'd appreciate your help, step by step if possible  :)

Thank you
asim

SOLVED: XHTML Validation Failure

Post by asim »

Hi,

I have no idea why this occured in the first place, however I copied my "Menu Manger" folder from the "Modules" folder back over, from my local version to the one on my host and that seems to have corrected the problem.

Thanks
Pierre M.

Re: XHTML Validation Failure

Post by Pierre M. »

Hello,

I think this is what tsw was asking for. See http://wiki.cmsmadesimple.org/index.php/FTP_program
Files can be corrupted while expanding or transfering them.
Have fun

Pierre M.
moorezilla

Re: XHTML Validation Failure

Post by moorezilla »

I don't know if this will help, but check to make sure your li's are nested correctly. Whenever I fire validation errors on ul's or ol's, this is usually the problem. So if you're nesting them, I'd check this.

Code: Select all

<ul>
       <li>Item
                   <ul><li>nested item</li></ul>
        </li>
</ul>
Locked

Return to “CMSMS Core”