Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Fehler beim Versenden von Statusmails - Smarty error: unable to read resource

    avitron

    • Neu im Forum
    • Beiträge: 6
    Hallo zusammen,

    ich bin stolzer Betreiber eines modified eCommerce Shopsoftwareodfied shops (Version 1.05) - ganz generell erst einmal: Ein wirklich genialer Fork, der auch noch richtig gut funktioniert...

    Damit er das auch imemr tut, habe ich den Sourcecode bisher nicht verändert, aber bin leider doch auf einen Fehler gestossen: Ich wollte eine Statusmail aus einer Bestellung heraus an einen Kunden senden, der hat auch eine Mail bekommen, allerdings mit dem Inhalt:

    Code: PHP  [Auswählen]
    Warning:  Smarty error: unable to read resource: "xtc5/admin/mail//change_order_mail.html" in .../xtc/includes/classes/Smarty_2.6.26/Smarty.class.php on line 1097

    und nur noch der Signatur. (Achja "..." ist natürlich mein Pfad zur Präsenz bei meinem Provider ;-) - heraus gekürzt) ;-)

    Woran kann das liegen, dass Smarty den Pfad falsch (mit "//") setzt??
    configure.php? Sonst irgendwo ein Fehler?

    Für Hilfe wäre ich wirklich dankbar... :-)
    Viele Grüße, Olav

    Linkback: https://www.modified-shop.org/forum/index.php?topic=7322.0

    web28

    • modified Team
    • Beiträge: 9.404
    Bei Dir fehlt der Sprachordner deshalb die beiden //

    Die Smarty Definition sieht so aus.

    Code: PHP  [Auswählen]
    $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$order->info['language'].'/change_order_mail.html');

    $order->info['language'] ist bei Dir anscheinend leer, das sollte natürlich nicht sein.

    Ist Dein Shop mehrsprachig?
    Hast Du eine Sprache gelöscht?

    Gruss Web28

    avitron

    • Neu im Forum
    • Beiträge: 6
    Hmm... ja, mein shop ist Englisch / Deutsch, aber gelöscht habe ich nichts... aber das ist eine interessante Fährte, vielen Dank... werde ich gleich mal überprüfen.
    Das Witzige ist: ist absoult eine Standard-Installation von modified eCommerce Shopsoftware, keine Änderungen, da ich mir genau solche Probleme vom Hals halten wollte... ;-)
    Danke erst einmal! :-)

    i-hotspots

    • Neu im Forum
    • Beiträge: 1
    Hallo,

    ich bekomme die selbe Meldung !!

    ES IST EINE GRUNDINSTALLATION ohne jegliche Änderungen !!
    Ich habe auch schon ein neues Softwarepaket heruntergeladen ??!!

    SOWOHL bei modified eCommerce Shopsoftware als auch bei xt:Commerce !!

    KEINER EINE LÖSUNG ???  bin am verzweifeln

    grüße
    Andy

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Welche Shopversion?!

    xt:Commerce interessiert uns hier nicht, wir entwickeln modified eCommerce Shopsoftware!

    Grüße

    Torsten

    WolfCH

    • Neu im Forum
    • Beiträge: 14
    • Geschlecht:
    Hallo Zusammen

    Falls jemand noch immer das Problem hat, ich hatte es heute morgen auch.
    Hier schlage ich zunächst eine funktionierende provisorische Lösung vor (denn ich gehe auf den Grund warum session['language'] leer ist.

    In den entsprechenden Dateien (unter "/includes/" sowie auch im "/admin/" Ordner) folgende Zeilen:

    Code: PHP  [Auswählen]
    $order->info['language']

    und:

    Code: PHP  [Auswählen]
    session['langauge']

    ersetzen durch:

    Code: PHP  [Auswählen]
    german

    Das heisst aus:

    Code: PHP  [Auswählen]
    .../mail/session['language']/check_order_mail.html

    wird ganz einfach:

    Code: PHP  [Auswählen]
    .../mail/german/check_order_mail.html

    Das hat bei mir funktioniert. Natürlich geht das nur, wenn man in seinem Shop auch nur die deutsche Sprache bevorzugt! ;)

    Gruss

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Welche Shopversion setzt du denn derzeit ein?

    Hat jemand damit ein Problem im aktuellen modified eCommerce Shopsoftware 1.05 SP1b? :-?

    Grüße

    Torsten

    WolfCH

    • Neu im Forum
    • Beiträge: 14
    • Geschlecht:
    Ich setze die Version modified eCommerce Shopsoftware v1.05 dated: 2010-07-18 SP1b  ein. Und hatte da genau das obig genannte Problem und für mich elegant mit dem ändern auf "german" gelöst.

    [EDIT Tomcraft 19.01.2012: Full-Quote entfernt, siehe: FAQ: Full-Quotes und Groß-/Kleinschreibung - mit anderen Worten Netiquette!]

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Danke dir, dann schauen wir hier nochmal. Das Thema ist ja in "Bugs oder Funktionsfehler" gut aufgehoben. ;-)

    Grüße

    Torsten

    franky_n

    • Experte
    • Beiträge: 4.950
    Hallo Zusammen,

    ich vermute in der checkout_process.php in Z. 130 fehlt ein:

    Code: PHP  [Auswählen]
    'language' => $_SESSION['language'],

    Darum speichert er dann bei der Bestellung die "language" nicht mit ab und diese wird dann auch nicht in der Mail angezeigt.

    Also das ändern:

    Code: PHP  [Auswählen]
            // free gift , no paymentaddress
            $sql_data_array = array ('customers_id' => $_SESSION['customer_id'], 'customers_name' => $order->customer['firstname'].' '.$order->customer['lastname'], 'customers_firstname' => $order->customer['firstname'], 'customers_lastname' => $order->customer['lastname'], 'customers_cid' => $order->customer['csID'], 'customers_vat_id' => $_SESSION['customer_vat_id'], 'customers_company' => $order->customer['company'], 'customers_status' => $_SESSION['customers_status']['customers_status_id'], 'customers_status_name' => $_SESSION['customers_status']['customers_status_name'], 'customers_status_image' => $_SESSION['customers_status']['customers_status_image'], 'customers_status_discount' => $discount, 'customers_street_address' => $order->customer['street_address'], 'customers_suburb' => $order->customer['suburb'], 'customers_city' => $order->customer['city'], 'customers_postcode' => $order->customer['postcode'], 'customers_state' => $order->customer['state'], 'customers_country' => $order->customer['country']['title'], 'customers_telephone' => $order->customer['telephone'], 'customers_email_address' => $order->customer['email_address'], 'customers_address_format_id' => $order->customer['format_id'], 'delivery_name' => $order->delivery['firstname'].' '.$order->delivery['lastname'], 'delivery_firstname' => $order->delivery['firstname'], 'delivery_lastname' => $order->delivery['lastname'], 'delivery_company' => $order->delivery['company'], 'delivery_street_address' => $order->delivery['street_address'], 'delivery_suburb' => $order->delivery['suburb'], 'delivery_city' => $order->delivery['city'], 'delivery_postcode' => $order->delivery['postcode'], 'delivery_state' => $order->delivery['state'], 'delivery_country' => $order->delivery['country']['title'], 'delivery_country_iso_code_2' => $order->delivery['country']['iso_code_2'], 'delivery_address_format_id' => $order->delivery['format_id'], 'payment_method' => $order->info['payment_method'], 'payment_class' => $order->info['payment_class'], 'shipping_method' => $order->info['shipping_method'], 'shipping_class' => $order->info['shipping_class'], 'cc_type' => $order->info['cc_type'], 'cc_owner' => $order->info['cc_owner'], 'cc_number' => $order->info['cc_number'], 'cc_expires' => $order->info['cc_expires'], 'date_purchased' => 'now()', 'orders_status' => $tmp_status, 'currency' => $order->info['currency'], 'currency_value' => $order->info['currency_value'], 'customers_ip' => $customers_ip, 'comments' => $order->info['comments']);

    in das:

    Code: PHP  [Auswählen]
            // free gift , no paymentaddress
            $sql_data_array = array ('customers_id' => $_SESSION['customer_id'], 'customers_name' => $order->customer['firstname'].' '.$order->customer['lastname'], 'customers_firstname' => $order->customer['firstname'], 'customers_lastname' => $order->customer['lastname'], 'customers_cid' => $order->customer['csID'], 'customers_vat_id' => $_SESSION['customer_vat_id'], 'customers_company' => $order->customer['company'], 'customers_status' => $_SESSION['customers_status']['customers_status_id'], 'customers_status_name' => $_SESSION['customers_status']['customers_status_name'], 'customers_status_image' => $_SESSION['customers_status']['customers_status_image'], 'customers_status_discount' => $discount, 'customers_street_address' => $order->customer['street_address'], 'customers_suburb' => $order->customer['suburb'], 'customers_city' => $order->customer['city'], 'customers_postcode' => $order->customer['postcode'], 'customers_state' => $order->customer['state'], 'customers_country' => $order->customer['country']['title'], 'customers_telephone' => $order->customer['telephone'], 'customers_email_address' => $order->customer['email_address'], 'customers_address_format_id' => $order->customer['format_id'], 'delivery_name' => $order->delivery['firstname'].' '.$order->delivery['lastname'], 'delivery_firstname' => $order->delivery['firstname'], 'delivery_lastname' => $order->delivery['lastname'], 'delivery_company' => $order->delivery['company'], 'delivery_street_address' => $order->delivery['street_address'], 'delivery_suburb' => $order->delivery['suburb'], 'delivery_city' => $order->delivery['city'], 'delivery_postcode' => $order->delivery['postcode'], 'delivery_state' => $order->delivery['state'], 'delivery_country' => $order->delivery['country']['title'], 'delivery_country_iso_code_2' => $order->delivery['country']['iso_code_2'], 'delivery_address_format_id' => $order->delivery['format_id'], 'payment_method' => $order->info['payment_method'], 'payment_class' => $order->info['payment_class'], 'shipping_method' => $order->info['shipping_method'], 'shipping_class' => $order->info['shipping_class'], 'cc_type' => $order->info['cc_type'], 'cc_owner' => $order->info['cc_owner'], 'cc_number' => $order->info['cc_number'], 'cc_expires' => $order->info['cc_expires'], 'date_purchased' => 'now()', 'orders_status' => $tmp_status, 'currency' => $order->info['currency'], 'currency_value' => $order->info['currency_value'], 'customers_ip' => $customers_ip, 'comments' => $order->info['comments'], 'language' => $_SESSION['language']);

    PS @Tomcraft: Im Trunk bereits anders gelöst, daher dort keine Änderung nötig. Ich meine sogar, dass wir das bereits irgendwo im Forum mal hatten. Beim SP1b ist es noch nicht gefixt!

    Viele Grüße

    Franky

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    [...]
    PS @Tomcraft: Im Trunk bereits anders gelöst, daher dort keine Änderung nötig. Ich meine sogar, dass wir das bereits irgendwo im Forum mal hatten. Beim SP1b ist es noch nicht gefixt!
    [...]

    Als hättest du meine Frage vorausgeahnt. :D

    Danke dir! :thx:

    Grüße

    Torsten
    Trade Republic - Provisionsfrei Aktien handeln
    3 Antworten
    3821 Aufrufe
    10. Februar 2010, 14:35:43 von DokuMan
    38 Antworten
    14363 Aufrufe
    01. Mai 2013, 01:15:30 von toppi
    20 Antworten
    14669 Aufrufe
    06. November 2011, 22:22:40 von Tomcraft