Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Added to cart page disappears

    Whenever I add an item to my cart I get the dreaded white page but when I check the shopping cart the item is in there, what needs to be fixed?

    On my error log I found the following:

    [18-Oct-2014 09:09:46] PHP Warning: Cannot modify header information - headers already sent by (output started at .../includes/languages/cherry_zen/english.php:1) in .../includes/init_includes/init_templates.php on line 78

    Thank you for your assistance,
    Beth

  2. #2
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Added to cart page disappears

    Now along with the above error whenever I add a new items to my shop they disappear as well. (So frustrating not having availability to advanced web coding education as our local junior college is just teaching HTML3. Talk about being stuck in 20th century technology.)

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Added to cart page disappears

    Most likely a stray space or blank line added to the beginning of english.php. From the FAQ:

    Common Cause:
    This warning is often caused by a blank space or extra line at the beginning or end of a .php file.
    Check the error for the filename that generated the error (ie: the "output started at...." filename), open that file in your text editor and remove the extra spaces or lines immediately before the first <?php marks in the file, or after the closing ?>

    What program are you using to edit PHP files?

  4. #4
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Added to cart page disappears

    Quote Originally Posted by stevesh View Post
    Most likely a stray space or blank line added to the beginning of english.php. From the FAQ:

    Common Cause:
    This warning is often caused by a blank space or extra line at the beginning or end of a .php file.
    Check the error for the filename that generated the error (ie: the "output started at...." filename), open that file in your text editor and remove the extra spaces or lines immediately before the first <?php marks in the file, or after the closing ?>

    What program are you using to edit PHP files?
    Thank you for responding. I am using two programs, CoffeeCup and Notepad++ - could shifting back and forth between those two programs be the problem? I haven't really found a program that code checks for php yet. I tried it with both above but chaos ensue so didn't try that again.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Added to cart page disappears

    Did you check english.php for extra spaces? You should be able to see it/them in any editor.

    I use Notepad for editing, and Notepad++ when I need line numbers. I don't know about 'code checks'.

  6. #6
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Added to cart page disappears

    Yipee!!!!! there was one offending line that was changed and now everything works. How odd that it got there as I didn't touch it. No worries .. off to tighten security. Thank you so much for your patience with us beginners. It's hard due to local community colleges don't teach php - or at least my school doesn't.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Added to cart page disappears

    Netbeans offers php syntax checking, line completion, local/remote updating of files upon save, integration with other utilities such as git.
    As well, phpstorm seems to handle much of the same.

    As for programming specific courses, I think many would advocate that if you're able to get around another programming language then php is not significantly different overall. If statements, loops, variables such as arrays, etc... Some of the differences though are things like variables associated with sessions that tie to the user accessing the site, database access integration (almost any SQL related course or book would do for the general concept). There's an entire online manual for php that while in some cases lacks in quality examples definitely provides the requirements and expected system response. It is possible for "users" to post their own examples so there really is no excuse for not helping make things easier/clearer. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 - main menu disappears when item added to shopping cart.
    By HammurIT in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 May 2015, 11:38 AM
  2. v150 Page layout when product added to cart
    By Dtrain in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2012, 07:06 AM
  3. Checkout Page disappears when more than 19 item in cart
    By Peter Homann in forum General Questions
    Replies: 3
    Last Post: 19 Nov 2010, 04:42 AM
  4. Added to cart page isn't there!!! HELP!!!
    By mpforum in forum General Questions
    Replies: 1
    Last Post: 6 May 2010, 02:18 AM
  5. Blank page comes up when product added to cart
    By DebiWebi in forum Basic Configuration
    Replies: 4
    Last Post: 21 Aug 2009, 04:30 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR