keneso Posted July 21, 2011 Share Posted July 21, 2011 Hi, I get a blank page on checkout, on the troubleshooting page (http://docs.whmcs.com/Common_Troubleshooting_Tips#User_Redirected_to_Wrong_Page_on_Checkout) I read this If you have customised your WHMCS header template and added or removed a form, you will need to update the forwardpage.tpl template file which by default will submit form 0 or 1 on the page - if you add a form to your header need to add 1 to the forms[x] setting in that file, if you remove one, you need to subtract 1 But I am not sure I understand it. I have added the login form to my header, and in the forwarpage.tpl I have <br /><br /> <p align="center">{$message}</p> <p align="center"><img src="images/loading.gif" alt="Loading" border="0" /></p> <p align="center">{$code}</p> <form method="post" action="{if $invoiceid}viewinvoice.php?id={$invoiceid}{else}clientarea.php{/if}"></form> <br /><br /><br /> {literal} <script language="javascript"> setTimeout ( "autoForward()" , 5000 ); function autoForward() { document.forms[0].submit() } </script> {/literal} Do I have to change document.forms[0].submit() to document.forms[1].submit() ? Thank you 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 21, 2011 WHMCS Support Manager Share Posted July 21, 2011 Yes that's right. If the problem persists try this: http://forum.whmcs.com/showthread.php?t=21317 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted July 21, 2011 Author Share Posted July 21, 2011 Thank you, I had tried the $display_errors = true; but nothing displayed. I'll try the form value change, and in case report back. 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted July 21, 2011 Author Share Posted July 21, 2011 It has to do with my template ... I changed different orderforms, and it kept giving blank page, I then went back to default template, and it works. Unfortunatelly no error reports with the $display_errors = true; Any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
GGWH-James Posted July 21, 2011 Share Posted July 21, 2011 You may find some indication as to what the issue may be within error_log. 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted July 21, 2011 Author Share Posted July 21, 2011 Thank you. I don't know where to look for the error log ... I did change single files with the default tpl, and the culprit appears to be the invoicepdf.tpl, I kept the default one with my tpl, and seems ok. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.