Previously I've tested my whole site with "Markup Validation Service" and some other tests and passed.
After putting in the snippet, obviously all seems all right and all is shown in usual manner when i'm calling pages via browser.
But inside etomite i get heavy parsing errors on most pages. Testing with "Markup Validation Service" i get the messages:
The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.
1.
Warning Unable to Determine Parse Mode!
The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:
* the MIME Media Type (text/html) can be used for XML or SGML document types
* No known Document Type could be detected
* No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
* No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.
As a default, the validator is falling back to SGML mode.
2.
Warning No DOCTYPE found! Checking with default HTML 4.01 Transitional Document Type.
No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or that it is not using the correct syntax.
The document was checked using a default "fallback" Document Type Definition that closely resembles "HTML 4.01 Transitional".
Learn how to add a doctype to your document from our FAQ.
3.
Info No Character encoding declared at document level
No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.
See this tutorial on character encoding for techniques and explanations.
I especially don't understand, that the snippet e.g. is running on the entrypage "Home" with passing "Markup Validation Service", but is failing by parsing error also in etomite by calling the editor on the most other pages, while they are passing all tests and running well without that snippet.
And it seems, that my text-to-speech tool is failing in result of that parsing errors (that was my first hint reffering to a heavy malfunction).
// Initialisierung
$output = "";
// URL bestimmen
$id = $etomite->documentObject['id'];
$url = $etomite->makeURL($id);
// URL anpassen
$url = str_replace(":", "%3A", $url);
$url = str_replace("/", "%2F", $url);
// Titel und Beschreibung auslesen
// $id = $etomite->documentObject['id'];
$tbl = $this->dbConfig['dbase'].".".$this->dbConfig['table_prefix']."site_content";
$sql = "SELECT pagetitle, description FROM $tbl WHERE $tbl.id = $id";
$query = $etomite->dbQuery($sql);
$result = $etomite->fetchRow($query);
$title = $result['pagetitle'];
$description = $result['description'];
// Titel und Beschreibung bereinigen
$signs = array("," => "", ";" => "", "." => "", ":" => "", "-" => "", "!" => "", "?" => "");
$title = strtr($title, $signs);
$description = strtr($description, $signs);
// Titel und Beschreibung in TextArray umwandeln
$titleArray = explode ( ' ', $title );
$descriptionArray = explode ( ' ', $description );
// TextArray wieder zu Titel und Beschreibung umwandeln mit + als Trenner
$title = implode ( '+', $titleArray );
$description = implode ( '+', $descriptionArray );
// Anhang zusammenstellen
$suffix = "Pieces-of-Poetry%3A+".$title."+-+".$description;
$output .= "<ul class='socialNetworks_ul'>\r\n";
$output .= "<li class='socialNetworks_li'>\r\n";
$output .= "<a title='Externer Link zu Twitter' href='http://twitter.com/home?status=".$url."' target='_blank'>\r\n";
$output .= "<img class='socialNetworks_img' src='templates/images/SocialNetworks/twitter.gif' width='16' height='16' border='0' hspace='0' alt='Twitter' title='Externer Link zu Twitter' />\r\n";
$output .= "</a>\r\n";
$output .= "</li>\r\n";
.
.
.
$output .= "<li class='socialNetworks_li'>\r\n";
$output .= "<a title='Externer Link zu Yigg' href='http://www.yigg.de/neu?exturl=".$url."&exttitle=".$suffix."' target='_blank'>\r\n";
$output .= "<img class='socialNetworks_img' src='templates/images/SocialNetworks/yigg.gif' alt='Yigg' title='Externer Link zu Yigg' align='left' border='0' height='16' hspace='0' width='16' />\r\n";
$output .= "</a>\r\n";
$output .= "</li>\r\n";
$output .= "</ul>\r\n";
return $output;
Edited by Christiane, 07 September 2009 - 08:07 AM.










