Forums / Templates, Stylesheets, Page Layout / Blank page upon adding product to cart

Blank page upon adding product to cart

Locked

Started by bhensarl on 13 Feb 2010, 4:30 PM · Views: 976

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
13 Feb 2010, 5:12 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Blank page upon adding product to cart

Get the Debug Tool from the Free Software Add Ons and see what errors show up in the logs that are created when you try to add to cart ...

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!

13 Feb 2010, 8:34 PM
#3
bhensarl avatar

bhensarl

New Zenner

Join Date:
Feb 2010
Posts:
67
Plugin Contributions:
0

Re: Blank page upon adding product to cart

All right, thanks for the tip, Ajeh. Here's what I came up with.

[13-Feb-2010 20:30:38] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/strang14/public_html/includes/languages/english.php:1401) in /home/strang14/public_html/includes/init_includes/init_templates.php on line 78
[13-Feb-2010 20:30:38] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/strang14/public_html/includes/languages/english.php:1401) in /home/strang14/public_html/includes/functions/functions_general.php on line 44

Any ideas?
Brian

13 Feb 2010, 9:46 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Blank page upon adding product to cart

english.php:1401)
1401 is the line number and there are only about 700 lines in that file
So this is indicative of some error in that file

Zen-Venom Get Bitten

13 Feb 2010, 10:18 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank page upon adding product to cart

Usually means there are extra lines or characters at the end of the file.

13 Feb 2010, 11:25 PM
#6
bhensarl avatar

bhensarl

New Zenner

Join Date:
Feb 2010
Posts:
67
Plugin Contributions:
0

Re: Blank page upon adding product to cart

You guys are incredible. I deleted two extra lines at the end of the file (lines 1400 and 1401) and now it works perfect again. As always, thanks.
Brian

13 Feb 2010, 11:28 PM
#7
bhensarl avatar

bhensarl

New Zenner

Join Date:
Feb 2010
Posts:
67
Plugin Contributions:
0

Re: Blank page upon adding product to cart

Quick question about debugging: do you guys typically use the Debug Error Logging Utility to debug php errors? What about html errors? Thanks again.
Brian

14 Feb 2010, 1:41 AM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank page upon adding product to cart

If you use a text editor (I use Notepad++) to edit PHP files and don't add special characters where they don't belong, you won't have problems in the first place.

The utility won't usually find HTML errors - use http://validator.w3.org/ instead.

14 Feb 2010, 8:11 AM
#9
bhensarl avatar

bhensarl

New Zenner

Join Date:
Feb 2010
Posts:
67
Plugin Contributions:
0

Re: Blank page upon adding product to cart

Thanks for the tip. I use Dreamweaver and I'll definitely look into the link you sent. Thanks.

14 Feb 2010, 8:53 AM
#10
kobra avatar

kobra

Black Belt

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

Re: Blank page upon adding product to cart

I use Dreamweaver
Dreamweaver is about as nortorius for adding unwanted stuff as FrontPage.....
These tools are for html pages and not at all conducive to editing php code/text

Zen-Venom Get Bitten