m-graphix Posted March 28, 2012 Share Posted March 28, 2012 I installed and configured Authorize.net free module. The charge process works OK, I get all confirmation emails, but after that, the order confirmation page throws an ugly smarty error: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home6/rivertwo/public_html/modules/authorizesim/order-confirmation.tpl" on line 3 "<h2 style="color:red">{l s='Payment error mod='authorizesim'}</h2>" - Unexpected "authorizesim", expected one of: "}" , " "' in /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(18, 'authorizesim') #2 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templateparser->doParse(18, 'authorizesim') #3 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smar in /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431 Anyone has any suggestions? Much appreciated... Link to comment Share on other sites More sharing options...
tomerg3 Posted March 28, 2012 Share Posted March 28, 2012 looks like it it not compatible with Smarty V3 Where did you get the module? Link to comment Share on other sites More sharing options...
m-graphix Posted March 28, 2012 Author Share Posted March 28, 2012 That would be odd, I got the module from Prestashop main website: http://addons.prestashop.com/en/payments-gateways/4423-authorizenet.html Is there another module that works? Link to comment Share on other sites More sharing options...
tomerg3 Posted March 28, 2012 Share Posted March 28, 2012 What version of PS are you using? and what version of Smarty? Link to comment Share on other sites More sharing options...
m-graphix Posted March 28, 2012 Author Share Posted March 28, 2012 I'm using Prestashop 1.4.7 and Smarty V3 Link to comment Share on other sites More sharing options...
tomerg3 Posted March 28, 2012 Share Posted March 28, 2012 Very odd, I would post a but in the bug tracker. Link to comment Share on other sites More sharing options...
m-graphix Posted March 28, 2012 Author Share Posted March 28, 2012 Just did it. I'll see if someone has any ideas... Link to comment Share on other sites More sharing options...
m-graphix Posted March 29, 2012 Author Share Posted March 29, 2012 OK, the module was wrong on their end. If anyone has the same problem, here is the fix: 1. Open the file /modules/authorizesim/order-confirmation.tpl 2. Change line 3 to this: <h2 style="color:red">{l s='Payment error' mod='authorizesim'}</h2> (the closing apostrophe after error was missing) 3. Change line 8 to this: <h2 style="color:green">{l s='Payment Successful' mod='authorizesim'}</h2> (the closing apostrophe after Successful was missing) I suggested to Prestashop Team/Customer Service to fix the module on their end, but I don't know how soon they'll do it. Link to comment Share on other sites More sharing options...
abdulwahabhabib Posted December 10, 2015 Share Posted December 10, 2015 do you have the authorize.net sim module? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now