Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    May 2006
    Location
    QLD Australia
    Posts
    77
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Add to cart generates a blank page

    Have you tried the Debug Error-Logging Utility?

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

  3. #3
    Join Date
    May 2006
    Location
    QLD Australia
    Posts
    77
    Plugin Contributions
    0

    Default Re: Add to cart generates a blank page

    Hi Steven,

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

  4. #4
    Join Date
    May 2006
    Location
    QLD Australia
    Posts
    77
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Add to cart generates a blank page

    No probs. Pleased you got it fixed.

  6. #6
    Join Date
    May 2006
    Location
    QLD Australia
    Posts
    77
    Plugin Contributions
    0

    Default 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?

  7. #7
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

  8. #8
    Join Date
    May 2006
    Location
    QLD Australia
    Posts
    77
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Oct 2006
    Location
    UK
    Posts
    13
    Plugin Contributions
    0

    Default 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

  10. #10
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default Re: Add to cart generates a blank page

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

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Shoppping cart not working! Blank page on add-to-cart
    By seunthegreat in forum General Questions
    Replies: 1
    Last Post: 4 May 2010, 03:19 PM
  2. add to cart shows blank page
    By RobertG in forum Managing Customers and Orders
    Replies: 2
    Last Post: 6 Feb 2010, 05:14 PM
  3. Add to cart -> blank page
    By scott_see in forum General Questions
    Replies: 1
    Last Post: 24 Dec 2009, 04:49 AM
  4. Add to cart displaying blank page?
    By holley2346 in forum General Questions
    Replies: 7
    Last Post: 3 Feb 2009, 06:57 PM
  5. Add to cart page is blank
    By watzursn in forum General Questions
    Replies: 3
    Last Post: 16 Aug 2008, 08:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg