Hey Leute!
Ich habe ein kleines Problem beim aktuellen 3.2er CONTAO und bin mir nicht sicher warum dieser Fehler auftritt.
Konkret habe ich ein Theme angelegt, dass auf auf ein leicht modifiziertes "fe_page.xhtml" zugreift.
Wenn die Seite ausgegeben wird, dann ist am Ende immer das Body-Tag beschädigt. Im fe_page.xhtml stimmt aber alles. Hat jemand eine Idee woher das kommen kann?
fe_page.xhtml:
Code:
...
<?php if (!$this->disableCron): ?>
<script type="text/javascript">
/* <![CDATA[ */
<?php if ($this->layout->addJQuery): ?>
setTimeout(function(){jQuery.ajax("system/cron/cron.txt",{complete:function(e){var t=e.responseText||0;parseInt(t)<Math.round(+(new Date)/1e3)-<?php echo $this->cronTimeout; ?>&&jQuery.ajax("system/cron/cron.php")}})},5e3)
<?php else: ?>
setTimeout(function(){(new Request({url:"system/cron/cron.txt",onComplete:function(e){e||(e=0),parseInt(e)<Math.round(+(new Date)/1e3)-<?php echo $this->cronTimeout; ?>&&(new Request({url:"system/cron/cron.php"})).get()}})).get()},5e3)
<?php endif; ?>
/* ]]> */
</script>
<?php endif; ?>
</body>
</html>
Ausgabe auf der Website:
Code:
...
<script type="text/javascript">
/* <![CDATA[ */
(function($) {
$(document).ready(function() {
$("#caroufredsel_3").carouFredSel({
circular: false, direction: "right", width: 1204, height: 476, align: false, onCreate: function(data) { data.items.addClass("visible"); }, items: { width: 1197, height: 476 }, scroll: { items: 1, fx: "crossfade", easing: "linear", onBefore: function(data) { data.items.old.removeClass("visible"); }, onAfter: function(data) { data.items.visible.addClass("visible"); } }, auto: { timeoutDuration: 3500 } }, { wrapper: { classname: "caroufredsel_wrapper caroufredsel_wrapper_3" } } );
});
})(jQuery);
/* ]]> */
</script>
<script type="text/javascript">
/* <![CDATA[ */
setTimeout(function(){jQuery.ajax("system/cron/cron.txt",{complete:function(e){var t=e.responseText||0;parseInt(t)<Math.round(+(new Date)/1e3)-86400&&jQuery.ajax("system/cron/cron.php")}})},5e3)
/* ]]> */
</script>
body>
</html>
Man sieht ganz deutlich, dass das beim schließenden Body-Tag die spitze Klammer fehlt.
Lesezeichen