Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Blank Page When I click add to cart

    Hello there, Ive been recently playing around with the latest zen cart..


    Ive installed a few mods and tonight I just put up one of my first test products... when I click add to cart it just brings me to a blank page: /index.php?main_page=shopping_cart

    I am not sure why its doing this or where I would begin to find out what is causing this etc.


    List of mods installed:

    reward_point_full_suite_1-21a
    monthly_sales_and_tax_summary_report_1-3
    graphical_sales_report_v1-02
    GoogleSitemapAdmin
    enhanced_whos_online_1-0-2
    save_for_later_1-0


    I think thats all... any help or advice would be much appreciated

  2. #2
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Re: Blank Page When I click add to cart

    oh ya I also installed the Optimal Payment API... but I am not sure how thats effecting my cart.


    I assume its the SAVE for Later or the Edit Cart (that i didnt complete installing and I think ive removed...)

  3. #3
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Blank Page When I click add to cart

    make this your friend

    http://www.zen-cart.com/index.php?ma...roducts_id=860

    once you have it on you can pull down the error message, if you aren't sure what it means post it and I'm sure someone can help you out

  4. #4
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Re: Blank Page When I click add to cart

    thank you...


    I ran this and i got the following:

    [22-Feb-2009 20:02:40] PHP Parse error: syntax error, unexpected T_STRING in /home/*******/includes/modules/pages/shopping_cart/header_php.php on line 28




    it appears header_php.php was edited or replaced this afternoon.


    Now it says line 28.. I am total n00b here do i start at the very top:

    <?php
    /**
    * shopping_cart header_php.php
    *
    * @package page
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://w

    and count 28 lines down?

    thanks for your fast replies

  5. #5
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Re: Blank Page When I click add to cart

    I am looking through the mods i installed today and yesterday and none that i can find included a header_php.php file... so i am not sure how this got edited / changed....

    (i know this sounds dumb but i dont know better) can me installing sql patches effect this? I dont see how SQL modifications would effect the PHP portion of my site... but hey what do i know heheh

  6. #6
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Re: Blank Page When I click add to cart

    I dont know if this is possible, but could i just replace the header_php.php with a stock fresh installed header_php.php from one of my other domains or does it not work like that?

    Could I cause more problems down the road??

  7. #7
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Blank Page When I click add to cart

    yes, you can count down 28 lines. If you haven't changed the header_php.php file you can try replacing it with a fresh one. But it a may not be this file that is the problem. You can post line 28 or a snippet of lines say 25-35 and I will try to help you

  8. #8
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Re: Blank Page When I click add to cart

    this would be line 28.... it appears to not be commented out... odd..


    Add the following snippet to the file includes/modules/pages/checkout_shipping/header.php. It doesn't really matter where you put it. At the top, just after the header comments is a good place:




    ive also replaced this file with a FRESH header from the installation zip and it did fix the problem, i will now attempt to comment this line out in the modified header and see if that solves this problem.



    Now I am curious does me applying SQL patches effect other files in zen cart? Basically I am trying to figure out how the file was changed since none of the mods i applied actually contained the /includes/modules/pages/shopping_cart/header_php.php file

  9. #9
    Join Date
    Feb 2009
    Posts
    22
    Plugin Contributions
    1

    Default Re: Blank Page When I click add to cart

    I commented line 28 out of the modified header and the cart works, i am just not sure if i should keep the modified header (which is unclear why or how it was modified, but that is now WORKING) or replace it with the WORKING Original header file....

  10. #10
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Blank Page When I click add to cart

    Quote Originally Posted by jimmyX View Post
    this would be line 28.... it appears to not be commented out... odd..


    Add the following snippet to the file includes/modules/pages/checkout_shipping/header.php. It doesn't really matter where you put it. At the top, just after the header comments is a good place:




    ive also replaced this file with a FRESH header from the installation zip and it did fix the problem, i will now attempt to comment this line out in the modified header and see if that solves this problem.



    Now I am curious does me applying SQL patches effect other files in zen cart? Basically I am trying to figure out how the file was changed since none of the mods i applied actually contained the /includes/modules/pages/shopping_cart/header_php.php file
    Does the file in question have "Add the following snippet" as a line in the code? This should probably not be there and possibly was added by mistake when a mod was added.

    I'm not sure I follow you 100%. You mention file includes/modules/pages/checkout_shipping/header.php then later you are asking if SQL would affect files such as /includes/modules/pages/shopping_cart/header_php.php

    the answer to the SQL question is no, the SQL should only modify the database tables and fields.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 While click add to cart button, it goes to blank screen page
    By Rb Arun in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 20 Dec 2013, 03:36 PM
  2. blank page when I click on my add to cart button
    By cydgeno in forum General Questions
    Replies: 1
    Last Post: 21 Jul 2009, 05:11 PM
  3. when i click add to cart the page just goes blank
    By craigpowell in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Sep 2008, 10:34 AM
  4. Blank page when I add to cart??
    By gg66 in forum Basic Configuration
    Replies: 4
    Last Post: 16 Sep 2008, 05:15 PM
  5. The IE appears blank when I click the button of add to cart
    By newuser123 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Apr 2008, 07:03 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