Forums / Managing Customers and Orders / *URGENT* Add to Cart giving blank screen

*URGENT* Add to Cart giving blank screen

Locked

Views: 7,708

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
18 May 2006, 8:32 PM
#1
laurelee avatar

laurelee

New Zenner

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

*URGENT* Add to Cart giving blank screen

I have 3 sets of attributes set up with my cart. When the customer clicks "Add to Cart" it gives a completely blank screen, no "This page does not exist" or other messages, just a white screen. Unfortunately, we do have customers waiting to order and cannot, thus getting frustrated. Any idea what is causing this?

http://www.minthandbags.com/shopping_bag

Thank you!

18 May 2006, 9:41 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Almost appears as if you have some bad upload files ...

Try reloading all files in /includes/pages/shopping_cart

Also, you are using a default template of Classic ...

You should really be using your own templates and overrides system so that things do not get overwritten on an upgrade or update ...

It is difficult to test for the problem when we cannot have you change templates to determin if this is a template issue or something else ...

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!

18 May 2006, 10:49 PM
#3
laurelee avatar

laurelee

New Zenner

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

Re: *URGENT* Add to Cart giving blank screen

I reuploaded the requested files, yet still having issues. Exactly a week ago, I was tweaking shipping/payment modules but afterwards, everything was able to checkout. I also tweaked attributes, but did not install any new things that would prevent the shopping cart to work. Sometime over the weekend, my client emailed me and said it stopped working. I have been searching through the forums since.

I don't know how to create my own template, thought I probably should learn, so I appologize for that lack of help.

The latest thread I saw was http://www.zen-cart.com/forum/showthread.php?t=35720 however, I found it not as helpful as I wanted.

Any other suggestions greatly appreciated :)

18 May 2006, 10:54 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Do you have something like Beyond Compare from scootersoftware.com where you can do an FTP compare of a Clean Zen Cart and your copy on the site and see where something could be ... umm ... perhaps a little ...a ... fried? :blink:

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!

20 May 2006, 3:10 PM
#5
laurelee avatar

laurelee

New Zenner

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

Re: *URGENT* Add to Cart giving blank screen

What exactly should I be looking for? I downloaded that software, and once I run the comparison of a very clean version of Zen Cart against my ftp site, every folder comes up red (which in my mind would appear everything has been changed). I have reuploaded a clean copy of the shipping modules and in the "pages" section, anything that had to do with the Shopping Cart (i.e. checkout_confirmation, info_shopping_cart, etc).

What files specifically handle the "Add to Cart" function and what effect would a wholesale module downloaded from this site have on this? Immediately after the wholesale module was added, I was able to order tagging someone who would buy wholesale. Their order went smoothly as a test. The specific wholesale module I am using is: http://www.zen-cart.com/forum/showthread.php?t=33439 (Dual Pricing Version 2). Since then, all I have done is added option values and names under the attributes controller. Initially, I had one available option name with about 25-30 values, now I have 3 option names with over 60 values spread between them.

I appologize for being such a newb with Zen Cart, just trying to give you the whole spectrum of the issue. Thanks again for your help :)

20 May 2006, 3:19 PM
#6
laurelee avatar

laurelee

New Zenner

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

Re: *URGENT* Add to Cart giving blank screen

When I used the developer's tool kit (love it btw!) to search for "Add to Cart" feature, here is every instance of it in my files. Does any of this help?

Searching 592 files ... for: add to cart

/shopping_bag/includes/functions/functions_general.php

Line #1094 : // customer must be logged in and approved to add to cart

/shopping_bag/includes/functions/functions_lookups.php

Line #222 : // don't include READONLY attributes to determin if attributes must be selected to add to cart

Line #227 : // regardless of READONLY attributes no add to cart buttons

/shopping_bag/includes/languages/english.php

Line #374 : define('PRODUCTS_ORDER_QTY_TEXT','Add to Cart: ');

Line #534 : // multiple product add to cart

/shopping_bag/includes/languages/english/button_names.php

Line #78 : define('BUTTON_IN_CART_ALT', 'Add to Cart');

/shopping_bag/includes/modules/pages/advanced_search_result/header_php.php

Line #173 : // always add quantity regardless of whether or not it is in the listing for add to cart buttons

/shopping_bag/includes/modules/pages/index/main_template_vars.php

Line #169 : // always add quantity regardless of whether or not it is in the listing for add to cart buttons

/shopping_bag/includes/templates/template_default/templates/tpl_document_general_info_display.php

Line #86 : <!--bof Add to Cart Box -->

Line #112 : <!--eof Add to Cart Box-->

/shopping_bag/includes/templates/template_default/templates/tpl_document_product_info_display.php

Line #86 : <!--bof Add to Cart Box -->

Line #112 : <!--eof Add to Cart Box-->

/shopping_bag/includes/templates/template_default/templates/tpl_product_free_shipping_info_display.php

Line #86 : <!--bof Add to Cart Box -->

Line #112 : <!--eof Add to Cart Box-->

/shopping_bag/includes/templates/template_default/templates/tpl_product_info_display.php

Line #87 : <!--bof Add to Cart Box -->

Line #113 : <!--eof Add to Cart Box-->

/shopping_bag/includes/templates/template_default/templates/tpl_product_music_info_display.php

Line #86 : <!--bof Add to Cart Box -->

Line #112 : <!--eof Add to Cart Box-->

Match Lines found: 18

16 Nov 2006, 10:24 AM
#7
dcschan avatar

dcschan

New Zenner

Join Date:
Nov 2006
Posts:
26
Plugin Contributions:
0

Re: *URGENT* Add to Cart giving blank screen

Hi,

I'm having the exact same problems. Add to Cart brings me to a blank screen. In fact, Write a Review and Tell a Friend also brings me to a blank screen. Tried doing a search but it seems that not many have this problem.

I've already switched back to Classic template and it doesn't work there as well. Also enabled COD, still nothing.

I'm pretty new to this. Can anybody have any suggestions? I'm using ** PHP Version: ** 5.1.6 (Zend: 2.1.0), Zen Cart 1.3.5.

My website url is http://www.thebooktrove.com

Thanks!

16 Nov 2006, 2:37 PM
#8
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: *URGENT* Add to Cart giving blank screen

What's the URL display on this blank page?

Is there any source at all on the page?

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

17 Nov 2006, 1:46 AM
#9
dcschan avatar

dcschan

New Zenner

Join Date:
Nov 2006
Posts:
26
Plugin Contributions:
0

Re: *URGENT* Add to Cart giving blank screen

View Source is blank too.

The url on display is:
http://thebooktrove.com/index.php?main_page=product_info&cPath=1&products_id=1&action=add_product

Thanks for all help!

EDITED: Never, ever post the zen_id or zenAdminID (session id) in a forum, email, newsgroup, newsletter, advertisement, etc. etc. etc. or you will be doomed ... :eek:

17 Nov 2006, 2:59 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Were you able to fix this? I am not getting blank pages when I 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!

17 Nov 2006, 3:01 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Scratch that ... wrong URL ... :lamo:

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!

17 Nov 2006, 3:05 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Could you check your Configuration ... Session Settings ...

And set them to:

Cookie Domain True
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True
IP to Host Conversion Status True

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!

17 Nov 2006, 4:15 AM
#14
dcschan avatar

dcschan

New Zenner

Join Date:
Nov 2006
Posts:
26
Plugin Contributions:
0

Re: *URGENT* Add to Cart giving blank screen

The Session settings are correct...still nothing.

hmm...when I changed "Shopping Cart Box Status" to always true and I click on the shopping cart box, it brings me to the cart correctly.

However, when I click buy now, or add to cart, it still brings me to a blank page. Pressing the back button on the browser though, my cart correctly added the item. And when I click on shopping cart, the item is correctly reflected. Clicking on Checkout throws me to another blank page.

I also noticed that with a full shopping cart, if I click on the links in the products category, the cart is correctly reflected. But when I click on home, or the page logo, the cart gets mysteriously emptied.

Home I making sense. :unsure: Any help?

17 Nov 2006, 4:33 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Next ...

Change to Classic Template ... does it work?

Next ...

Delete from the server and Reload the files:
/includes/classes/shopping_cart.php
/includes/init_includes/init_cart_handler.php
/includes/modules/pages/shopping_cart/.
/includes/templates/template_default/templates/tpl_shopping_cart.php
/includes/languages/english/shopping_cart.php

Look to see if you have overrides on any of these files and for now rename them, example:
/includes/templates/your_template_dir/templates/tpl_shopping_cart.php_HIDDEN
/includes/languages/english/your_template_dir/shopping_cart.php_HIDDEN
etc. etc. etc.

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!

17 Nov 2006, 5:27 AM
#16
dcschan avatar

dcschan

New Zenner

Join Date:
Nov 2006
Posts:
26
Plugin Contributions:
0

Re: *URGENT* Add to Cart giving blank screen

Changing to Classic template still gives the same problem. I also upgraded to V1.3.6 but made no difference.

Can I confirm when you say reload the files, you mean download the whole Zen Cart, find the files, and ftp them individually to the server? Or is it something I do within the admin console? Sorry if it's a dumb question because I got Zen Cart from my hosting company and it was installed through Fantastico, so I never unpacked any files myself.

Thanks!

17 Nov 2006, 5:31 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Download from our site the Zen Cart v1.3.6 from the Download link at the top of your screen ... :smile:

Then, delete/rename any of the files I listed and reload them to your site via a good FTP program ... as in nothing to do with your Control Panel ...

Some files, when broken, bad, corrupt, missing etc. do not throw errors but rather produce dead pages ...

I can add to cart ... get white page ... backup ... and the product will be in my cart ...

So ... part of this is working and part is not ...

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!

17 Nov 2006, 5:35 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: *URGENT* Add to Cart giving blank screen

Note: you have no prices ...

Your checkout is broken ...

Your add to cart is broken ...

What version Zen Cart were you before you upgrade?

You did upgrade to v1.3.6 by loading all files to the site via FTP and running the /zc_install and UPGRADE your database, correct?

You appear to have more issues than just not being able to add to the 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!

17 Nov 2006, 6:55 AM
#19
dcschan avatar

dcschan

New Zenner

Join Date:
Nov 2006
Posts:
26
Plugin Contributions:
0

Re: *URGENT* Add to Cart giving blank screen

I was at 1.3.5 previously. I upgraded through the "upgrade" option from Fantastico.

It's not just my cart and checkout that is broken, but tell a friend and write a review gives me a blank page as well...

17 Nov 2006, 10:08 AM
#20
dcschan avatar

dcschan

New Zenner

Join Date:
Nov 2006
Posts:
26
Plugin Contributions:
0

Re: *URGENT* Add to Cart giving blank screen

Hi,

I noticed I have the following error messages in my error log, not sure if it's relevant:
[Fri Nov 17 02:46:48 2006] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/thebookt/public_html/includes/extra_datafiles/collection.php:7) in /home/thebookt/public_html/includes/init_includes/init_templates.php on line 78
[Fri Nov 17 02:46:48 2006] [error] 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/thebookt/public_html/includes/extra_datafiles/collection.php:7) in /home/thebookt/public_html/includes/functions/sessions.php on line 102
[Fri Nov 17 02:46:48 2006] [error] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/thebookt/public_html/includes/extra_datafiles/collection.php:7) in /home/thebookt/public_html/includes/functions/sessions.php on line 102

collection is a new page that I've been trying to add into the "information" sidebox, but somehow even though it appears in page editor, it doesn't appear in the website...