Modul Script, um zu Shopversion 2.3 inkompatible Template-Dateien/E-Mail-Vorlagen zu finden

Thema wurde von Moritz (Gambio), 5. Juli 2015 erstellt.

  1. Moritz (Gambio)

    Moritz (Gambio) Administrator

    Registriert seit:
    26. April 2011
    Beiträge:
    5.786
    Danke erhalten:
    2.693
    Danke vergeben:
    903
    Hallo,

    da mit dem Update auf die Shopversion 2.3 gehäuft Shopbetreiber von der Fehlermeldung
    Code:
    FATAL ERROR(1): "Uncaught --> Smarty: Unable to read config file '[...].conf' <-- 
    thrown"
    oder
    Code:
    PARSE ERROR(4): "syntax error, unexpected end of file, expecting ',' or ';'"
    berichten, habe ich ein Script geschrieben, das helfen soll die problematische Datei oder E-Mail-Vorlage ausfindig zu machen. Die Template-Dateien, die nicht mehr vorhandene conf-Dateien laden oder den veralteten Smarty-Tag {php} nutzen, gehören nicht zum Standard des Shops sondern meist zu einer individuellen Umprogrammierung oder alten E-Mail-Vorlage.
    Findet das Script eine Datei, muss überprüft werden, ob diese noch unter 2.3 lauffähig ist und ggf. angepasst werden. Wird eine E-Mail-Vorlage gefunden, sollte im Adminbereich unter dem Menüpunkt KONFIGURATION > E-Mail-Vorlagen für die entsprechende Vorlage das Original geladen und ggf. zuvor gemachte Anpassungen erneut durchgeführt werden.

    Das Script template_checker.php wird in das Hauptverzeichnis des Shops hochgeladen und im Browser aufgerufen (http://meine-shop-url/template_checker.php)

    Ich kann nicht versprechen, dass das Script fehlerfrei läuft. Es ist schnell zusammengeschustert worden und hilft hoffentlich dem ein oder anderen schneller sein Problem zu lösen. Daher gibts keine Gewähr.

    Nach der Verwendung sollte die Datei wieder vom Server gelöscht werden!!!

    Beachte: Das Script kann nicht erkennen, ob die gefunde Datei oder Vorlage tatsächlich inkompatibel zu Shopversion 2.3 ist.
     

    Anhänge:

  2. Cyrus (LeGong)

    Cyrus (LeGong) Erfahrener Benutzer

    Registriert seit:
    21. Dezember 2011
    Beiträge:
    1.434
    Danke erhalten:
    342
    Danke vergeben:
    176
    Super Idee für alle, die es vergessen vor Update ihre USERMOD-Dateien zu deaktivieren:)
     
  3. Chefzwerg

    Chefzwerg Mitglied

    Registriert seit:
    20. Juni 2011
    Beiträge:
    14
    Danke erhalten:
    0
    Danke vergeben:
    3
    Hallo zusammen,

    nach dem Update erschien bei mir (und den Kunden) in der Bestellbestätigung die Fehlermeldung:
    PARSE ERROR(4): "syntax error, unexpected end of file, expecting ',' or ';'"


    Wenn man nun im Shop die e-Mail-Vorlage für die Bestellbestätigung öffnet, erscheint in der ersten Zeile:
    echo nl2br(STORE_NAME_ADDRESS);

    Das Semikolon fehlte allerdings, wodurch meine Verkäuferadresse nicht erschien und "ersatzweise" die Fehlermeldung
    stand. Nach Einfügen des Semikolons ist nun wieder alles richtig.

    Grüße,
    Andreas
     
  4. Moritz (Gambio)

    Moritz (Gambio) Administrator

    Registriert seit:
    26. April 2011
    Beiträge:
    5.786
    Danke erhalten:
    2.693
    Danke vergeben:
    903
    Hallo Andreas,

    eleganter ist die Lösung statt
    Code:
    {php}echo nl2br(STORE_NAME_ADDRESS){/php}
    Folgendes zu nehmen, da der veraltete php-Tag nicht mehr benutzt wird:
    Code:
    {$smarty.const.STORE_NAME_ADDRESS|nl2br}
     
  5. Burgenstern GmbH

    Burgenstern GmbH Aktives Mitglied

    Registriert seit:
    26. Juni 2012
    Beiträge:
    35
    Danke erhalten:
    0
    Danke vergeben:
    5
    Hallo,

    mit dem Check kommt folgendes Ergebniss:

    Suche potenziell veraltete Template-Dateien, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_mailbeezstats/templates/view_mailbeezstats.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_mailbeezstats/templates/view_mailbeezstats_panel.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_mailbeezstats/templates/view_mailbeezstats_la_widget.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_news/templates/view_news_dashboard_widget.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_news/templates/view_news_dashboard.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_conversations/templates/view_conversations.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_conversations/templates/view_conversations_dashboard.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_conversations/templates/view_conversations_summary.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/view_notifications_summary.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/msg_install.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/view_notifications_dashboard_widget.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/view_notifications_panel.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/msg_install_summary.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/msg_install_title.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/view_notifications_dashboard.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_notifications/templates/view_notifications.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_orders/templates/view_orders.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_orders/templates/view_orders_la_widget.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_orders/templates/view_orders_summary.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_products/templates/view_products_la_widget.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_products/templates/view_products.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_customer/templates/view_customer.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_customer/templates/view_customer_summary.tpl.html
    /ext/mailhive/configbeez/config_customer_insight/viewbeez/view_reviews_products/templates/view_reviews_products.tpl.html
    /ext/mailhive/configbeez/config_shopvoting/viewbeez/view_shopvoting/templates/view_shopvoting.tpl.html
    /ext/mailhive/configbeez/config_shopvoting/viewbeez/view_shopvoting/templates/view_shopvoting_panel.tpl.html
    /ext/mailhive/configbeez/config_shopvoting/viewbeez/view_shopvoting/templates/view_shopvoting_widget.tpl.html
    /ext/mailhive/configbeez/config_shopvoting/viewbeez/view_shopvoting/templates/view_shopvoting_dashboard.tpl.html
    /ext/mailhive/configbeez/config_shopvoting/templates/shop-review.html
    /ext/mailhive/configbeez/config_shopvoting/templates/boxes/box_shopreview.html
    /ext/mailhive/configbeez/config_shopvoting/templates/shop-review_write.html
    /ext/mailhive/configbeez/config_block/templates/default_webview.tpl.html


    Suche potenziell veraltete E-Mail-Vorlagen, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    nichts gefunden

    Suche potenziell veraltete Template-Dateien, die den veralteten Smarty-Tag {php} nutzen...

    nichts gefunden

    Suche potenziell veraltete E-Mail-Vorlagen, die den veralteten Smarty-Tag {php} nutzen...

    order_mail (Format: txt, Sprach-ID: 1)
    order_mail (Format: html, Sprach-ID: 1)
    order_mail (Format: txt, Sprach-ID: 2)
    order_mail (Format: html, Sprach-ID: 2)

    lösung`?
     
  6. Moritz (Gambio)

    Moritz (Gambio) Administrator

    Registriert seit:
    26. April 2011
    Beiträge:
    5.786
    Danke erhalten:
    2.693
    Danke vergeben:
    903
    Hallo,

    die Lösung ist, dass du im Adminbereich das Original der Bestellbestätigung-E-Mail-Vorlage wiederherstellst und zwar für HTML und TXT, sowohl in deutsch als auch in englisch. MailBeez ist wahrscheinlich nur ein Fehlalarm.
     
  7. Stefan Schuster

    Stefan Schuster Erfahrener Benutzer

    Registriert seit:
    15. Juni 2011
    Beiträge:
    195
    Danke erhalten:
    8
    Danke vergeben:
    46
    Hallo Moritz,

    bin wieder beim letzten Versuch den Shop aktuell zu halten wieder auf 2.2.1.3 zurückgefallen.
    Habe das Programm probiert:

    /templates/EyeCandy/objects/product_boxes_list.html
    /templates/EyeCandy/boxes/box.cart.htm

    diese zwei Dateien haben mir das letzte mal das Rückspielen gebracht.

    Funktioniert es diesmal wenn ich es wieder probiere?

    Suche potenziell veraltete Template-Dateien, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    /callback/sofort/ressources/scripts/checkoutVorkasse.html
    /callback/sofort/checkout_vorkasse.html
    /templates/MobileCandy/mail/english/order_mail.html
    /templates/MobileCandy/objects/product_boxes_list.html
    /templates/MobileCandy/module/wish_list.html
    /templates/MobileCandy/module/checkout_payment.html
    /templates/MobileCandy/module/create_account.html
    /templates/MobileCandy/module/checkout_vrepay_dialog.html
    /templates/MobileCandy/module/checkout_payment_hp.html
    /templates/MobileCandy/module/checkout_success.html
    /templates/MobileCandy/module/shopping_cart.html
    /templates/MobileCandy/module/checkout_shipping_address.html
    /templates/MobileCandy/module/checkout_confirmation.html
    /templates/MobileCandy/module/sitemap.html
    /templates/MobileCandy/module/create_account_guest.html
    /templates/MobileCandy/module/checkout_qpay.html
    /templates/MobileCandy/module/checkout_qpay_iframe.html
    /templates/MobileCandy/module/main_content.html
    /templates/MobileCandy/module/gm_tell_a_friend.html
    /templates/MobileCandy/module/checkout_shipping.html
    /templates/MobileCandy/module/checkout_payment_address.html
    /templates/MobileCandy/module/checkout_iclear.html
    /templates/MobileCandy/module/gm_product_images.html
    /templates/EyeCandy/boxes/box_trusted.html
    /templates/EyeCandy/boxes/box_cart.html
    /templates/EyeCandy/objects/product_boxes_list.html
    /templates/EyeCandy/module/checkout_wirecard_checkout_page_iframe.html
    /templates/EyeCandy/module/create_account.html
    /templates/EyeCandy/module/checkout_success.html
    /templates/EyeCandy/module/checkout_wirecard_checkout_page.html
    /templates/EyeCandy/module/create_account_guest.html
    /templates/EyeCandy/module/checkout_masterpayment.html
    /templates/EyeCandy/module/heidelpay_gateway.html


    Suche potenziell veraltete E-Mail-Vorlagen, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    Viele Grüße
    Stefan
     
  8. cotto

    cotto Mitglied

    Registriert seit:
    17. Mai 2014
    Beiträge:
    24
    Danke erhalten:
    0
    Danke vergeben:
    5
    Hallo,
    beim Aufruf einer Kategorie erscheint nach update auf 2.3.1.7 :
    PARSE ERROR(4): "syntax error, unexpected end of file"

    Ich habe die checker.php mal installiert und habe das bekommen:
    Suche potenziell veraltete Template-Dateien, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    /templates/MobileCandy/templates/MobileCandy/module/checkout_shipping.html
    /templates/MobileCandy/templates/MobileCandy/module/checkout_payment.html
    /templates/MobileCandy/templates/MobileCandy/module/shopping_cart.html
    /templates/MobileCandy/mail/english/order_mail.html
    /templates/gambio/module/checkout_payment.html
    /templates/gambio/module/product_info/standard.html
    /templates/gambio/module/account_history_info.html
    /templates/gambio/module/shopping_cart.html
    /templates/gambio/module/product_listing/product_listing_v1.html
    /templates/gambio/module/downloads.html
    /templates/gambio/boxes/box_gm_topmenu_mode1.html
    /templates/gambio/boxes/box_gm_topmenu_mode2.html
    /callback/sofort/ressources/scripts/checkoutVorkasse.html
    /callback/sofort/checkout_vorkasse.html

    Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/www/htdocs/w00bfb2f/html/plugins/ExampleTheme/images): failed to open dir: Permission denied' in /www/htdocs/w00bfb2f/template_checker.php:23 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/www/htdocs/w00...', 0) #1 [internal function]: RecursiveDirectoryIterator->getChildren() #2 /www/htdocs/w00bfb2f/template_checker.php(23): FilterIterator->next() #3 {main} thrown in /www/htdocs/w00bfb2f/template_checker.php on line 23

    Wäre für schnelle Hilfe dankbar, da nichts funktioniert.
    Gruß
    cotto
     
  9. barbara

    barbara G-WARD 2014-2020

    Registriert seit:
    14. August 2011
    Beiträge:
    35.452
    Danke erhalten:
    11.255
    Danke vergeben:
    1.606
    Hallo cotto,

    nutzt Du das Gambio-Template? wenn nicht lösche das mal.
    MobileCandy braucht vermutlich noch ein Update
    "...Permission denied'..." da wurde der Zugriff verweigert.
     
  10. cotto

    cotto Mitglied

    Registriert seit:
    17. Mai 2014
    Beiträge:
    24
    Danke erhalten:
    0
    Danke vergeben:
    5
    Hallo Barbara,
    nein, ich nutze nur das eye candy und das mobile bekomme ich nicht upgedatet da in der version-info noch 1.0.5 steht..
    Gruß cotto
     
  11. cotto

    cotto Mitglied

    Registriert seit:
    17. Mai 2014
    Beiträge:
    24
    Danke erhalten:
    0
    Danke vergeben:
    5
    Barbara,
    kann ich dann einfach den Ordner template/gambio löschen?
     
  12. barbara

    barbara G-WARD 2014-2020

    Registriert seit:
    14. August 2011
    Beiträge:
    35.452
    Danke erhalten:
    11.255
    Danke vergeben:
    1.606
    Wenn Du den nicht nutzt, ja.
     
  13. cotto

    cotto Mitglied

    Registriert seit:
    17. Mai 2014
    Beiträge:
    24
    Danke erhalten:
    0
    Danke vergeben:
    5
    Hab ich gelöscht. Das Problem dürfte wohl das Mobile Candy sein?
     
  14. barbara

    barbara G-WARD 2014-2020

    Registriert seit:
    14. August 2011
    Beiträge:
    35.452
    Danke erhalten:
    11.255
    Danke vergeben:
    1.606
    Ich weiß ja nicht von welcher Version Du kommst, aber für die 2.3.x gibt es eine neue MC Version.
    Die musst Du updaten.
     
  15. Dan (sunnywall.de)

    Dan (sunnywall.de) Erfahrener Benutzer

    Registriert seit:
    16. April 2013
    Beiträge:
    1.263
    Danke erhalten:
    138
    Danke vergeben:
    122
    Danke fürs Modul nur:
    Bevor ich das jetzt nochmal mit dem Update versuche,
    bei mir sieht es schon wirklich übel aus und weiß nicht so recht wie ich das jetzt lösen kann.


    Suche potenziell veraltete Template-Dateien, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    /templates/EyeCandy/module/checkout_wirecard_checkout_page_iframe.html
    /templates/EyeCandy/module/checkout_wirecard_checkout_page.html
    /templates/EyeCandy/module/checkout_success.html
    /templates/EyeCandy/module/checkout_shipping-USERMOD.html
    /templates/EyeCandy/module/checkout_success-USERMOD.html
    /templates/EyeCandy/module/checkout_payment_hp.html
    /templates/EyeCandy/module/create_account.html
    /templates/EyeCandy/module/checkout_masterpayment.html
    /templates/EyeCandy/module/create_account_guest.html
    /templates/EyeCandy/boxes/box_trusted.html
    /templates/EyeCandy/objects/product_boxes_list-USERMOD.html
    /templates/MobileCandy/module/wish_list.html
    /templates/MobileCandy/module/checkout_success.html
    /templates/MobileCandy/module/main_content.html
    /templates/MobileCandy/module/shopping_cart.html
    /templates/MobileCandy/module/checkout_qpay.html
    /templates/MobileCandy/module/checkout_payment_hp.html
    /templates/MobileCandy/module/gm_product_images.html
    /templates/MobileCandy/module/sitemap.html
    /templates/MobileCandy/module/checkout_iclear.html
    /templates/MobileCandy/module/checkout_vrepay_dialog.html
    /templates/MobileCandy/module/checkout_payment.html
    /templates/MobileCandy/module/checkout_shipping_address.html
    /templates/MobileCandy/module/create_account.html
    /templates/MobileCandy/module/checkout_shipping.html
    /templates/MobileCandy/module/checkout_confirmation.html
    /templates/MobileCandy/module/create_account_guest.html
    /templates/MobileCandy/module/checkout_payment_address.html
    /templates/MobileCandy/module/gm_tell_a_friend.html
    /templates/MobileCandy/module/checkout_qpay_iframe.html
    /templates/MobileCandy/objects/product_boxes_list.html


    Suche potenziell veraltete E-Mail-Vorlagen, die eine eventuell nicht mehr vorhandene conf-Datei laden...

    nichts gefunden

    Suche potenziell veraltete Template-Dateien, die den veralteten Smarty-Tag {php} nutzen...


    /templates/EyeCandy/module/product_options/product_options_dropdown.html
    /templates/EyeCandy/module/product_options/product_options_selection.html
    /templates/EyeCandy/module/print_order.html
    /templates/EyeCandy/module/gm_product_options/product_options_dropdown.html
    /templates/EyeCandy/module/gm_product_options/product_options_selection.html
    /templates/EyeCandy/module/checkout_payment.html
    /templates/EyeCandy/module/categorie_listing/categorie_listing.html
    /templates/MobileCandy/module/product_options/product_options_dropdown.html
    /templates/MobileCandy/module/product_options/table_listing.html
    /templates/MobileCandy/module/product_options/product_options_selection.html
    /templates/MobileCandy/module/print_order.html
    /templates/MobileCandy/module/gm_product_options/product_options_dropdown.html
    /templates/MobileCandy/module/gm_product_options/product_options_selection.html
    /templates/MobileCandy/module/shopping_cart.html
    /templates/MobileCandy/module/checkout_paypal.html
    /templates/MobileCandy/module/checkout_payment_block.html
    /templates/MobileCandy/module/account.html
    /templates/MobileCandy/module/checkout_payment.html
    /templates/MobileCandy/index.html
    /lang/german/mail_templates/_samples/order_mail.html
    /lang/english/mail_templates/_samples/order_mail.html
    /admin/templates/image_mapper_standard.html
    /admin/templates/properties/properties_combis_delete.html


    Suche potenziell veraltete E-Mail-Vorlagen, die den veralteten Smarty-Tag {php} nutzen...

    order_mail (Format: txt, Sprach-ID: 2)
    order_mail (Format: html, Sprach-ID: 2)
     
  16. Torben Wark

    Torben Wark Gambio GmbH

    Registriert seit:
    15. Juli 2014
    Beiträge:
    2.581
    Danke erhalten:
    1.178
    Danke vergeben:
    399
    Hi Dan,

    bist du jetzt noch auf einer Version kleiner als 2.3.x? Wenn ja seh ich da bei dir im Moment nur drei USERMOD-Dateien und die beiden E-Mail-Vorlagen, die du bearbeiten müsstest. Die anderen sollten dann mit einem Update des Shops und des MobileCandy auf die aktuellsten Versionen überschrieben oder entfernt werden.

    LG Torben
     
  17. Dan (sunnywall.de)

    Dan (sunnywall.de) Erfahrener Benutzer

    Registriert seit:
    16. April 2013
    Beiträge:
    1.263
    Danke erhalten:
    138
    Danke vergeben:
    122
    #17 Dan (sunnywall.de), 30. Juli 2015
    Zuletzt bearbeitet: 30. Juli 2015
    Version 2.2.0.0
    Da geht's ja schon los. Mein Template Ersteller ist nicht mehr und ich hab keine Ahnung davon, zumindest nicht großartig.
    Ich versuche gerade eine Testumgebung Local zu schaffen um das schneller testen zu können.
    Find aber noch nicht das richtig Programm dazu.


    edit:


    Ich werde hier weiter berichten:


    http://www.gambio-forum.de/threads/21107-Update-von-2.2-auf-2.3.2.2/page3