Jump to content

500 error when customer finish the order....


HeyVoOn

Recommended Posts

After upgrading to the latest version of the PayPal module as it was requested. I started to have serious problems where none of my customers are able to finalize an order. They are getting "Error 500".

 

post-944125-0-12232200-1468486739_thumb.jpg

 

Went to look at the server log and found the following....

 

PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/carlallu/public_html/shop/modules/paypal/views/templates/front/order-confirmation-mobile.tpl" on line 64 "<a href="{$link->getPageLink('history.php', true, NULL, 'step=1&back={$back|escape:'htmlall':'UTF-8'}')}" data-ajax="false">{l s='Back to orders' mod='paypal'}</a>" - Unexpected "htmlall", expected one of: "","" , ")" <--
thrown in /home/carlallu/public_html/shop/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 64

 

 

Please HELP as I am loosing a lot of sales :-(

 

 

Link to comment
Share on other sites

How about this ?

 

in file /modules/paypal/views/templates/front/order-confirmation-mobile.tpl, line 64, change to :

 

<a href="{$link->getPageLink('history.php', true, NULL, 'step=1&back={$back}')|escape:'htmlall':'UTF-8'}" data-ajax="false">{l s='Back to orders' mod='paypal'}</a>

 

Looks like there is a pb in the template.

 

regards.

 

Jim

Edited by miaoumix (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

Now you can try to update PayPal module to new 3.11

 

If the problem continues after update, I found this solution: https://github.com/PrestaShop/paypal/pull/51

 

Then you can try to replace line 64 in file /modules/paypal/views/templates/front/order-confirmation-mobile.tpl

<a href="{$link->getPageLink('history.php', true, NULL, 'step=1&back={$back|escape:'htmlall':'UTF-8'}')}" data-ajax="false">{l s='Back to orders' mod='paypal'}</a>

to:

<a href="{$link->getPageLink('history.php', true)|escape:'htmlall':'UTF-8'}" title="{l s='Back to orders' mod='paypal'}" data-ajax="false">{l s='Back to orders' mod='paypal'}</a>

regards

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...