nmbhulani Posted May 8, 2021 Share Posted May 8, 2021 Hi A few days back when I attempted to browse my site https://paintnhardware.com, I got a blank page. Upon enabling debugging, I get this error Quote Fatal error: Illegal length modifier specified 'f' in s[np]printf call in /home/paintn5/public_html/tools/smarty/sysplugins/smarty_internal_template.php on line 192 The smarty cache was disabled and Template Forced compilation was enabled. Till now this setting was working perfectly fine and I have not added any new modules or made any code changes. So, I set Template Compilation to : Recompile templates if the files have been updated. Now the homepage loads. But I have an issue with the order page .. https://paintnhardware.com/order . When the "Proceed to Checkout" button is clicked, the page has a 500 error. But when we refresh the page, the order page loads. The order progresses smoothly after that. How can I avoid this 500 error on the order page ? Please help. Thanks in advance. Namit Link to comment Share on other sites More sharing options...
joseantgv Posted May 8, 2021 Share Posted May 8, 2021 First of all you need to know which is the error: Link to comment Share on other sites More sharing options...
nmbhulani Posted May 8, 2021 Author Share Posted May 8, 2021 (edited) Yes I have enabled debugging as mentioned in my earlier post. The quoted error is displayed when I enabled debugging. Edited May 8, 2021 by nmbhulani (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted May 8, 2021 Share Posted May 8, 2021 Oh, sorry. Could you upload a screenshot for the full error? Link to comment Share on other sites More sharing options...
nmbhulani Posted May 8, 2021 Author Share Posted May 8, 2021 even after turning on debugging, the page is absolutely blank when the proceed to checkout button is clicked. But now magically, it is working again. I now have a new issue. The payment validation is not happening and no status is assigned to the order. Link to comment Share on other sites More sharing options...
nmbhulani Posted May 8, 2021 Author Share Posted May 8, 2021 Hi, Sorry for changing so many tracks, but the bug keeps evolving. The error now is that there is no status assigned to the order once payment is confirmed on the validation page. Could you please suggest a solution. Thanks in advance. Link to comment Share on other sites More sharing options...
nmbhulani Posted May 8, 2021 Author Share Posted May 8, 2021 Found a solution. It could be that your email templates have not been assigned. Assign an email template to "Payment Accepted" in Orders->Statuses 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