Picture Gallery w3c invalid (&view)

Gesperrt
geek665
Beiträge: 1
Registriert: So 3. Feb 2013, 12:48
Kontaktdaten:

Picture Gallery w3c invalid (&view)

Beitrag von geek665 » So 3. Feb 2013, 13:01

Hiho,

dies ist mein erster Post! Deswegen ein freundliches Hallo in die Runde ;) Bisher konnte ich alle Probleme selbstständig lösen (auch durchs Lesen in diesem Forum! Vielen Dank schonmal dafür!) jedoch stehe ich jetzt vor einem Problem, das ich nicht gelöst bekomme.

Problem:
Ich nutze die eingbaute Picture_Gallery, wenn ich die entsprechende Seite durch den w3c validator gebe, sagt er mir Folgendes:

Code: Alles auswählen

 Line 89, Column 45: cannot generate system identifier for general entity "view"
…  <a href="/bilder/bilder.html?start=&view=upload%2Fbildergalerie%2…
✉
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 "&" (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.

 Line 89, Column 45: general entity "view" not defined and no default entity
…  <a href="/bilder/bilder.html?start=&view=upload%2Fbildergalerie%2…
✉
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.

 Line 89, Column 49: reference not terminated by REFC delimiter
… href="/bilder/bilder.html?start=&view=upload%2Fbildergalerie%2F…
✉
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.

 Line 89, Column 49: reference to external entity in attribute value
… href="/bilder/bilder.html?start=&view=upload%2Fbildergalerie%2F…
✉
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 '&'.

 Line 89, Column 49: reference to entity "view" for which no system identifier could be generated
… href="/bilder/bilder.html?start=&view=upload%2Fbildergalerie%2F…
✉
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.

 Line 89, Column 44: entity was defined here
…   <a href="/bilder/bilder.html?start=&view=upload%2Fbildergalerie%2F…
Und das mehrfach für jedes Bild. Die entsprechende Code-Zeile lautet:

Code: Alles auswählen

  $link= 'front_content.php?idcatart=' . $idcatart . '&start=' . $_REQUEST['start']. '&view=' . urlencode(str_replace($cfgClient[$client]['path']['frontend'], '', $sImageToDisplay));
Der Amperstand ist also entsprechend maskiert. Jedoch liegt das Problem eindeutig bei '&view='. Wenn ich diesen entferne gibt es keine solche Meldung mehr (aber ich kann die entsprechenden Bilder nicht durch Klicken aufs Thumbnail vergrößern.

Kann jemand helfen?

Vielen Dank im Voraus!

xmurrix
Beiträge: 3149
Registriert: Do 21. Okt 2004, 11:08
Wohnort: Augsburg
Kontaktdaten:

Re: Picture Gallery w3c invalid (&amp;view)

Beitrag von xmurrix » Mo 4. Feb 2013, 12:31

Hallo geek665,

willkommen im CONTENIDO Forum.

Vermutlich verwendest du das AMR-Plugin. Falls ja, dann gibt es dort einen Bug, es werden Parameter mit & andtatt mit & verkettet. Folgender Post sollte dir helfen:
http://forum.contenido.org/viewtopic.ph ... 87#p148587

Gruß
xmurrix
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.

Gesperrt