Jump to content

walidacja w3c a linki z koszyka


korni

Recommended Posts

Witam, 

 

Zastanawia mnie jedna rzecz, a mianowicie jak się pozbyć linków do koszyka. Przez nie mam od groma błędów w walidacji w3c oraz indeksują się i pokazują w narzędziach administracyjnych google. A ich jest dość sporo, np:

http://[...]pl/cart.php?qty=1&id_product=15&token=[...]68af442e38a858a4&add
http://[...]pl/koszyk?qty=1&id_product=15&token=[...]bfc668af442e38a858a4&add=
http://[...].pl/cart.php?qty=1&id_product=18&token=[...]dbfc668af442e38a858a4&add
http://[...].pl/koszyk?qty=1&id_product=18&token=[...]bfc668af442e38a858a4&add=

itd
Edited by korni (see edit history)
Link to comment
Share on other sites

Nie jestem pewien spróbuj wyłączyć token

Preferencje >Ustawienia główne >Podwyższone bezpieczeństwo

Walidacje sprawdzisz od razu

Z Google będziesz musiał poczekać.

Przy standardowym szablonie walidacja przechodzi bez błędu nawet z włączonym tokenem.

Link to comment
Share on other sites

Link sam w sobie jest ok, strona istnieje i ładuje się już z dodanym produktem do koszyka, cały szkopuł polega na tym, że moim zdaniem nie powinno być takiej sytuacji, żeby google indeksował mi stronę z dodanym produktem. W prawdzie na samym końcu i ukryte, ale jednak. A strona nie przechodził walidacji.

 

przykładowe wpisy:
 

 

 

  • Line 13, Column 342: cannot generate system identifier for general entity "id_product"
    …ref="http://[..].pl/koszyk?qty=1&id_product=15&token=[...]0d60dbfc668af…

    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 æ 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.

  • error.png Line 13, Column 342: general entity "id_product" not defined and no default entity
    …ref="http://[...].pl/koszyk?qty=1&id_product=15&token=[...]d60dbfc668af…

    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.

  • warning.png Line 13, Column 352: reference not terminated by REFC delimiter
    …//[...]pl/koszyk?qty=1&id_product=15&token=[...]60dbfc668af442e38a858…

    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.

  • warning.png Line 13, Column 352: reference to external entity in attribute value
    …//[...].pl/koszyk?qty=1&id_product=15&token=[...]d60dbfc668af442e38a858…

    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 '&'.

  • error.png Line 13, Column 352: reference to entity "id_product" for which no system identifier could be generated
    …//[...].pl/koszyk?qty=1&id_product=15&token=[...]d60dbfc668af442e38a858…

    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.

  • info.png Line 13, Column 341: entity was defined here
    …href="http://[...].pl/koszyk?qty=1&id_product=15&token=[...]0d60dbfc668a…

 

opisy nic mi nie mówią, bo to, że nie można wpisywać od tak encji to wiem. Także pewnie jest inny powód tych błędów

Edited by korni (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...