make69 Posted July 6, 2023 Share Posted July 6, 2023 I got this error on frontend. Whenever a customer clicked "Complete payment" (the last step) There was an error 500. When one reloaded the Error 500 page it showed the order confirmation. What solved the issue was to open the file /config/smartyfront.config.inc.php and editing the function starting on line 95 function smartyRender($params, &$smarty) { $ui = $params['ui']; if (array_key_exists('file', $params)) { $ui->setTemplate($params['file']); } return $ui->render($params); } into function smartyRender($params, &$smarty) { $ui = $params['ui']; if ($ui !== null) { if (array_key_exists('file', $params)) { $ui->setTemplate($params['file']); } return $ui->render($params); } else { // Handle the case where $params['ui'] is null // You can throw an exception, log an error, or take appropriate action. } } The if checks whether the value $ui is null and if it is not it does what prestashop wants it to do (setTemplate etc) but if it in fact IS null it just does nothing. Please feel free to add a function in the area where the comments are ( // ... ) 1 1 Link to comment Share on other sites More sharing options...
CarlosLoyolaV Posted July 13, 2023 Share Posted July 13, 2023 Very useful! Thanks a lot! 1 Link to comment Share on other sites More sharing options...
koblote Posted January 22 Share Posted January 22 Thank you, your post help me a lot and fix my issue error : config/smartyfront.config.inc.php on line 97 a blank page after the payment/checkout 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