Moodle 1.5.2 - XHTML Validation problem

Moodle 1.5.2 - XHTML Validation problem

by IvaN LAM -
Number of replies: 9
Hi all,

I am new to moodle.  I have just installed version 1.5.2 on my Linux server.  When I tried to validate the XHTML, BEFORE I login to moodle, the validation success.  However, AFTER I've logged into moodle, I've got the following error message, "No DOCTYPE found! Attempting validation with XHTML 1.0 Transitiona". "No Character Encoding Found! Falling back to UTF-8."

Have I done anything wrong? mixed
Cheers,
IvaN
Average of ratings: -
In reply to IvaN LAM

Re: Moodle 1.5.2 - XHTML Validation problem

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
It does not sound like you have done anything wrong. When I have seen something similar it is usually a configuration issue with the webserver.  In your apache setup you may want to do some reading on AddCharset and AddType so that the server sends the information in the page header.
In reply to Anthony Borrow

Re: Moodle 1.5.2 - XHTML Validation problem

by IvaN LAM -
Hi Anthony,

Thanks for your reply!  However, I want to ask, if it's the problem of the server, why I can pass the validation in the first time, before I login to moodle? black eye

My site link: http://144.214.180.55/moodle

Thanks,
IvaN smile

In reply to IvaN LAM

Re: Moodle 1.5.2 - XHTML Validation problem

by Guillaume Gautreau -
How did you try to validate the code ?
In reply to Guillaume Gautreau

Re: Moodle 1.5.2 - XHTML Validation problem

by IvaN LAM -
Hi Guillaume,

I 've tried using two methods.
  1. Turn on the Debug function, and then use the "validate XHTML" link at the bottom part of the page.
  2. I used the Web Developer plugin tools in Firefox.
Any idea?
Thanks!
IvaN
In reply to IvaN LAM

Re: Moodle 1.5.2 - XHTML Validation problem

by Guillaume Gautreau -
Ok, try to validate the website by copy/paste of the XHTML code after you logged in.
I think that the validator is not allowed to access the same page as you when it tries to access the site.
In reply to Guillaume Gautreau

Re: Moodle 1.5.2 - XHTML Validation problem

by IvaN LAM -
Hi Guillaume,

It works!  It pass the validation when I just copy and paste the XHTML code into the validator.  However, is there any possible way that I can solve it?  or is it related to the login mechanism?

Cheers!


In reply to IvaN LAM

Re: Moodle 1.5.2 - XHTML Validation problem

by John Papaioannou -
The solution is here: simply create a user with the username "w3cvalidator". smile
In reply to John Papaioannou

Re: Moodle 1.5.2 - XHTML Validation problem

by IvaN LAM -
Hi Jon,

Thanks for your tips! It works now ! big grin