View Single Post
  #61  
Old 05-07-2015, 02:38 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by aim
Thanks, the bug seems to be the following:

The payment processor Cardgate (cardgate.com) has payment methods for X-Cart which we've asked them to update for 4.6, which they did. However, they do not have the following files:

Quote:
customer/main/payment_cgp_mistercash.tpl
customer/main/payment_cgp_directebanking.tpl
customer/main/payment_cgp_giropay.tpl
These errors always existed since Cardgate did not create these files for their payment methods, but now only with the new Smart Engine does the entire site stop on this error with your patch:
Quote:
[07-May-2015 11:35:34 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template file 'customer/main/payment_cgp_giropay.tpl' in 'modules/One_Page_Checkout/payment_methods.tpl'
Backtrace:Array
(
[0] => Array
(
[function] => __toString
[class] => SmartyException
[type] => ->
[args] => Array
(
)

)

)
<--
thrown in /var/www/include/lib/smarty3/sysplugins/smarty_internal_templatebase.php on line 129

The payment methods work just fine without these files, but now smarty stops since the files do not exist. Replacing the template files with customer/main/payment_offline.tpl in the database does the trick & fixes it.

In the end, it seems to be a problem with these payment methods & this is not a bug in the update.
__________________
X-Cart 4.7.12
Reply With Quote