Zum Inhalt springen

Finde den Fehler nach valedierung nicht...

Erstellt am 22. September 2010 · 3 Antworten · letzte Antwort am 22. September 2010

Tags: JavaScript & AJAX, HTML & CSS, Frage

arthico ·

Hallo,
ich habe das Videotraining von Thoas Koetter
Typo3 für Fortgeschrittene.
Dort ist eine Ext "kontakt" (habe ich hier im Anhang mal beigelegt).
Mit der Ext bekommt man ein Kontaktformular. Ganz einfach gestrickt und benötigt die
Ext "xajax" (die ich natürlich auch installiert habe, aber aus dem Ter!
Das Kontaktformular läuft auch soweit ganz prima.

Nur wenn ich dann die Seite mit dem Kontaktformular validieren lasse kommt folgende Fehlermeldung:

(nicht wundern, ab hier ist jetzt nicht direkt typoscript dargestellt, .... ist jetzt der copierte Teil aus der validierung ...)

   1.   Error  Line 210, Column 8: end tag for "script" omitted, but OMITTAG NO was specified

      </html>

      &#9993;

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   2. Info Line 98, Column 5: start tag was here

          <script type="text/javascript" charset="utf-8">

   3. Error Line 210, Column 8: end tag for "head" omitted, but OMITTAG NO was specified

      </html>

      &#9993;

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   4. Info Line 6, Column 1: start tag was here

      <head>

   5. Error Line 210, Column 8: "html" not finished but document ended

      </html>

      &#9993;
   6. Error Line 210, Column 8: end tag for "html" omitted, but OMITTAG NO was specified

      </html>

      &#9993;

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   7. Info Line 5, Column 1: start tag was here

      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">

   8. Error Line 210, Column 8: missing marked section end

      </html>

      &#9993;
   9. Info Line 99, Column 10: marked section started here

            /* <![CDATA[ */

Ich weiß einfach nicht wo bei der Datei "class.tx_kontakt_pi1.php"
der fehler ist.... :-(

Ich denke es hat irgendwas mit "<![CDATA[" zu tun.
Hab auch schon hin und her probiert... leider vergebens....

Wenn jemand mir hier weiterhelfen kann, dann habe ich die Ext "kontakt" mit im Anhang. Und was noch benötigt wird ist die Ext "xajax" (die aktuelle aus dem Ter).

Ihr könnt es selbst mal ausprobieren, also ich bekomme
die Validierung nicht sauber.... :-(
Ihr auch?

Hat jemand eine Idee?

Danke.

Mopps ·

"Ich weiß einfach nicht wo bei der Datei "class.tx_kontakt_pi1.php" der fehler ist.... "
und wieso soll der Fehler da sein? Die Validierung sagt doch bereits, wo das Problem ist.

Funktioniert denn alles? Geht es nur darum, dass die Seite validen Code hat? Bei letzterem können es sehr viele Gründe sein, warum eine Seite nicht valide ist.

arthico ·

Danke für Deine Antwort.
Ich bin mir auch sicher, dass in der Ext. kein Fehler sein kann und es sicherlich an was anderes liegt.

Ich setze hier mal den html ein - und wenn man den validiert, kommen 5 Fehler. Und ich bekomme diese nicht weg.

Hier der html script aus meiner Seite....

<?xml version="1.1" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- 
        This website is powered by TYPO3 - inspiring people to share!
        TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
        TYPO3 is copyright 1998-2010 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
        Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<base href="http://www.physio-effectiv.de/ape/" />
<title>Kontakt</title>
<meta name="generator" content="TYPO3 4.4 CMS" />
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_bffc59e24c.css?1284326375" media="all" />
<script src="typo3temp/javascript_93077bb238.js?1284319998" type="text/javascript">
</script>
<link href="fileadmin/templates/examples/09_add-ons/css/layout_accessible_tabs.css" rel="stylesheet" type="text/css" /><!--[if lte IE 7]>
    <link href="fileadmin/templates/examples/09_add-ons/css/patches/patch_accessible_tabs.css" rel="stylesheet" type="text/css" />
    <![endif]-->

<script type="text/javascript">
        /*<![CDATA[*/
<!--
                // JS function for mouse-over
        function over(name,imgObj)      {       //
                if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
                else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_h.src");}
                else if (imgObj)        {imgObj.src = eval(name+"_h.src");}
        }
                // JS function for mouse-out
        function out(name,imgObj)       {       //
                if (version == "n3" && document[name]) {document[name].src = eval(name+"_n.src");}
                else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_n.src");}
                else if (imgObj)        {imgObj.src = eval(name+"_n.src");}
        }

// -->
        /*]]>*/
</script>
<script type="text/javascript">
        /*<![CDATA[*/
<!--
if (version == "n3") {
img1_f78c_0_n=new Image(); img1_f78c_0_n.src = "typo3temp/menu/a0ce88db07.png"; 
img1_f78c_0_h=new Image(); img1_f78c_0_h.src = "typo3temp/menu/7cd70949e0.png"; 
img3_f78c_1_n=new Image(); img3_f78c_1_n.src = "typo3temp/menu/48ebc94078.png"; 
img3_f78c_1_h=new Image(); img3_f78c_1_h.src = "typo3temp/menu/09668ae2fd.png"; 
img4_f78c_2_n=new Image(); img4_f78c_2_n.src = "typo3temp/menu/dff2e782a5.png"; 
img4_f78c_2_h=new Image(); img4_f78c_2_h.src = "typo3temp/menu/823e833bc8.png"; 
img5_f78c_3_n=new Image(); img5_f78c_3_n.src = "typo3temp/menu/b2ac68ffc0.png"; 
img5_f78c_3_h=new Image(); img5_f78c_3_h.src = "typo3temp/menu/91c1a32fdb.png"; 
img6_f78c_4_n=new Image(); img6_f78c_4_n.src = "typo3temp/menu/003d6c0625.png"; 
img6_f78c_4_h=new Image(); img6_f78c_4_h.src = "typo3temp/menu/2ff2b75191.png"; 
img7_f78c_5_n=new Image(); img7_f78c_5_n.src = "typo3temp/menu/599ea8212a.png"; 
img7_f78c_5_h=new Image(); img7_f78c_5_h.src = "typo3temp/menu/51202d6801.png"; 
img8_f78c_6_n=new Image(); img8_f78c_6_n.src = "typo3temp/menu/38120c2028.png"; 
img8_f78c_6_h=new Image(); img8_f78c_6_h.src = "typo3temp/menu/e5e1fa0a1a.png"; 
img9_f78c_7_n=new Image(); img9_f78c_7_n.src = "typo3temp/menu/2d6c14aa04.png"; 
img9_f78c_7_h=new Image(); img9_f78c_7_h.src = "typo3temp/menu/2d6c14aa04.png"; 
img10_f78c_8_n=new Image(); img10_f78c_8_n.src = "typo3temp/menu/73e36a4dbf.png"; 
img10_f78c_8_h=new Image(); img10_f78c_8_h.src = "typo3temp/menu/86427bacc4.png"; 
img11_f78c_9_n=new Image(); img11_f78c_9_n.src = "typo3temp/menu/d9b4b008f2.png"; 
img11_f78c_9_h=new Image(); img11_f78c_9_h.src = "typo3temp/menu/9644cf8309.png";
}
// -->
        /*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
var xajaxRequestUri="http://www.physio-effectiv.de/ape/kontakt/";
var xajaxDebug=false;
var xajaxStatusMessages=false;
var xajaxWaitCursor=true;
var xajaxDefinedGet=0;
var xajaxDefinedPost=1;
var xajaxLoaded=false;
function tx_kontakt_pi1processFormData(){return xajax.call("processFormData", arguments, 1);}
/*]]>*/
</script>
<script type="text/javascript" src="typo3conf/ext/xajax/xajax_js/xajax.js">
</script>
<script type="text/javascript">
//<![CDATA[
window.setTimeout(function () { if (!xajaxLoaded) { alert('Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?\nURL: typo3conf/ext/xajax/xajax_js/xajax.js'); } }, 6000);
//]]>
</script>
<script type="text/javascript" charset="utf-8">
;
      /* <![CDATA[ */
        function submitForm() {
                  xajax.$("submit_button").disabled = true;
                  xajax.$("submit_button").value = "Bitte warten...";
                  tx_kontakt_pi1processFormData(xajax.getFormValues("kontakt_form"));
                  return false;
        } 
      /* <![CDATA[ */
</script>
</head>
<body id="uid9">
<!-- skip link navigation -->
<ul id="skiplinks">
<li><a class="skip" href="kontakt/#nav">Skip to navigation (Press Enter).</a></li>
<li><a class="skip" href="kontakt/#col3">Skip to main content (Press Enter).</a></li>
</ul>
<div class="page_margins page"><!-- role="banner"> -->
<div id="header"><!-- role="contentinfo"> -->
<div id="topnav"><a class="skip" href="kontakt/#navigation" title="skip link">Zur Hauptnavigation springen</a><span class="hideme">.</span> <a class="skip" href="kontakt/#content" title="skip link">Zum Hauptinhalt springen</a><span class="hideme">.</span><span><a href="startseite/" title=" (ALT+S)" accesskey="S">Startseite</a> | Kontakt | <a href="bodenarbeit/" title=" (ALT+B)" accesskey="B">Bodenarbeit</a></span></div>
<div id="homepagetitel">
<h1><strong><span>Physio • Effectiv</span></strong></h1>
</div>
</div>
<!-- begin: main navigation #nav -->
<div id="nav"><!-- role="navigation"> -->
<div class="hlist"></div>
</div>
<!-- end: main navigation -->
<!-- begin: main content area #main -->
<div id="main"><!-- begin: #col1 - first float column -->
<div id="col1"><img src="fileadmin/templates/yaml/navigation/images/shiny_buttons/Background_green_active.png" width="178" height="1" alt="" /><br />
<a href="startseite/" onfocus="blurLink(this);" onmouseover="over('img1_f78c_0');" onmouseout="out('img1_f78c_0');"><img src="typo3temp/menu/a0ce88db07.png" width="178" height="24" alt="Startseite" id="img1_f78c_0" name="img1_f78c_0" /></a><a href="physiotherapie/" onfocus="blurLink(this);" onmouseover="over('img3_f78c_1');" onmouseout="out('img3_f78c_1');"><img src="typo3temp/menu/48ebc94078.png" width="178" height="24" alt="Physiotherapie" id="img3_f78c_1" name="img3_f78c_1" /></a><a href="bodenarbeit/" onfocus="blurLink(this);" onmouseover="over('img4_f78c_2');" onmouseout="out('img4_f78c_2');"><img src="typo3temp/menu/dff2e782a5.png" width="178" height="24" alt="Bodenarbeit" id="img4_f78c_2" name="img4_f78c_2" /></a><a href="unser-team/" onfocus="blurLink(this);" onmouseover="over('img5_f78c_3');" onmouseout="out('img5_f78c_3');"><img src="typo3temp/menu/b2ac68ffc0.png" width="178" height="24" alt="Unser Team" id="img5_f78c_3" name="img5_f78c_3" /></a><a href="seminare-kurse/" onfocus="blurLink(this);" onmouseover="over('img6_f78c_4');" onmouseout="out('img6_f78c_4');"><img src="typo3temp/menu/003d6c0625.png" width="178" height="24" alt="Seminare &amp; Kurse" id="img6_f78c_4" name="img6_f78c_4" /></a><a href="aktuelles/" onfocus="blurLink(this);" onmouseover="over('img7_f78c_5');" onmouseout="out('img7_f78c_5');"><img src="typo3temp/menu/599ea8212a.png" width="178" height="24" alt="Aktuelles" id="img7_f78c_5" name="img7_f78c_5" /></a><a href="bildergalerie/" onfocus="blurLink(this);" onmouseover="over('img8_f78c_6');" onmouseout="out('img8_f78c_6');"><img src="typo3temp/menu/38120c2028.png" width="178" height="24" alt="Bildergalerie" id="img8_f78c_6" name="img8_f78c_6" /></a><a href="kontakt/" onfocus="blurLink(this);" onmouseover="over('img9_f78c_7');" onmouseout="out('img9_f78c_7');"><img src="typo3temp/menu/2d6c14aa04.png" width="178" height="24" alt="Kontakt" id="img9_f78c_7" name="img9_f78c_7" /></a><a href="links/" onfocus="blurLink(this);" onmouseover="over('img10_f78c_8');" onmouseout="out('img10_f78c_8');"><img src="typo3temp/menu/73e36a4dbf.png" width="178" height="24" alt="Links" id="img10_f78c_8" name="img10_f78c_8" /></a><a href="impressum/" onfocus="blurLink(this);" onmouseover="over('img11_f78c_9');" onmouseout="out('img11_f78c_9');"><img src="typo3temp/menu/d9b4b008f2.png" width="178" height="24" alt="Impressum" id="img11_f78c_9" name="img11_f78c_9" /></a></div>
<!-- end: #col1 -->
<!-- begin: #col3 static column -->
<div id="col3"><!-- role="main"> -->
<div id="col3_content" class="clearfix"><!--  CONTENT ELEMENT, uid:19/text [begin] -->
<div id="c19" class="csc-default"><!--  Header: [begin] -->
<div class="csc-header csc-header-n1">
<h1 class="csc-firstHeader">Kontakt</h1>
</div>
<!--  Header: [end] --></div>
<!--  CONTENT ELEMENT, uid:19/text [end] -->
<!--  CONTENT ELEMENT, uid:9/text [begin] -->
<div id="c9" class="csc-default"><!--  Text: [begin] -->
<p class="bodytext">Diese Seite befindet sich noch im Aufbau....!</p>
<!--  Text: [end] --></div>
<!--  CONTENT ELEMENT, uid:9/text [end] -->
<!--  CONTENT ELEMENT, uid:23/list [begin] -->
<div id="c23" class="csc-default"><!--  Plugin inserted: [begin] -->
<!--

                BEGIN: Content of extension "kontakt", plugin "tx_kontakt_pi1"

        -->
<div class="tx-kontakt-pi1">
<div id="meldung"></div>
<form onsubmit="return false;" action="kontakt/?L=0" method="post" enctype="multipart/form-data" id="kontakt_form" name="kontakt_form"><label for="vorname">Vorname</label><br />
<input type="text" name="tx_kontakt_pi1[vorname]" id="vorname" size="61" /><br />
<label for="nachname">Nachname</label><br />
<input type="text" name="tx_kontakt_pi1[nachname]" id="nachname" size="61" /><br />
<label for="email">E-Mail-Adresse</label><br />
<input type="text" name="tx_kontakt_pi1[email]" id="email" size="61" /><br />
<label for="nachricht">Nachricht</label><br />
<textarea name="tx_kontakt_pi1[nachricht]" id="nachricht" cols="50" rows="10">
</textarea>
<br />
<input type="submit" onclick="submitForm();" name="tx_kontakt_pi1[submit_button]" id="submit_button" value="Absenden" /></form>
</div>
<!-- END: Content of extension "kontakt", plugin "tx_kontakt_pi1" -->
<!--  Plugin inserted: [end] --></div>
<!--  CONTENT ELEMENT, uid:23/list [end] --></div>
<div id="ie_clearing"> </div>
<!-- End: IE Column Clearing --></div>
<!-- end: #col3 --></div>
<!-- end: #main -->
<!-- begin: #footer -->
<div id="footer">
<p>© 2010 physio-effective.de</p>
</div>
<!-- end: #footer --></div>
<!-- full skiplink functionality in webkit browsers -->
<script src="fileadmin/templates/yaml/core/js/yaml-focusfix.js" type="text/javascript">
</script>
</body>
</html>
igorshmigor ·

Ich denke auch, dass es mit CDATA zu tun hat. Das Script für die Funktion submitForm endet mit

<![CDATA[ */
</script>

An dieser Stelle sollte CDATA eigentlich wieder geschlossen werden.