Jump to content

blank checkout - read troubleshooting


keneso

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated