Zen Cart Logo
Forums / General Questions / Blank page when registering

Blank page when registering

Locked

Views: 3,566

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
29 Oct 2007, 5:30 PM
#1
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Blank page when registering

I am getting a blank page when clicking the SUBMIT button when registering. I have made a few changes to the site today, particularly to the wording of various emails and the wording the the new registering user sees when he clicks that button and this may be the cause.

However can any of you clever people tell me what could cause this and if possible where I should narrow my search to look for the cause?

Many thanks

Rob

29 Oct 2007, 7:36 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Blank page when registering

robsnowden:

I am getting a blank page when clicking the SUBMIT button when registering. I have made a few changes to the site today, particularly to the wording of various emails and the wording the the new registering user sees when he clicks that button and this may be the cause.

However can any of you clever people tell me what could cause this and if possible where I should narrow my search to look for the cause?

Many thanks

Rob

I'm guessing here, but it appears that the problem may lie in whatever changes you made in the following file.

includes/languages/english/create_account_success.php

If you can post the contents of that file in particular the section that begins:

define('TEXT_ACCOUNT_CREATED', '... ');

We might be able to track down the problem

29 Oct 2007, 8:25 PM
#3
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: Blank page when registering

clydejones:

I'm guessing here, but it appears that the problem may lie in whatever changes you made in the following file.

includes/languages/english/create_account_success.php

If you can post the contents of that file in particular the section that begins:

define('TEXT_ACCOUNT_CREATED', '... ');

We might be able to track down the problem

Hello again. Here is contents you requested - as you will see it has been changed somewhat to suit my needs but it is entirely possible that I have made an error.

define('TEXT_ACCOUNT_CREATED', '<br /><br />Congratulations! Your Registration has been submitted successfully!<br /><br />A confirmation email has been sent to the email address you provided. If you have not received it within the hour, please <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">contact us</a>. <br /><br /> Make sure to check your spam folder first - just in case!!<br /><br />For now you can still browse our site but will not be able to place orders until your account has been authorised. All registrations are manually verified and you will shortly receive a further email confirming details of your account activation.<br /><br />Thank you.');

Cheers

Rob

29 Oct 2007, 8:41 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Blank page when registering

robsnowden:

Hello again. Here is contents you requested - as you will see it has been changed somewhat to suit my needs but it is entirely possible that I have made an error.

define('TEXT_ACCOUNT_CREATED', '<br /><br />Congratulations! Your Registration has been submitted successfully!<br /><br />A confirmation email has been sent to the email address you provided. If you have not received it within the hour, please <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">contact us</a>. <br /><br /> Make sure to check your spam folder first - just in case!!<br /><br />For now you can still browse our site but will not be able to place orders until your account has been authorised. All registrations are manually verified and you will shortly receive a further email confirming details of your account activation.<br /><br />Thank you.');

Cheers

Rob

What other files did you modify/edit?

29 Oct 2007, 8:49 PM
#5
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: Blank page when registering

includes/languages/english/create account
includes/languages/english/checkout_process.php
includes/languages.php
admin/includes/languages/english/customers.php
admin/email_welcome.php

That's about all!!

Rob

29 Oct 2007, 9:11 PM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Blank page when registering

robsnowden:

includes/languages/english/create account
includes/languages/english/checkout_process.php
includes/languages.php
admin/includes/languages/english/customers.php
admin/email_welcome.php

That's about all!!

Rob

can you post the entire contents of

includes/languages/english/create_account_success.php

29 Oct 2007, 9:16 PM
#7
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: Blank page when registering

clydejones:

can you post the entire contents of

includes/languages/english/create_account_success.php

Sure thing - btw the file above (languages.php) is clearly wrong - I was distracted!

Anyway the file contents you asked for are:

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: create_account_success.php 4816 2006-10-23 04:08:52Z drbyte $ */ define('NAVBAR_TITLE_1', 'Create an Account'); define('NAVBAR_TITLE_2', 'Success'); define('HEADING_TITLE', 'Thank you for your registration!'); define('TEXT_ACCOUNT_CREATED', '<br /><br />Congratulations! Your Registration has been submitted successfully!<br /><br />A confirmation email has been sent to the email address you provided. If you have not received it within the hour, please <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">contact us</a>. <br /><br /> Make sure to check your spam folder first - just in case!!<br /><br />For now you can still browse our site but will not be able to place orders until your account has been authorised. All registrations are manually verified and you will shortly receive a further email confirming details of your account activation.<br /><br />Thank you.'); define('PRIMARY_ADDRESS_TITLE', 'Primary Address'); ?>

Cheers

Rob

29 Oct 2007, 9:34 PM
#8
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Blank page when registering

robsnowden:

Sure thing - btw the file above (languages.php) is clearly wrong - I was distracted!

Anyway the file contents you asked for are:

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: create_account_success.php 4816 2006-10-23 04:08:52Z drbyte $ */ define('NAVBAR_TITLE_1', 'Create an Account'); define('NAVBAR_TITLE_2', 'Success'); define('HEADING_TITLE', 'Thank you for your registration!'); define('TEXT_ACCOUNT_CREATED', '<br /><br />Congratulations! Your Registration has been submitted successfully!<br /><br />A confirmation email has been sent to the email address you provided. If you have not received it within the hour, please <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">contact us</a>. <br /><br /> Make sure to check your spam folder first - just in case!!<br /><br />For now you can still browse our site but will not be able to place orders until your account has been authorised. All registrations are manually verified and you will shortly receive a further email confirming details of your account activation.<br /><br />Thank you.'); define('PRIMARY_ADDRESS_TITLE', 'Primary Address'); ?>

Cheers

Rob

Just to cover all bases ...

upload a clean copy of

includes/templates/template_default/tpl_create_account_success_default.php

29 Oct 2007, 9:47 PM
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Blank page when registering

clydejones:

Just to cover all bases ...

upload a clean copy of

includes/templates/template_default/tpl_create_account_success_default.php

Not sure where we are at the moment, but I just did a second registration and after clicking the submit button I was taken to the create account success page as expected.

Thank you for your registration!

Congratulations! Your Registration has been submitted successfully!

A confirmation email has been sent to the email address you provided. If you have not received it within the hour, please contact us.

Make sure to check your spam folder first - just in case!!

For now you can still browse our site but will not be able to place orders until your account has been authorised. All registrations are manually verified and you will shortly receive a further email confirming details of your account activation.

Thank you.

29 Oct 2007, 9:48 PM
#10
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: Blank page when registering

OK will do

Thanks for your continued help.

I will check again but it does seem to be an intermittent error and of course it would happen to the client today at the first viewing of his new site. I thought I had it cracked until I got his phone call :(

Rob

31 Oct 2007, 3:28 PM
#11
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: Blank page when registering

Hi

Sorry but I have been out of town for a few days.

When you say it all worked fine with your second registration can I ask what happened wit the first registration? Did this work ok or did you get the white screen then please?

Cheers

Rob

31 Oct 2007, 4:17 PM
#12
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Blank page when registering

robsnowden:

Hi

Sorry but I have been out of town for a few days.

When you say it all worked fine with your second registration can I ask what happened wit the first registration? Did this work ok or did you get the white screen then please?

Cheers

Rob

First registration: blank success screen, click back button and went to account information page..

Second registration: received success screen as expected.

31 Oct 2007, 7:39 PM
#13
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: Blank page when registering

hmm - there lies the issue. I did nothing in between your two tests.

Rob

2 Jul 2009, 4:21 PM
#14
derek53 avatar

derek53

Zen Follower

Join Date:
Jun 2009
Location:
uk
Posts:
111
Plugin Contributions:
0

Re: Blank page when registering

clydejones:

Just to cover all bases ...

upload a clean copy of

includes/templates/template_default/tpl_create_account_success_default.php

I have the same problem, but i also get a message telling me the email address just inputed is already registered ( when it hasnt been )

Uploading a clean file hasnt made any difference

8 Aug 2009, 12:43 AM
#15
modmuse avatar

modmuse

New Zenner

Join Date:
Aug 2009
Posts:
8
Plugin Contributions:
0

Re: Blank page when registering

derek53:

I have the same problem, but i also get a message telling me the email address just inputed is already registered ( when it hasnt been )

Uploading a clean file hasnt made any difference

That is precisely what I am dealing with right now...

I uninstalled Zen Cart and reinstalled a whole new Zen Cart to see what was causing the problem.

The first thing I modified after installing a fresh copy of Zen Cart was the create_account.php file by taking out the line about birthday gifts, etc. That's when I started to see the blank page after hitting 'submit' to create a new account...also, the error message about email shows up too, like the post above me states.

I uploaded the original create_account.php file and still get a blank page. Yes, I tried to use the debugging tool, but honestly don't know where to find the /cache/debugging.log (whatever-you-call-it) file. :blush:

Anyone else able to resolve this same problem? Thanks in advance.


My version is 1.3.8a
PHP: 5.2.9

8 Aug 2009, 1:27 AM
#16
modmuse avatar

modmuse

New Zenner

Join Date:
Aug 2009
Posts:
8
Plugin Contributions:
0

Re: Blank page when registering

Ok...I wanted to revisit this thread and post the solution I found to the problem with a blank page after creating a new account...

Essentially, there was a blank space after the last ?> in my create_account.php file. It was something as simple as that! I deleted the space, uploaded my corrected create_account.php file to the server, and presto! No more blank page. :D

This tutorial helped me spot the issue: https://www.zen-cart.com/tutorials/index.php?article=87.

To modify the create_account.php file so that it doesn't include the address book/birthday gifts line in your client's welcome email, replace the original define block with the following:

define('EMAIL_TEXT', 'With your account, you can now take part in the <strong>various services</strong> we have to offer you. Some of these services include:' . "\n\n" . '<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n\n" . '<li><strong>Order History</strong> - View your history of purchases that you have made with us.' . "\n\n" . '<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers.' . "\n\n");

This new define block was posted by kobra here: http://www.zen-cart.com/forum/showthread.php?t=124932&highlight=blank+page+create+account.


Many thanks to the folks who maintain this forum. I've always found a wealth of knowledge here. Best wishes to everyone! :smile: