# Fehlermeldung bei Bestellabschluss

**URL:** https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907
**Category:** Shopware 3.5
**Tags:** general
**Created:** [25. Mai 2011 um 14:05 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907 "2011-05-25T14:05:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![KarinS](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@KarinS](https://forum.shopware.com/u/KarinS)
#### Post date: [25. Mai 2011 um 14:05 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/1 "2011-05-25T14:05:55Z")

</div>

Hallo! Bei meinem neuen Shop kann kein Abschluss des Bestellprozesses erfolgen. Hierbei wird folgende Fehlermeldung ausgegeben, die nicht interpretiert werden kann. In dieser Datei wurden keine Änderungen durchgeführt: [12:19:01] Pat: Syntax Error in template “string:” on line 48 " {if additional.payment.name == \"debit\"} " - Unexpected "\", expected one of: "{" , "" , “identifier” , LDELIF , LDELFOR , LDELFOREACH , “closing tag” , INTEGER , “+” , “-” , “(” , “(!,not)” , TYPECAST , HEX , “.” , SINGLEQUOTESTRING , “#” , “[” , “”" in Vendor/Smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php on line 404 Stack trace: #0 Vendor/Smarty/libs/sysplugins/smarty\_internal\_templateparser.php(2699): Smarty\_Internal\_TemplateCompilerBase-\>trigger\_template\_error() #1 Vendor/Smarty/libs/sysplugins/smarty\_internal\_templateparser.php(2764): Smarty\_Internal\_Templateparser-\>yy\_syntax\_error(10, ‘’) #2 Vendor/Smarty/libs/sysplugins/smarty\_internal\_smartytemplatecompiler.php(51): Smarty\_Internal\_Templateparser-\>doParse(10, ‘’) #3 Vendor/Smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php(83): Smarty\_Internal\_SmartyTemplateCompiler-\>doCompile(’

compileTemplate(Object(Enlight\_Template\_Template)) #5 Vendor/Smarty/libs/sysplugins/smarty\_internal\_template.php(426): Smarty\_Internal\_Template-\>compileTemplateSource() #6 Enlight/Template/Template.php(46): Smarty\_Internal\_Template-\>renderTemplate() #7 Vendor/Smarty/libs/sysplugins/smarty\_internal\_template.php(568): Enlight\_Template\_Template-\>renderTemplate() #8 Vendor/Smarty/libs/Smarty.class.php(328): Smarty\_Internal\_Template-\>getRenderedTemplate() #9 engine/core/class/sOrder.php(915): Smarty-\>fetch('string:  
sendMail(Array) #11 Shopware/Controllers/Frontend/Checkout.php(401): sOrder-\>sSaveOrder() #12 Shopware/Controllers/Frontend/Checkout.php(127): Shopware\_Controllers\_Frontend\_Checkout-\>saveOrder() #13 Enlight/Controller/Action.php(55): Shopware\_Controllers\_Frontend\_Checkout-\>finishAction() #14 Enlight/Controller/Dispatcher/DispatcherDefault.php(329): Enlight\_Controller\_Action-\>dispatch(‘finishAction’) #15 Enlight/Controller/Front.php(88): Enlight\_Controller\_Dispatcher\_DispatcherDefault-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #16 Shopware/Bootstrap.php(21): Enlight\_Controller\_Front-\>dispatch() #17 Enlight/Application.php(69): Shopware\_Bootstrap-\>run() #18 shopware.php(6): Enlight\_Application-\>run() #19 {main}

---

<div class="post-metadata">

### Author: ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)
#### Post date: [25. Mai 2011 um 14:10 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/2 "2011-05-25T14:10:41Z")

</div>

[http://wiki.shopware.de/Bestellabschlus … l\_656.html](http://wiki.shopware.de/Bestellabschluss-Syntax-Error-in-template%5C_detail%5C_656.html) Da muss die Vorlage korrigiert werden. Alternativ kannst du auch die neuen aus dem Wiki kopieren. In der Vorlage sind Backslashes enthalten, die dieses Problem verursachen. Das kann z.B. daher kommen, dass magic\_quotes (Mindestvoraussetzung Server) aktiv war, oder ist. Wenn dann eMail-Vorlagen gespeichert werden, können diese zerstört werden.

---

<div class="post-metadata">

### Author: ![closed85](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@closed85](https://forum.shopware.com/u/closed85)
#### Post date: [26. Mai 2011 um 08:46 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/3 "2011-05-26T08:46:12Z")

</div>

um welche datei handelt es sich dabei genau? bzw welche vorlage muss wo genau angepasst werden? besten dank

---

<div class="post-metadata">

### Author: ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)
#### Post date: [26. Mai 2011 um 08:59 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/4 "2011-05-26T08:59:31Z")

</div>

“Einstellungen / eMail-Vorlagen / sORDER Vielen Dank für Ihre Bestellung…” [http://wiki.shopware.de/Bestellabschlus … il\_51.html](http://wiki.shopware.de/Bestellabschluss-eMail%5C_detail%5C_51.html)

---

<div class="post-metadata">

### Author: ![hansluftikus](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hansluftikus](https://forum.shopware.com/u/hansluftikus)
#### Post date: [2. September 2011 um 10:29 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/5 "2011-09-02T10:29:10Z")

</div>

Hallo, Ich erhalte folgende Fehlermeldung. Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Syntax Error in template „string:“ on line 48 " {if additional.payment.name == \\\"debit\\\"} " - Unexpected "\", expected one of: "{" , "" , „identifier“ , LDELIF , LDELFOR , LDELFOREACH , „closing tag“ , INTEGER , „+“ , „-“ , „(“ , „(!,not)“ , TYPECAST , HEX , „.“ , SINGLEQUOTESTRING , „#“ , „[“ , „“" in Vendor/Smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php on line 404 Stack trace: #0 Vendor/Smarty/libs/sysplugins/smarty\_internal\_templateparser.php(2699): Smarty\_Internal\_TemplateCompilerBase-\>trigger\_template\_error() #1 Vendor/Smarty/libs/sysplugins/smarty\_internal\_templateparser.php(2764): Smarty\_Internal\_Templateparser-\>yy\_syntax\_error(10, ‚‘) #2 Vendor/Smarty/libs/sysplugins/smarty\_internal\_smartytemplatecompiler.php(51): Smarty\_Internal\_Templateparser-\>doParse(10, ‚‘) #3 Vendor/Smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php(83): Smarty\_Internal\_SmartyTemplateCompiler-\>doCompile(’

compileTemplate(Object(Enlight\_Template\_Template)) #5 Vendor/Smarty/libs/sysplugins/smarty\_internal\_template.php(426): Smarty\_Internal\_Template-\>compileTemplateSource() #6 Enlight/Template/Template.php(46): Smarty\_Internal\_Template-\>renderTemplate() #7 Vendor/Smarty/libs/sysplugins/smarty\_internal\_template.php(568): Enlight\_Template\_Template-\>renderTemplate() #8 Vendor/Smarty/libs/Smarty.class.php(328): Smarty\_Internal\_Template-\>getRenderedTemplate() #9 engine/core/class/sOrder.php(892): Smarty-\>fetch('string:  
sendMail(Array) #11 Shopware/Controllers/Frontend/Checkout.php(473): sOrder-\>sSaveOrder() #12 Shopware/Controllers/Frontend/Checkout.php(164): Shopware\_Controllers\_Frontend\_Checkout-\>saveOrder() #13 Enlight/Controller/Action.php(70): Shopware\_Controllers\_Frontend\_Checkout-\>finishAction() #14 Enlight/Controller/Dispatcher/DispatcherDefault.php(329): Enlight\_Controller\_Action-\>dispatch(‚finishAction‘) #15 Enlight/Controller/Front.php(99): Enlight\_Controller\_Dispatcher\_DispatcherDefault-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #16 Shopware/Bootstrap.php(33): Enlight\_Controller\_Front-\>dispatch() #17 Enlight/Application.php(86): Shopware\_Bootstrap-\>run() #18 shopware.php(6): Enlight\_Application-\>run() #19 {main} Wo liegt der Fehler bzw. wie korrigiert man das? MfG

---

<div class="post-metadata">

### Author: ![tschersich](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tschersich](https://forum.shopware.com/u/tschersich)
#### Post date: [2. September 2011 um 10:57 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/6 "2011-09-02T10:57:29Z")

</div>

[quote=“hansluftikus”] Syntax Error in template “string:” on line 48 " {if additional.payment.name == \\\"debit\\\"} " - Unexpected "\", expected one of: "{" , "" , “identifier” , LDELIF , LDELFOR , LDELFOREACH , “closing tag” , INTEGER , “+” , “-” , “(” , “(!,not)” , TYPECAST , HEX , “.” , SINGLEQUOTESTRING , “#” , “[” , “”" in Vendor/Smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php on line 404 Wo liegt der Fehler bzw. wie korrigiert man das?[/quote] \“debit\”} " - Unexpected “” magic\_quotes ist in Deinen php-Einstellungen an. Grundvoraussetzung für Shopware ist, dass es aus ist. So hauen Dir die magic\_quotes “magische Quotierungen” \ rein, wo sie zu Fehlern führen.

---

<div class="post-metadata">

### Author: ![hansluftikus](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hansluftikus](https://forum.shopware.com/u/hansluftikus)
#### Post date: [2. September 2011 um 11:15 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/7 "2011-09-02T11:15:43Z")

</div>

magic\_quotes war bei der Istallation an. Jetzt habe ich es geändert. Ich habe mir mal den HTML-Code des sORDER angeschau und musste feststellen, das einige “\” vorhanden sind. Reicht es diese alle zu entfernen? MfG

---

<div class="post-metadata">

### Author: ![Stefan\_Hamann](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Stefan\_Hamann](https://forum.shopware.com/u/Stefan_Hamann)
#### Post date: [2. September 2011 um 17:37 UTC](https://forum.shopware.com/t/fehlermeldung-bei-bestellabschluss/2907/8 "2011-09-02T17:37:51Z")

</div>

Ja
