Sp 338

From Htmlpedia
Jump to: navigation, search

OpenSP: Cannot generate system identifier for general entity ...

Cause:

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.

All special characters in the HREF attribute should be encoded. "&" is a reserved character beginning an entity. (ex:  ). Ampersands in HREF field should be encoded as the equivalent entity "&", even when used as a separator for parameters in the URL. 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.

Example:

Bad<a href="http://www.domain.com/cgi?x=123&y=456">
Good<a href="http://www.domain.com/cgi?x=123&amp;y=456">

Solution:

Replace "&" with "&amp;".

References: