Bitte um Hilfe bei W3C Fehler (u.a. Ampersand-Fehler)

Thema wurde von nitg, 15. Mai 2013 erstellt.

  1. nitg
    nitg Erfahrener Benutzer
    Registriert seit:
    7. November 2012
    Beiträge:
    45
    Danke erhalten:
    0
    Danke vergeben:
    1
    Hallo zusammen! Ich habe den GX2 installiert und bereits ein paar kleinere Modifikationen am Shopsystem erhalten. Nun habe ich meine Homepage (Ampirion Gamer PC Systeme) mal durch den W3C Validator gejagt und kam zu folgenden HTML-Fehlern. Könnt Ihr mir eventuell dabei behilflich sein, diese zu lösen?

    Habe natürlich schon entsprechend gegooglet und bereits einige Fehler beheben können, aber diese bekomm ich leider nicht weg :(


    Code:
    [LIST=1]
    [*]      [I]Line 256,         Column 135[/I]:     there is no attribute "autocomplete"     …put-text box-input-field default_value" id="search_field" autocomplete=[B]"[/B]off" />                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=108#errormsg"]✉[/URL]     
                      You have used the attribute named above in your  document, but the       document type you are using does not support  that attribute for this       element. This error is often caused by  incorrect use of the "Strict"       document type with a document that  uses frames (e.g. you must use       the "Transitional" document type to  get the "target" attribute), or       by using vendor proprietary  extensions such as "marginheight" (this       is usually fixed by using  CSS to achieve the desired effect instead).     
                This error may also result if the element itself is not  supported in       the document type you are using, as an undefined  element will have no       supported attributes; in this case, see the  element-undefined error       message for further information.     
                How to fix: check the spelling and case of the element and  attribute,        (Remember XHTML is all lower-case) and/or        check  that they are both allowed in the chosen document type, and/or        use CSS instead of this attribute. If you received this error when using  the        <embed> element to incorporate flash media in a Web  page, see the        [URL="http://validator.w3.org/docs/help.html#faq-flash"]FAQ item on valid flash[/URL].
    [/LIST]
    
    
    
    [LIST=1]
    [*]  [I]Line 537,         Column 38[/I]:     ID "FilterCategory" already defined     <select name="filter_fv_id[5][]" id="[B]F[/B]ilterCategory" class="input-select">                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=141#errormsg"]✉[/URL]     
                      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).
    [/LIST]
    
    
    
    [LIST=1]
    [*][I]Line 524,         Column 38[/I]:     ID "FilterCategory" first defined here     <select name="filter_fv_id[4][]" id="[B]F[/B]ilterCategory" class="input-select">
    [/LIST]
    
    
    
    [LIST=1]
    [*]  [I]Line 568,         Column 657[/I]:     cannot generate system identifier for general entity "XTCsid"     …" /> <a href="shop_content.php?coID=3&[B]X[/B]TCsid=6fb4e01eaae512ea1ce3bd337bb6f46c"…                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=338#errormsg"]✉[/URL]     
                      An entity reference was found in the document, but  there is no reference       by that name defined. Often this is caused  by misspelling the reference       name, unencoded ampersands, or by  leaving off the trailing semicolon (;).       [B]The most common cause of this error is unencoded ampersands in       URLs[/B] as described by the [URL="http://www.htmlhelp.com/"]WDG[/URL] in "[URL="http://www.htmlhelp.com/tools/validator/problems.html#amp"]Ampersands         in URLs[/URL]".     
                Entity references start with an ampersand (&) and end with a       semicolon (;). If you want to use a literal ampersand in your document       you must encode it as "&amp;" ([I]even inside URLs![/I]).  Be       careful to end entity references with a semicolon or your  entity       reference may get interpreted in connection with the  following text.       Also keep in mind that named entity references are  case-sensitive;       &Aelig; and &aelig; are different  characters.     
                If this error appears in some markup generated by PHP's session handling       code, [URL="http://www.w3.org/QA/2005/04/php-session"]this article[/URL] has        explanations and solutions to your problem.     
                Note that in most documents, errors related to entity  references will       trigger up to 5 separate messages from the  Validator. Usually these       will all disappear when the original  problem is fixed.
    [/LIST]
    
    
    
    [LIST=1]
    [*]      [I]Line 568,         Column 657[/I]:     general entity "XTCsid" not defined and no default entity     …" /> <a href="shop_content.php?coID=3&[B]X[/B]TCsid=6fb4e01eaae512ea1ce3bd337bb6f46c"…                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=25#errormsg"]✉[/URL]     
                      This is usually a cascading error caused by a an  undefined entity       reference or use of an unencoded ampersand  (&) in an URL or body       text. See the previous message for  further details.
    [/LIST]
    
    
    
    [LIST=1]
    [*]      [I]Line 568,         Column 663[/I]:     reference not terminated by REFC delimiter     …a href="shop_content.php?coID=3&XTCsid[B]=[/B]6fb4e01eaae512ea1ce3bd337bb6f46c" targe…                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=394#errormsg"]✉[/URL]     
                      If you meant to include an entity that starts with  "&", then you should        terminate it with ";".  Another reason  for this error message is that        you inadvertently created an  entity by failing to escape an "&"        character just before this  text.
    [/LIST]
    
    
    
    [LIST=1]
    [*]      [I]Line 568,         Column 663[/I]:     reference to external entity in attribute value     …a href="shop_content.php?coID=3&XTCsid[B]=[/B]6fb4e01eaae512ea1ce3bd337bb6f46c" targe…                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=403#errormsg"]✉[/URL]     
                      This is generally the sign of an ampersand that was  not properly escaped for inclusion        in an attribute, in a href for  example. You will need to escape all instances of '&'       into  '&amp;'.
    [/LIST]
    
    
    
    [LIST=1]
    [*]      [I]Line 568,         Column 663[/I]:      reference to entity "XTCsid" for which no system identifier could  be generated     …a href="shop_content.php?coID=3&XTCsid[B]=[/B]6fb4e01eaae512ea1ce3bd337bb6f46c" targe…                [URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fampirion.com%2F;errmsg_id=325#errormsg"]✉[/URL]     
                      This is usually a cascading error caused by a an  undefined entity       reference or use of an unencoded ampersand  (&) in an URL or body       text. See the previous message for  further details.
    [/LIST]
    
    
    
    [LIST=1]
    [*]      [I]Line 568,         Column 656[/I]:     entity was defined here     …"" /> <a href="shop_content.php?coID=3[B]&[/B]XTCsid=6fb4e01eaae512ea1ce3bd337bb6f46c…
    [/LIST]
    
     
  2. Kenan Winter
    Kenan Winter Erfahrener Benutzer
    Registriert seit:
    2. März 2012
    Beiträge:
    129
    Danke erhalten:
    2
    Danke vergeben:
    41
    Hab das selbe heute mal mal im Zuge unserer ersten SEO Online OPtmierung gemacht und kam auch zu dem krassen Ergebnis das der Shop vor allem in der Startseite nicht dem W3C-Qualitäts-Standard entspricht. Gesamt 14 Fehler. Das übt sich natürich negativ auf das Google Ranking aus. Allerdings sind die Dateien nicht der Index enthalten. Über den Quellcode finde ich die Fehler.
    Bsp.:



    1. [​IMG] Line 68, Column 151: syntax of attribute value does not conform to declared value …vice.html?XTCsid=tub6af4qvtj9pfsk1226nb3kt3" target="">Rückruf Service</a></li>
      The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; the variant “selected=""” is not allowed.


    Hat jemand ne Idee wo ich Bsp. Weise den Fehler beheben kann? Welche Datei beinhaltet das? Wie geht Ihr mit dem Thema um?
     
  3. Dennis (MotivMonster.de)
    Dennis (MotivMonster.de) G-WARD 2013/14/15/16
    Registriert seit:
    22. September 2011
    Beiträge:
    31.212
    Danke erhalten:
    6.222
    Danke vergeben:
    1.108
    Beruf:
    Mann für alles :)
    Ort:
    Weilburg
    dazu müsste man wissen wo bei dir der "ückruf Service" auf der Seite ist, da sich jede Seite aus mehreren Template Dateien zusammensetzt.
    Ich vermute mal in einer der BOxen oder FOoter?

    Aber mit so nem Mini-Ausschnitt ist da nix zu sagen. Ein Link zu deiner Seite z.B. wäre ein Anfang.
    Aber du wirst eh nciht alle W3C Fehler beheben könen und so tragisch sind die meisten nicht.
     
  4. Kenan Winter
    Kenan Winter Erfahrener Benutzer
    Registriert seit:
    2. März 2012
    Beiträge:
    129
    Danke erhalten:
    2
    Danke vergeben:
    41
    Hi Dennis,

    nett das du Dir die Zeit nimmst! Also meine Seite ist www.pft24.de , den Testreport habe ich direkt von der W3C Seite. Hatte den Tip danach zu optimieren,

    Und ja es ist in den oberen Menü Topmenü Corner in dem Beispiel.

    Gruß Ken
     
  5. Dennis (MotivMonster.de)
    Dennis (MotivMonster.de) G-WARD 2013/14/15/16
    Registriert seit:
    22. September 2011
    Beiträge:
    31.212
    Danke erhalten:
    6.222
    Danke vergeben:
    1.108
    Beruf:
    Mann für alles :)
    Ort:
    Weilburg
    warum ist in dem LINK zum Rückrufservice die sessionID?
    und in deinem Fehler oben ist Target "Rückrus-Service" in deiner TopNav ist aber target="">Kostenloser Rückruf Service auf PFT24

    das schon mal ein fehler der nicht übereinpasst. target solltest füllen oder weg lassen.
     
  6. Avenger
    Avenger G-WARD 2012/13/14/15
    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Einfach ignorieren....

    Außer dem W3C-Validator interssiert so was keine Sau.

    Schon gar nicht einen Browser.

    Vertane Zeit.