Smartyfehler im Kontakt-Plugin bei Bulletproof

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Smartyfehler im Kontakt-Plugin bei Bulletproof

Post by Fiona »

Hallo

Ich habe ein neues Blog aufgesetzt, Bulletproof als Template gewählt und bislang noch nichts verändert. Nachdem das Kontakt-Plugin installiert war, erscheint diese Meldung:

Warning: Smarty error: unable to read resource: "file:/kunden/homepages/10/d267594745/htdocs/blog/templates/bulletproof/" in /homepages/10/d267594745/htdocs/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1092

Zu sehen hier: http://www.teepod.de/index.php?/pages/kontakt.html

Woran hakt es? Was kann ich tun?

Danke vorab.

Herzlichst
Fiona
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Smartyfehler im Kontakt-Plugin bei Bulletproof

Post by garvinhicking »

Hi!

Wie hast du das Kontaktformular konfiguriert? Mit dynamischen Templatefeldern, oder das "normale"?

Schau mal in die serendipity_event_contactform.php, da findest du folgendes:

Code: Select all

if ($dynamic_tpl == 'standard') {
    $tfile = serendipity_getTemplateFile('plugin_contactform.tpl', 'serendipityPath');
    if (!$tfile) {
        $tfile = dirname(__FILE__) . '/plugin_contactform.tpl';
    }
} else {
    $filename = $this->get_config('dynamic_fields_tpl');
    if (empty($filename)) {
        $filename = 'plugin_dynamicform.tpl';
    }
    $tfile = serendipity_getTemplateFile($filename, 'serendipityPath');

    if (!$tfile) {
        $tfile = dirname(__FILE__) . '/' . $filename;
    }
}
bitte änder das mal ab in:

Code: Select all

if ($dynamic_tpl == 'standard') {
    echo "Loading standard.<br />\n";
    $tfile = serendipity_getTemplateFile('plugin_contactform.tpl', 'serendipityPath');
    echo "filename: $tfile<br />\n";
    if (!$tfile) {
        $tfile = dirname(__FILE__) . '/plugin_contactform.tpl';
        echo "reset to: $tfile<br /> \n";
    }
} else {
    echo "Loading dynamic.<br />\n";
    $filename = $this->get_config('dynamic_fields_tpl');
    echo "filename: $filename<br />\n";
    if (empty($filename)) {
        $filename = 'plugin_dynamicform.tpl';
        echo "reset to: $filename <br />\n";
    }
    $tfile = serendipity_getTemplateFile($filename, 'serendipityPath');
    echo "final: $tfile<br />\n";

    if (!$tfile) {
        $tfile = dirname(__FILE__) . '/' . $filename;
        echo "reset to: $tfile<br />\n";
    }
}
Wenn du dann das kontaktformular aufrufst müsstest du am ende der Seite die Debugging ausgaben wie "final..." und "reset..." und so lesen. Diese Ausgabe benötige ich.

Grüße,
Garvin
Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

Hallo Garvin

Den Code habe ich ausgewechselt. Die Fehlermeldung ist nun anders:


Warning: Smarty error: unable to read resource: "file:/kunden/homepages/10/d267594745/htdocs/blog/templates/bulletproof/" in /homepages/10/d267594745/htdocs/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1092
Loading standard.
filename: /kunden/homepages/10/d267594745/htdocs/blog/templates/bulletproof/plugin_contactform

Das Formular ist "Standard"-formatiert. Habe nichts geändert außer eben einen Namen ins obere Fenster gefügt.

>Debugging ausgaben wie "final..." und "reset..." und so les

Tja - Wo genau könnte ich diese Debuggingmeldung finden? Auf der Seite sehe ich nichts.

Herzlichst
Fiona
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay, jetzt weiß ich schonmal dass die Fehlermeldung noch vorher kommt als ich dachte.

Such mal im Code nach:

Code: Select all

            if (!is_object($serendipity['smarty'])) {
                serendipity_smarty_init();
            }
und ändere es in:

Code: Select all

            if (!is_object($serendipity['smarty'])) {
                echo "Init object<br />\n";
                serendipity_smarty_init();
            }
            echo "Done object<br />\n";
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

Mmh - jetzt ist das Blog komplett down

Parse error: syntax error, unexpected '}' in /homepages/10/d267594745/htdocs/blog/plugins/serendipity_event_contactform/serendipity_event_contactform.php on line 634
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

Die letzte Änderung habe ich wieder zurück genommen. Statt dessen habe ich jetzt mal das Contactform-Plugin genommen, das auf meinen eigenen Blogs tadellos funktioniert.

Lustigerweise klappt es damit auch nicht. Bekomme die Meldung, "sie haben das Feld "" nicht ausgefüllt!

Dieses ominöse Feld gibt es jedoch nicht.

Und nun?

Herzlichst
Fiona
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Biem einfügen meines codes indeine Datei hast du wohl ein } zuviel gelöscht oder vergessen. Bitte probier es nochmal und achte darauf es exakt so einzufügen.

Wie genau ist das Kontaktformular konfiguriert? Wenn ein Leeres Feld angemäkelt wird hast Du evtl. irgendwo ein ";" zuviel in der Feldkonfiguration oder so.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

Sorry Garvin

ich hab's genauso gemacht, wie du es geschrieben hast und bekomme weiterhin diese Meldung

Parse error: syntax error, unexpected '}' in /homepages/10/d267594745/htdocs/blog/plugins/serendipity_event_contactform/serendipity_event_contactform.php on line 645

Das Blog ist down.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Du ersetzt wirklich den ganzen Block den ich geschickt habe durch meinen?

Ich vermute bei Dir steht derzeit folgendeS:

Code: Select all

            if (!is_object($serendipity['smarty'])) {
                serendipity_smarty_init();
            } 
            echo "Done object<br />\n"; 
            }
Das wäre falsch. Richtig wäre nur:

Code: Select all

            if (!is_object($serendipity['smarty'])) {
                serendipity_smarty_init();
            } 
            echo "Done object<br />\n"; 
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

nö, das war es nicht.
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

Wirklich keine Idee mehr?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Bei mir klappt die Datei so; habe deine aus der Email mal verwendet. kann mir nur vorstellen dass da beim hochladen auf deinem Server was schief läuft. Falls Du MaCOS verwendest, nutz mal einen Editor und ein FTP-Tool was die Datei definitv mit UNIX-Zeilenenden hochlädt, sonst bringt das PHP aus dem Tritt.

Merke: Im Editor immer als UNIX speichern, und dann per FTP immer binär hochladen.

Grüße,
Garivn
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

garvinhicking wrote:Hi!

Bei mir klappt die Datei so; habe deine aus der Email mal verwendet. kann mir nur vorstellen dass da beim hochladen auf deinem Server was schief läuft. Falls Du MaCOS verwendest, nutz mal einen Editor und ein FTP-Tool was die Datei definitv mit UNIX-Zeilenenden hochlädt, sonst bringt das PHP aus dem Tritt.

Merke: Im Editor immer als UNIX speichern, und dann per FTP immer binär hochladen.

Grüße,
Garivn
Hallo Garvin

nein, ich arbeite mit einem Win XP-Rechner und FTP -mäßig ist auch alles klar. Kann es sein, dass sich das Formular mit z.B. dem Podcast-Plugin hakelt? Dieses wurde nämlich erstmals installiert - hab' noch keine Erfahrungen damit.

Herzlichst
Fiona
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Dann versteh ich nicht was da beim Upload schief läuft. Deine Datei enthält definitiv keinen Parsefehler wie Du ihn mir geschickt hast.

Andere Plugins haben nichts zu tun damit, nein.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fiona
Regular
Posts: 240
Joined: Sat Aug 26, 2006 5:11 pm
Contact:

Post by Fiona »

Hallo Garvin

Na gut - dann stehen wir wenigstens beide vor einem Rätsel. Werde das Kontaktformular rausnehmen und durch eine statische Seite umschiffen.

Danke fürs Nachsehen.

Herzlichst
Fiona
Post Reply