Forums / General Questions / Add to cart generates a blank page

Add to cart generates a blank page

Views: 6,674

Results 21 to 24 of 24
23 Apr 2012, 10:20 AM
#21
shannda avatar

shannda

New Zenner

Join Date:
Dec 2005
Posts:
46
Plugin Contributions:
0

Add to cart generates a blank page

Solved! darned <br> at the top of the page.

8 May 2012, 3:02 PM
#22
kalena avatar

kalena

New Zenner

Join Date:
May 2012
Posts:
2
Plugin Contributions:
0

Re: Add to cart generates a blank page

I also have this error and according to everything I've read here, my problem occurs on line 1. I don't have any blank spaces and I don't have a clue what is going on.

Original error

[08-May-2012 05:39:28] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/thedollm/public_html/shop/includes/languages/english/classic/header.php:1) in /home/thedollm/public_html/shop/includes/init_includes/init_templates.php on line 78

So according to all I've read, my error occurs on line 1. Below is a copy of my line 1 and there are no spaces

<?php Any clues?
8 May 2012, 3:50 PM
#23
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Add to cart generates a blank page

It might contain hidden encoding-related characters that are only visible with certain editors, depending on how you've edited the file.
Try deleting that particular file (assuming you have a copy and know what you've changed in it and why, so you can do it again later), and see what happens next.

And be sure to use a text editor that saves as "UTF8-without-BOM" for its encoding format.

http://www.zen-cart.com/wiki/index.php/Useful_Tools

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 May 2012, 4:45 PM
#24
kalena avatar

kalena

New Zenner

Join Date:
May 2012
Posts:
2
Plugin Contributions:
0

Re: Add to cart generates a blank page

Seems I fixed it. I deleted the file and then copied the original file into its place, then tested and all worked, so I went ahead and made another copy then I changed the same line I did before and all seems to be working now. Thank you!