Jump to content

Order fatal error


Recommended Posts

Welcome
I have a problem:
My theme is "theme001". When I confirm my order (bankwire on cashondelivery) I have an error:

Fatal error: Smarty error: [in /home/emils/domains/es-mot.pl/public_html/modules/cashondelivery/validation.tpl line 23]: syntax error: expecting '=' after attribute name 'confirm' (Smarty_Compiler.class.php, line 1558) in /home/emils/domains/es-mot.pl/public_html/tools/smarty/Smarty.class.php on line 1095


or


Fatal error: Smarty error: [in /home/emils/domains/es-mot.pl/public_html/themes/theme001/modules/bankwire/payment_execution.tpl line 45]: syntax error: expecting '=' after attribute name 'confirm' (Smarty_Compiler.class.php, line 1558) in /home/emils/domains/es-mot.pl/public_html/tools/smarty/Smarty.class.php on line 1095

So I delete folder in my theme (bankwire), and I have the same problem.

pls help

Link to comment
Share on other sites

The problem seems to be this line:

{l s='Please confirm your order by clicking \'I confirm my order\'' mod='cashondelivery'}.



For some reason, Smarty isn't reading the \' right and thinks it is the end of the string, then it fails on the confirm word. I'm not sure why it works on my website, but not yours. The only solution I can think of is to change it to:

{l s='Please confirm your order by clicking "I confirm my order"' mod='cashondelivery'}.



This will use " instead of ' to avoid escaping characters. There are many other strings that are escaped a similiar way to this string though, so it's likely you will encounter issues in other places.

Link to comment
Share on other sites

Thanks for reply.

It's the same problem :/

Fatal error: Smarty error: [in /home/emils/domains/es-mot.pl/public_html/modules/cashondelivery/validation.tpl line 23]: syntax error: expecting '=' after attribute name


I don't change anything in these files, so I dont know why is that error.
Sory for my english

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...
  • 3 weeks later...
×
×
  • Create New...