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

Add to cart generates a blank page

Views: 6,674

Results 1 to 20 of 24
7 May 2008, 9:02 PM
#1
adelante avatar

adelante

New Zenner

Join Date:
May 2006
Location:
QLD Australia
Posts:
73
Plugin Contributions:
0

Add to cart generates a blank page

I'm part way through a new site and have a strange thing happening. When I click the add to cart button the site generates a blank page, looking at the page source shows nothing there as well. Clicking the back button on the browser takes me back to the product page which has the green product added bar on top and when I go to the cart the product has been added.

I am following the standard override system for the template. I find if I change back to classic green the site works ok. I have obviously done something. My first check was restoring the tpl_product_info_display.php but this didn't help.

Can anyone give me a clue to what file I may have corrupted.

The site is http://evisualbridalboutique.com/store

Thanks in advance

7 May 2008, 10:39 PM
#3
adelante avatar

adelante

New Zenner

Join Date:
May 2006
Location:
QLD Australia
Posts:
73
Plugin Contributions:
0

Re: Add to cart generates a blank page

Hi Steven,

Thanks for that handy hint, I'm going to give it a go.

7 May 2008, 11:33 PM
#4
adelante avatar

adelante

New Zenner

Join Date:
May 2006
Location:
QLD Australia
Posts:
73
Plugin Contributions:
0

Re: Add to cart generates a blank page

I found the problem, it was caused by having an override directory in the languages folder with english.php. The system was reading this file but didn't like it there. I removed the override directory and the site went back to normal.

Thanks for the debug tip, found the problem in 5 minutes.

12 May 2008, 1:32 PM
#6
adelante avatar

adelante

New Zenner

Join Date:
May 2006
Location:
QLD Australia
Posts:
73
Plugin Contributions:
0

Re: Add to cart generates a blank page

I've got the same problem again, it happens when you either try to add to the shopping cart, log in or goto the checkout. There may be some other places that I haven't found. The site was working ok until I added the Zen Lightbox utility.

This is the output from the debug log,

[12-May-2008 23:21:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/evisualb/public_html/store/includes/languages/english.php:1401) in /home/evisualb/public_html/store/includes/init_includes/init_templates.php on line 78
[12-May-2008 23:21:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/evisualb/public_html/store/includes/languages/english.php:1401) in /home/evisualb/public_html/store/includes/functions/functions_general.php on line 44

does anyone have any ideas?

12 May 2008, 1:53 PM
#8
adelante avatar

adelante

New Zenner

Join Date:
May 2006
Location:
QLD Australia
Posts:
73
Plugin Contributions:
0

Re: Add to cart generates a blank page

Hi Steven,

You're a legend!

It was a space at the end of the english.php file, it seems that was the problem all along. I was getting worried.

Thanks again,

Joe

15 May 2008, 2:37 PM
#9
riddler24a avatar

riddler24a

New Zenner

Join Date:
Oct 2006
Location:
UK
Posts:
14
Plugin Contributions:
0

Re: Add to cart generates a blank page

Hi,

thanks for this post, I was scratching my head on this one!!

I had 2 blank lines at the end of english.php after the closing '?>', I removed them and all works fine, thanks again

Alan

11 Jan 2010, 12:50 AM
#10
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: Add to cart generates a blank page

Great! Good job.

I love internet and the power of information... Best Wishes!!

11 Jan 2010, 5:40 AM
#11
pwoens avatar

pwoens

New Zenner

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

Re: Add to cart generates a blank page

This just fixed my problem too...restored my backup english.php and it fixed the problem......added each tweak and uploaded after until I got it resolved. Thanks for sharing/asking/assisting...great forum!!

10 Feb 2010, 9:47 AM
#12
jesterstears avatar

jesterstears

New Zenner

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

Re: Add to cart generates a blank page

Steven300:

Have you tried the Debug Error-Logging Utility?

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

Steven you are my man! Thanks for the tip.

By the way I hate the extra lines problem of PHP. If somehow a few extra blank lines are added to bottom of a PHP page, it results in stupid errors. How very nonsense for such an old programming language.

10 Feb 2011, 2:10 AM
#13
amandavz avatar

amandavz

Zen Follower

Join Date:
Mar 2009
Location:
Crockett, Texas
Posts:
139
Plugin Contributions:
0

Re: Add to cart generates a blank page

I cannot seem to locate the problem. This problem is fairly new, I just started having it. Here is the message I get:

[09-Feb-2011 14:59:23] PHP Warning: include_once(includes/languages/english.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/london/public_html/allclipart.info/shop/includes/init_includes/init_templates.php on line 72
[09-Feb-2011 14:59:23] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/london/public_html/allclipart.info/shop/includes/init_includes/init_templates.php on line 72

Can anyone help me?

Amanda Vande Zande
AllClipART.info
Lonestar Princess

16 Feb 2011, 6:14 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: Add to cart generates a blank page

It's telling you that your english.php file isn't able to load because it's not found.

.
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.

17 Mar 2011, 4:49 PM
#15
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Add to cart generates a blank page

I am getting this same blank page error. I opened the log files but don't know where to begin as there are so many of them. Any guidance?

[17-Mar-2011 11:15:17] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/includes/extra_datafiles/hideCategories_database_names.php:17) in /home/mysite/public_html/includes/functions/sessions.php on line 114

[17-Mar-2011 11:15:17] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/includes/extra_datafiles/hideCategories_database_names.php:17) in /home/mysite/public_html/includes/init_includes/init_templates.php on line 78

[17-Mar-2011 11:15:17] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/includes/extra_datafiles/hideCategories_database_names.php:17) in /home/mysite/public_html/includes/functions/functions_general.php on line 45

AND

[17-Mar-2011 08:55:20] PHP Warning: include(includes/languages/english/) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/mysite/public_html/admin/includes/init_includes/init_languages.php on line 38
[17-Mar-2011 08:55:20] PHP Warning: include(includes/languages/english/) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/mysite/public_html/admin/includes/init_includes/init_languages.php on line 38
[17-Mar-2011 08:55:20] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/admin/includes/init_includes/init_languages.php on line 38

17 Mar 2011, 5:20 PM
#16
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Add to cart generates a blank page

More details...When I log in as a customer and add the products, I get a blank page, but when I check my shopping cart (I have to go back a screen in the browser) the items are all there.

17 Mar 2011, 6:06 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Add to cart generates a blank page

Treece:

[17-Mar-2011 11:15:17] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/includes/extra_datafiles/hideCategories_database_names.php:17) in ...Line 17 of that file is where you have a problem.
See: https://www.zen-cart.com/tutorials/index.php?article=87

.
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.

17 Mar 2011, 6:18 PM
#18
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Add to cart generates a blank page

Line 17, extra spaces at the end removed and problem solved!!!

Can't begin to say how much I appreciate this!

23 Apr 2012, 6:15 AM
#19
shannda avatar

shannda

New Zenner

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

Re: Add to cart generates a blank page

I'm having the same issue. I've removed the blank spaces and my line 17 is blank. After I add a product to the card I get a blank screen. http://www.jennifershon.com/store/index.php?main_page=product_info&cPath=138&products_id=475&number_of_uploads=0&action=add_product

Everything was working until I did the dns and replaced the temporary url with the real url.

23 Apr 2012, 10:02 AM
#20
shannda avatar

shannda

New Zenner

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

Re: Add to cart generates a blank page

Here's the error message

[23-Apr-2012 04:53:21] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/jennshon/public_html/store/includes/configure.php:2) in /home/jennshon/public_html/store/includes/functions/sessions.php on line 114
[23-Apr-2012 04:53:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jennshon/public_html/store/includes/configure.php:2) in /home/jennshon/public_html/store/includes/init_includes/init_templates.php on line 155
[23-Apr-2012 04:53:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jennshon/public_html/store/includes/configure.php:2) in /home/jennshon/public_html/store/includes/functions/functions_general.php on line 45