Zur Navigation

Fehlersuche im Code

1 elena (Gast)

Hi,
ich habe auf meiner Webseite einen Link angebracht zu einer "Photography Top 100" - Seite, also einer Topliste. Im Gegenzug bin ich dort eingetragen. Leider produziert der einzubauende vorgegebene Code Fehler und ist meines Erachtens nicht xhtml-fähig (?)
Hier mein Link:
http://www.gautinger-weltenbummler.de/start_html/surftipps_reiseportale.php

Beim Überprüfen mit einem Validator erscheint nach dem Einbau (4. Link von oben) folgende Fehlermeldung:
Validation Output: 3 Errors

1. Warning Line 93, Column 71: cannot generate system identifier for general entity "u"

…de/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" src

?

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 (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

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;" (even inside URLs!). 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, this article 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.
2. Error Line 93, Column 71: general entity "u" not defined and no default entity

…de/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" src

?

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.
3. Warning Line 93, Column 72: reference not terminated by REFC delimiter

…e/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" src=

?

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.
4. Warning Line 93, Column 72: reference to external entity in attribute value

…e/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" src=

?

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;'.
5. Error Line 93, Column 72: reference to entity "u" for which no system identifier could be generated

…e/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" src=

?

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.
6. Info Line 93, Column 69: entity was defined here

…r.de/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" s

7. Error Line 93, Column 71: XML Parsing Error: EntityRef: expecting ';'

…de/photographytop100/index.php?a=in&u=Anne2009"><img class="banner_mitte" src



Meine Frage. Wie kriege ich diese Fehler weg oder ist das zu mühsam?? Dann würde ich den Link wieder entfernen.

elena

26.01.2010 11:00

2 Jörg Kruse

"&" ist ein HTML-Steuerzeichen - wenn es nicht als Steuerzeichen verwendet wird, muss es als "&amp;" codiert werden, also z.B.:

<a href="http://www.foto-ramsauer.de/photographytop100/index.php?a=in&amp;u=Anne2009">

Auch dermaßen codierte Links funktioneren korrekt, da die Browser das &amp; wieder in ein & rückcodieren.

26.01.2010 11:24

3 elena

Danke, Jörg,
es hat geklappt und nun ist die Seite fehlerfrei!

elena

26.01.2010 15:12

Beitrag schreiben (als Gast)

Die Antwort wird nach der Überprüfung durch einen Moderator freigeschaltet.





[BBCode-Hilfe]