Zen Cart Logo
Forums / Basic Configuration / checkout_success page is blank

checkout_success page is blank

Views: 2,096

Results 1 to 18 of 18
15 Feb 2011, 4:06 AM
#1
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

checkout_success page is blank

ZC 1.3.9h
The checkout_success is blank after an order is confirmed. I looked at the source of the page and it too is blank.

In the Define Pages editor, I have changed the wording but I don't know what else I have done that makes this not work.

I have set up a fake account for anyone to test.

aWrongEmail at gmail.com

Password 1234567

The address of the non-live site is (remove the spaces)
http://174.120.180.93/~dextoo/cart/

Linda

15 Feb 2011, 3:29 PM
#3
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

The debug tool is great! Thanks for that. But, so far, I have not solved my problem.

Here is the error.
[14-Feb-2011 17:10:12] PHP Parse error: syntax error, unexpected T_STRING in /home/mypassword/public_html/cart/includes/languages/english/checkout_success.php on line 13

I deleted that file and put the original file in place of it. I still am getting the same error message in the log.

I also tried to revert back to the classic template. The page remains blank.

I used the Developers Tool Kit (also a nice tool!) but looking for T_STRING finds 314 places found because it also finds "format_string" and other wording that contains the string "T_STRING".

Advice for my next step in solving the problem?

Linda

15 Feb 2011, 3:35 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: checkout_success page is blank

What do you have on the file on lines 10 - 15 of the file, on the server, for:
/cart/includes/languages/english/checkout_success.php

16 Feb 2011, 9:39 PM
#5
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

I don't think that it has been altered.

define('NAVBAR_TITLE_1', 'Checkout');
define('NAVBAR_TITLE_2', 'Success - Thank You');

define('HEADING_TITLE', 'Thank You! We Appreciate your Business!');

define('TEXT_SUCCESS', '');

Linda

16 Feb 2011, 10:18 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: checkout_success page is blank

Afraid I am not seeing it ... :unsure:

If you are still getting an error, make sure that you delete all of the old debug log files in:
/cache

and trigger the error again and see that it is exactly the same as what you posted before ...

16 Feb 2011, 10:29 PM
#7
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

I did as you suggested and deleted all from the /cache . Here is the .log from a minute ago.

16-Feb-2011 16:27:29] PHP Parse error: syntax error, unexpected T_STRING in /home/myusername/public_html/cart/includes/languages/english/checkout_success (2:15:11 8:46 AM).php on line 13

16 Feb 2011, 10:32 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: checkout_success page is blank

Weird ...

I am not seeing it ...

For giggle, could you zip your file and add it as an attachment to a post or ... worse case, copy it here ...

16 Feb 2011, 11:28 PM
#9
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

Sure. Which file? The checkout_success file?

16 Feb 2011, 11:56 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: checkout_success page is blank

The broken file:
/cart/includes/languages/english/checkout_success.php

17 Feb 2011, 12:04 AM
#11
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

Attached...I really appreciate your help BTW.

Linda

17 Feb 2011, 12:06 AM
#12
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

oops. Since that last log, I forgot that I added "This is a test" to the file on line 15. That was not there when I had the log statement from before if that makes a difference.

Linda

17 Feb 2011, 12:09 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: checkout_success page is blank

I tried your file on my test site and didn't have any issues ...

You might, for giggles, delete the file on the server and then reload that file and see if there is anything different ...

17 Feb 2011, 12:25 AM
#14
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

I have done that several times. So, that rules out it being that file since it works for you and I have changed it for the original one several times.

17 Feb 2011, 12:33 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: checkout_success page is blank

Could you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
(2:15:11 8:46 AM)

and select Catalog ... and click Search ...

does anything come up?

If not, could you do a search on:
checkout_success

do you see any references to that date and time or the word time?

If you trigger the error again, does that date and time:
(2:15:11 8:46 AM)

change?

17 Feb 2011, 3:04 AM
#16
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

Now I don't "get it". Good news though. It is now working. I did absolutely nothing else but sign off my site with ftp, came home and rebooted my computer. Now it is working. I thought at first that it could be something with my cache but that does not make sense since it would not generate the error on my site.

Whatever the reason, it is now working. Thanks for sticking with me. I cannot offer any other explanation for its working now.

Since I am a newbie to ZC, I am sure that I will have other questions on other threads.

Linda

17 Feb 2011, 4:11 AM
#17
anmldr avatar

anmldr

New Zenner

Join Date:
Feb 2011
Posts:
27
Plugin Contributions:
0

Re: checkout_success page is blank

I have solved the problem. As you probably have guessed, it is a newbie mistake in not knowing how Zen Cart really works. Explanation:

I have a habit of backing up files in directories on my site before I change them. The way that I do this is by duplicating the file then I change the real file. If there is a problem, I just delete the one that I am working with and rename the file that was the backup and I am back to what it was before the changes were made. The date/time is appended to the file name when I make a duplicate.

What I did not know is that Zen Cart must look for any files in the directories.

That is where the (2:15:11 8:46 AM) must have entered into the log. Zen Cart just did not know what to do with these duplicate files. I have now gone into all of the directories that I have altered content for the custom template and have deleted the duplicates.

Lesson learned. Make backups but don't leave them in any directory used by ZC. Instead, save them elsewhere.

Linda

17 Feb 2011, 11:04 AM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: checkout_success page is blank

You can rename then with a different extention and then upload your edited file

Like xxxx.php to xxxx.orig