Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with W3C validation

Problem with W3C validation 4 years 7 months ago #542

  • hi700
  • hi700's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 4
  • Karma: 0
Any Time I can't validate my site www.hiwebdesign.de.

They wrote:
"A fatal error occurred when attempting to transcode the character encoding of the document. Either we do not support this character encoding ("none") yet, or you have specified a non-existent character encoding (often a misspelling).

The error was: Encoding not supported."

The Validator can't find the character encoding automatically. If I do this manually then its working.

But the, I have 1 Error and 2 Warnings.

This are:

Warnings:
1.Character Encoding Override in effect!

The detected character encoding "none" has been suppressed and "utf-8" used instead.

2.Warning Character Encoding mismatch!

The character encoding specified in the HTTP header (none) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (utf-8) for this validation.

Validation Output: 1 Error

Error Line 108, Column 10: ID "current" already defined

<li id="current" class="active item-435 level1 first "><a class="level1" href…


An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
Info Line 55, Column 10: ID "current" first defined here

<li id="current" class="active item-435 level1 first "><a class="level1" href…

How can I solve this error and warnings?
Thanks
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Problem with W3C validation 4 years 7 months ago #547

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,

The two warnings: relative to encoding, you can check the html code of <head> tag and make sure the meta is correct and match with your site encoding.
The meta tag specify that encoding is utf-8. Please check your site encoding to match.
<meta content="text/html; charset=utf-8" http-equiv="content-type">

The error is the duplicate identify problem. The menu-bar and the menu at right column, have same id when menu-item active. eg: "Home" of menu-bar and "home" of right menu.
Please edit the /templates/mega_calibra/html/mod_menu/default.php and find this code:
if ($item->id == $active_id) {
	$id .= 'current';
	$aActive = 'current ';
}
Change it to:
if ($item->id == $active_id) {
	$id .= '';
	$aActive = 'current ';
}

Thanks for using our products!
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Problem with W3C validation 4 years 7 months ago #552

  • hi700
  • hi700's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 4
  • Karma: 0
I changed the default.php like what you wrote but the Error is still present.

Nothing is changed.
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Problem with W3C validation 4 years 7 months ago #554

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,
I see the validator done with your site, the error not exists anymore(!). Just still 2 warnings about your site encode in de-de.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.hiwebdesign.de%2F&charset=utf-8&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.2

Please check your site encoding, or send us your site admin access via contact form include request to get help.

Thanks for using our products!
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka
Time to create page: 0.180 seconds