Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Managing Customers and Orders / Blank page when trying to register.

Blank page when trying to register.

Started by pensaro1 on 30 Oct 2011, 7:13 PM · Views: 4,070

Results 1 to 20 of 27
30 Oct 2011, 7:13 PM
#1
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Blank page when trying to register.

Hello. I have been trying to test my site to make sure its working OK. by having someone create an account. When they try to do this they are met with a blank page and nothing gets recorded to tell me anything. Where do I start looking to fix this?
ZC 1.3.9h. Linux server. PHP 5.2.17 (Zend2.2.0).
My site www.pensaro.com. :dontgetit

Lee

31 Oct 2011, 8:03 AM
#3
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

stevesh:

Start here:

https://www.zen-cart.com/tutorials/index.php?article=82
Hi stevesh and thanks for the pointer. I followed the tutorial and found this error message in my cache- 'PHP Parse error: syntax error, unexpected T_STRING in /home/MYNAME/public_html/gardenshop/includes/languages/english/create_account.php on line 20'
I was trying to change the welcome message and put my own store name. I have now changed it back to this 'define('EMAIL_SUBJECT', 'Welcome to 'STORE_NAME');' but on submitting a test registration I am still met with a blank page and the same error message in cache. I must be doing something wrong but what?

Lee

31 Oct 2011, 8:28 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,898
Plugin Contributions:
22

Re: Blank page when trying to register.

A few too many ' in the line. It should read```
define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

31 Oct 2011, 8:38 AM
#5
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

pensaro1:

Hi stevesh and thanks for the pointer. I followed the tutorial and found this error message in my cache- 'PHP Parse error: syntax error, unexpected T_STRING in /home/MYNAME/public_html/gardenshop/includes/languages/english/create_account.php on line 20'
I was trying to change the welcome message and put my own store name. I have now changed it back to this 'define('EMAIL_SUBJECT', 'Welcome to 'STORE_NAME');' but on submitting a test registration I am still met with a blank page and the same error message in cache. I must be doing something wrong but what?
Hello to everyone. I think I found the mistake. I checked in my backup files and I think I had these ' ' in the wrong place. It should be 'Welcome to ' . STORE_NAME); instead of the above. Things seem to work OK now. Thanks to stevesh for pointing me in the right direction. Thanks to dbltoe also. I found the mistake before reading your message but if I hadn't it would have helped. Thanks.

Lee

31 Oct 2011, 12:12 PM
#6
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Hello again. I have solved 1 problem and now found another. New registrations work and the success message comes to the screen. That's good. Now however I found that the welcome message does not go to the new registrant but comes back to '[email protected]'. I have been trying to find where to fix that without success so far. :frusty:

Lee

2 Nov 2011, 9:17 AM
#7
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

pensaro1:

Hello again. I have solved 1 problem and now found another. New registrations work and the success message comes to the screen. That's good. Now however I found that the welcome message does not go to the new registrant but comes back to '[email protected]'. I have been trying to find where to fix that without success so far. :frusty:

2 Nov. Further information for anyone who might be able to help. I have a redirect for my business email to go to my personal email inbox. Other messages are getting thru but the welcome email from my zencart store is not. It seems to go FROM ZC and ends up back IN my ZC inbox. :dontgetit

Lee

3 Nov 2011, 8:45 PM
#8
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Update on this issue. Because I can't find out why the welcome email is not going to new customers I have removed the part of the message referring to a welcome email in 'create_account_success.php.'
The result of that changes the look of the success screen to show this;- ''NAVBAR_TITLE_1 :: NAVBAR_TITLE_2
HEADING_TITLE
TEXT_ACCOUNT_CREATED
PRIMARY_ADDRESS_TITLE''
followed by name and other details. This is not how it was originally. Would really like some help on this. I suspect it has something to with the way ZC 'knows' who to send a welcome email to, but I am going round in circles searching forums and faqs. :dontgetit

Lee

4 Nov 2011, 2:48 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,898
Plugin Contributions:
22

Re: Blank page when trying to register.

My mother used to call it, "Jumping on your horse and riding madly off in all directions."
I think you should put the file back the way it's supposed to be in 1.3.9h, check your e-mail settings in youradmin, and let us know more about the site.

You can start by replying with answers to the questions in the posting tips. Since this is not a common problem, it might not be easy to find. Therefore we need everything but your shoe size in order to try and duplicate the problem.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

4 Nov 2011, 9:55 AM
#10
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Hi again and thanks for trying to help. I have put that file back the way it was and cleared the browser cache. Registration IS succesful and shows in my list of customers and the account seems to work but the success account created screen still looks like this;-
NAVBAR_TITLE_1 :: NAVBAR_TITLE_2
HEADING_TITLE
TEXT_ACCOUNT_CREATED
PRIMARY_ADDRESS_TITLE.... Name and other details.

That screen is not how it was but the only real problem is that a welcome email IS being sent but it goes from my business email back to my business email and not to customer.

Details which might be helpful are;-
ZC 1.3.9h. Linux server (linuxweb49 apache). PHP 5.2.17 (Zend2.2.0). mysql 5.1.56. Host - Justhost.

Lee

4 Nov 2011, 10:14 AM
#11
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Found this in error cache;-

[05-Feb-2011 01:16:59] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/myname/public_html/gardenshop/includes/languages/english.php on line 25

and this is line 25

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

Lee

6 Nov 2011, 11:26 AM
#12
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Hello again. I am not getting anywhere with this so is there anyone who can tell me what steps and what files ZC uses to create and send welcome emails? I have the full file set I can use to compare with those I currently use to see if anything is wrong. :frusty::frusty:

Lee

6 Nov 2011, 1:41 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page when trying to register.

Could you please post lines 20 - 30 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Nov 2011, 3:49 PM
#14
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Ajeh:

Could you please post lines 20 - 30 ...
Hi Ajeh and thanks for trying to help.:smile: Here are lines 20 -30

// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
  @setlocale(LC_TIME, 'en_US.ISO_8859-1');
  define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
  define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
  define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
  define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy

Lee

6 Nov 2011, 4:16 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page when trying to register.

I am not seeing the error ... :blink:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Nov 2011, 8:26 PM
#16
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Hello again. I can't see any error either but I don't anything about code. The error message said line 25 which is as you see it above. I really don't know what that has to do with welcome emails being sent anyway. :dontgetit:dontgetit

Lee

6 Nov 2011, 9:11 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page when trying to register.

Based on the date it happened almost a year ago ...

Why don't you delete all for the *.log files in the /cache and then navigate around your site for a bit then refresh the /cache and see if you have any current debug logs generated ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Nov 2011, 9:50 PM
#18
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Hello again. I have deleted the debug files, created yet another test account and still the same. Welcome email (probably the copy) goes to business (zc) inbox but not to customer. No new error files in cache.

Lee

7 Nov 2011, 1:12 AM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page when trying to register.

Are you able to send out emails from the Admin in the Tools ... Send Emails?

When you create an Order do both you and the Customer get a copy of the email?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Nov 2011, 11:54 AM
#20
pensaro1 avatar

pensaro1

New Zenner

Join Date:
Feb 2009
Posts:
69
Plugin Contributions:
0

Re: Blank page when trying to register.

Hello again. I really appreciate you trying to help with this. I can send emails from admin/tools and the test worked. An account can be created and customer shows in admin. An order can also be made but order notification email does NOT go to customer only to admin inbox.

Lee