Seite 1 von 1

Fatal error in include.con_editcontent.php

Verfasst: Di 29. Apr 2008, 16:05
von zoot
PHP Version 5.1.2
Contenido 4.8.2
System Linux
mysql 5.0.18

Hab heute meine erste 4.8 Seite in angriff genommen und bin auf ein Problem gestoßen, welches auftritt sobald ich ein Text- oder Headline-modul einbaue.
wenn ich den Artikel Editor aufrufe kommt folgender Fehler: Fatal error: Call to a member function reset() on a non-object in /srv/www/vhosts/asv-wangen.de/httpdocs/contenido/includes/include.con_editcontent.php(620) : eval()'d code on line 209

Code: Alles auswählen

207 $tpl->reset();
208 if ($contenido && $edit) {
209    $tpl->set('s', 'text', "<div id=\"HTMLHEAD_1_1\" onfocus=\"this.style.border='1px solid #bb5577';\" onblur=\"this.style.border='1px dashed #bfbfbf';\" contenteditable=\"true\" style=\"border: 1px dashed #bfbfbf;direction: ltr;\">&nbsp;</div><a id=\"m7\" href=\"javascript:setcontent('1','front_content.php?action=10&idcat=2&idart=1&idartlang=1&type=CMS_HTMLHEAD&typenr=1&contenido=17da9423a1ad4463210bd891b8211ccd');\"><img id=\"m8\" src=\"http://vdomain05.compuart.com/contenido/images/but_edithead.gif\" border=\"0\" style=\"margin-right: 2px;\"></a><a id=\"m9\" href=\"javascript:setcontent('1','0')\"><img id=\"m10\" src=\"http://vdomain05.compuart.com/contenido/images/but_ok.gif\" border=\"0\"></a>");
210 } else {
211    $tpl->set('s', 'text', strip_tags("<div id=\"HTMLHEAD_1_1\" onfocus=\"this.style.border='1px solid #bb5577';\" onblur=\"this.style.border='1px dashed #bfbfbf';\" contenteditable=\"true\" style=\"border: 1px dashed #bfbfbf;direction: ltr;\">&nbsp;</div><a id=\"m7\" href=\"javascript:setcontent('1','front_content.php?action=10&idcat=2&idart=1&idartlang=1&type=CMS_HTMLHEAD&typenr=1&contenido=17da9423a1ad4463210bd891b8211ccd');\"><img id=\"m8\" src=\"http://vdomain05.compuart.com/contenido/images/but_edithead.gif\" border=\"0\" style=\"margin-right: 2px;\"></a><a id=\"m9\" href=\"javascript:setcontent('1','0')\"><img id=\"m10\" src=\"http://vdomain05.compuart.com/contenido/images/but_ok.gif\" border=\"0\"></a>"));
212 }
213 $tpl->generate('templates/headline_h1.html');
214 ?><br>
Hat mir jemand ein Lösungsansatz?

Verfasst: Di 29. Apr 2008, 16:10
von timo.trautmann_4fb
Steht in Verbindung mit:
http://forum.contenido.org/viewtopic.php?t=21161

Einfach in den Modulen, die $tpl verwenden am Anfang das ergänzen:

Code: Alles auswählen

if (!isset($tpl) || !is_object($tpl)) {
    $tpl = new Template();
} 
Offizieller Fix wird in Kürze erscheinen