Forums / General Questions / Add to cart button shows blank page

Add to cart button shows blank page

Locked

Views: 20,255

Results 1 to 20 of 38
This thread is locked. New replies are disabled.
6 Feb 2008, 6:19 PM
#1
msantill avatar

msantill

New Zenner

Join Date:
Feb 2008
Location:
Fort Lauderdale, Florida
Posts:
8
Plugin Contributions:
0

Add to cart button shows blank page

I have an issue when the add to cart button is clicked. The action places it in the cart but it relocates the user to a blank page. I'd like to send them to the shopping cart whenever it is clicked instead of this blank page. I'm not sure if something got deleted or what....

If possible I would like someone to let me know where the code for the add to cart button is located and also if they the code that adds the product to the cart and relocates them to the shopping cart.
It would be greatly appreciated.

The site is http://www.surveillancepackages.com

Thank You

7 Feb 2008, 3:45 AM
#2
tbaquatics avatar

tbaquatics

New Zenner

Join Date:
Jan 2008
Posts:
72
Plugin Contributions:
0

Re: Add to cart button shows blank page

I got the same thing tonight. Did you get any answers?

7 Feb 2008, 4:24 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Add to cart button shows blank page

See if loading the debugging tool helps you locate this error:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=860

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 Feb 2008, 5:30 AM
#4
msantill avatar

msantill

New Zenner

Join Date:
Feb 2008
Location:
Fort Lauderdale, Florida
Posts:
8
Plugin Contributions:
0

Re: Add to cart button shows blank page

I still haven't been able to figure it out... I'm hoping to get more posts on here... I'll try the debugging...
Thanks

7 Feb 2008, 5:33 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Add to cart button shows blank page

NOTE: when using Tools like this and view directories with FTP ... be sure to do a Refresh on the Directory to see any new files 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!

7 Feb 2008, 5:10 PM
#6
msantill avatar

msantill

New Zenner

Join Date:
Feb 2008
Location:
Fort Lauderdale, Florida
Posts:
8
Plugin Contributions:
0

Re: Add to cart button shows blank page

Do you think a fresh install will solve this issue.... I'm downloading the files directly from godaddy.com

7 Feb 2008, 5:18 PM
#7
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Add to cart button shows blank page

You have to use the debug tool as suggested by Ajeh, then post any error you get from that here so we can help you.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

7 Feb 2008, 10:12 PM
#8
msantill avatar

msantill

New Zenner

Join Date:
Feb 2008
Location:
Fort Lauderdale, Florida
Posts:
8
Plugin Contributions:
0

Re: Add to cart button shows blank page

[07-Feb-2008 17:03:59] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/s/a/msantill/html/includes/languages/english/classic/header.php:4) in /home/content/m/s/a/msantill/html/includes/init_includes/init_templates.php on line 7

:huh:

I think I will need this error explained in terms a grade schooler would understand ...

Again the help is greatly appreciated

7 Feb 2008, 10:42 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Add to cart button shows blank page

Try reloading the header.php and see if there might be spaces or blank lines in it which would cause that error ...

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!

8 Feb 2008, 3:55 AM
#10
msantill avatar

msantill

New Zenner

Join Date:
Feb 2008
Location:
Fort Lauderdale, Florida
Posts:
8
Plugin Contributions:
0

Re: Add to cart button shows blank page

reloading the header didn't work.....

I might end up having to just start from scratch

18 Feb 2008, 1:41 PM
#11
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Add to cart button shows blank page

I'm having the same error... I tried reloading the header.php and it didn't make a difference...

I ran the debugger as suggested, and this is what I got...

[18-Feb-2008 08:36:36] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/functions/sessions.php on line 108
[18-Feb-2008 08:36:36] PHP Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/init_includes/init_templates.php on line 78

18 Feb 2008, 1:43 PM
#12
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Add to cart button shows blank page

I am also getting two more files with these error when I run the debugger

[18-Feb-2008 08:36:40] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/functions/sessions.php on line 108
[18-Feb-2008 08:36:40] PHP Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/init_includes/init_templates.php on line 78
[18-Feb-2008 08:36:40] PHP Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/functions/functions_general.php on line 44

[18-Feb-2008 08:36:38] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/functions/sessions.php on line 108
[18-Feb-2008 08:36:38] PHP Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/index.php:11) in /homepages/42/d222066582/htdocs/Clean_ZenCart_Install/zen-cart/includes/init_includes/init_templates.php on line 78

Anybody have any ideas??

7 Mar 2008, 12:12 AM
#13
junkman52 avatar

junkman52

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
0

Re: Add to cart button shows blank page

Did you get it fixed this happened to me last night. If so what did you do to fix it?

7 Mar 2008, 6:25 PM
#14
wkrein avatar

wkrein

New Zenner

Join Date:
Oct 2007
Posts:
3
Plugin Contributions:
0

Re: Add to cart button shows blank page

I just had that same issue. Open the first mentioned file in an editor and check if there are empty lines after the last "?>"
I had 2 empty lines. Deleted them and now everything works like a charm again. :clap:

2 Apr 2008, 11:05 PM
#15
tiger_cub_com avatar

tiger_cub_com

New Zenner

Join Date:
Apr 2008
Location:
London
Posts:
5
Plugin Contributions:
0

Re: Add to cart button shows blank page

Hi, I am having exactly the same issue. I have been able to load the debugger. However, how do I view the results of the debugger to sort this problem out.

2 Apr 2008, 11:13 PM
#16
tiger_cub_com avatar

tiger_cub_com

New Zenner

Join Date:
Apr 2008
Location:
London
Posts:
5
Plugin Contributions:
0

Re: Add to cart button shows blank page

Hi, I am having the same problem and this is the debug report I get:

[02-Apr-2008 16:00:45] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/windo19/public_html/includes/languages/english.php:1401) in /home/windo19/public_html/includes/init_includes/init_templates.php on line 78

Does anybody have any idea what that means?

2 Apr 2008, 11:47 PM
#17
tiger_cub_com avatar

tiger_cub_com

New Zenner

Join Date:
Apr 2008
Location:
London
Posts:
5
Plugin Contributions:
0

Re: Add to cart button shows blank page

Hi, I am having eaxctly the same problem. I know when I uninstall and install zen again it works for a while then the issue starts all over again when I start configuring my site e.g. adding products etc. I have also bought the e-book and gone through it. Nobody seems to have an answer to this yet. Even though I am uninstalling zen I get the feelking that some of the old files may remain. What is the best way of cleaning the server out of the old files/folders. Which folders should I delete?

3 Apr 2008, 5:26 PM
#18
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Add to cart button shows blank page

If you want to start over with a fresh install of zencart..

BACKUP YOUR DATABASE FIRST!!!!
unless this is a completely new install on a store you've done nothing with, you will want to do this step so you can restore your database.

AFTER you've backed up the database.. you are free to delete all the files off the server that relate to zencart, then download a new copy from the zencart downloads, and reinstall it all over again. Then depending on your host (check your FAQ) you would import your saved database to restore your store.

But BEFORE you go through such drastic measures, you should do what everyone else is suggesting and check your files for blank lines.. that's what was happening to me. Check both files the debugger is giving you for empty lines before and after the <?php ?> Like wrekein said > Re: Add to cart button shows blank page

I just had that same issue. Open the first mentioned file in an editor and check if there are empty lines after the last "?>"
I had 2 empty lines. Deleted them and now everything works like a charm again.

5 Apr 2008, 2:17 PM
#19
robo26 avatar

robo26

New Zenner

Join Date:
Feb 2008
Posts:
20
Plugin Contributions:
0

Re: Add to cart button shows blank page

I had exactly the same problem, I followed the various advice here and was about to give up. But finally found a couple of extra lines at the end of includes/languages/english.php if that is any help, once removed the site worked again!

Thanks to all for the advice, great to see professionals prepared to help us mere mortals!:yes:

21 Apr 2008, 7:01 PM
#20
hotshotp2 avatar

hotshotp2

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Add to cart button shows blank page

I'm getting the dreaded blank page and have done everything I can find in the forums to resolve it and still not sorted it. My debug files show that there is a problem in my english.php on line 1, but I can't work it out, it looks OK to me and in fact I've not changed this file!

Any help? Was working fine earlier today and now it's not!

[21-Apr-2008 14:57:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/h/o/t/hotshotp2/html/includes/languages/free_red/english.php:1) in /home/content/h/o/t/hotshotp2/html/includes/init_includes/init_templates.php on line 78

[21-Apr-2008 14:57:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/h/o/t/hotshotp2/html/includes/languages/free_red/english.php:1) in /home/content/h/o/t/hotshotp2/html/includes/functions/functions_general.php on line 44