Forums / Basic Configuration / Blank page comes up when product added to cart

Blank page comes up when product added to cart

Locked

Started by debiwebi on 20 Aug 2009, 10:17 PM · Views: 1,903

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
20 Aug 2009, 10:17 PM
#1
debiwebi avatar

debiwebi

New Zenner

Join Date:
Aug 2009
Location:
Highlands Ranch, Colorado
Posts:
84
Plugin Contributions:
0

Blank page comes up when product added to cart

Okay, last post for me today!

I turned Display Cart After Adding Product to false in Config>My Store and now when I add an item to the cart, a blank page comes up. I have to use the back button to get back to the previous page. The item does get added to the shopping cart.

Anyone know how to fix this blank page issue?

http://avianoutfitters.com

20 Aug 2009, 11:08 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Blank page comes up when product added to cart

https://www.zen-cart.com/tutorials/index.php?article=82

Also, if you have modified the shopping cart page, make sure you haven't added any unescaped apostrophes or quotation marks to the text.

21 Aug 2009, 3:01 PM
#3
debiwebi avatar

debiwebi

New Zenner

Join Date:
Aug 2009
Location:
Highlands Ranch, Colorado
Posts:
84
Plugin Contributions:
0

Re: Blank page comes up when product added to cart

Thanks for the link. I have read the information on that tutorial and did some research:

  1. I haven't modified the shopping cart page, so that's not the issue.
  2. I'm not getting an error message via Firefox's Error Console.
  3. I'm not getting an error via the hosting control panel.
  4. Zen Cart was installed by the hosting company, InMotion, not by me via ftp. But I suppose there can be a damaged or empty file somewhere.
  5. I installed the Debug Error Logging Utility and got these error messages which I don't understand since I don't know a thing about PHP. Can you tell me what this is saying is the problem, and how I can fix it? Do you suppose this is why I'm getting a blank page? I'd sure appreciate it…

[21-Aug-2009 07:52:10] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/thegre10/public_html/avianoutfitters.com/includes/languages/rosie/english.php:1401) in /home/thegre10/public_html/avianoutfitters.com/includes/init_includes/init_templates.php on line 78

[21-Aug-2009 07:52:10] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/thegre10/public_html/avianoutfitters.com/includes/languages/rosie/english.php:1401) in /home/thegre10/public_html/avianoutfitters.com/includes/functions/functions_general.php on line 44

21 Aug 2009, 3:10 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Blank page comes up when product added to cart

Since there aren't 1401 lines in english.php, it may be that the program you used to edit it double-spaced the lines or your FTP program did the same. Check that, and check that there are no spaces after the last PHP tag in the file.

21 Aug 2009, 3:30 PM
#5
debiwebi avatar

debiwebi

New Zenner

Join Date:
Aug 2009
Location:
Highlands Ranch, Colorado
Posts:
84
Plugin Contributions:
0

Re: Blank page comes up when product added to cart

OMG Steve, you and your buddies at ZC are all geniuses. After all that searching around and detective work, it was just a space or extra line at the end of my english.php. Took out the extra line and it works just fine now. I can't believe something that minor would cause a problem! Thank you so much!:D