Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default HELP!! Blank pages when accessing shopping cart

    Hi,
    I am getting the following in my error logs and I can't access my shopping cart due to it being a blank page.

    PHP Warning: Cannot modify header information - headers already sent by (output started at ......./public_html/includes/configure.php:1) in ....../public_html/includes/init_includes/init_templates.php on line 78

    I know there are some cases of people having too many spaces but in the config file? I have a template installed, external images mod and was trying to implement the Comodo ssl seal image on the site. Your assistance would be greatly appreciated!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: HELP!! Blank pages when accessing shopping cart

    Quote Originally Posted by johnd2202 View Post
    Your assistance would be greatly appreciated!
    Does the problem go away when you revert back to the 'classic' template? If so, there is something amiss with your new template file(s). Did you edit them in any way? What editor did you use? It is possible/likely that your editor added a blank line at the end of the file(s) that were edited.

    Cheers
    Rod

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HELP!! Blank pages when accessing shopping cart

    Look at the file:
    /includes/configure.php

    What is on line 1 ... it should start with:
    <?php
    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!

  4. #4
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: HELP!! Blank pages when accessing shopping cart

    I have switched to the classic template and still get the blank page. I have also replaced the config.php file with a backup that I had and it still has the same results! Something in the header under one of my files is corrupt and I can't locate the culprit.

  5. #5
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: HELP!! Blank pages when accessing shopping cart

    Quote Originally Posted by Ajeh View Post
    Look at the file:
    /includes/configure.php

    What is on line 1 ... it should start with:
    <?php
    I have double and triple checked this file and everything looks like it should. I'm a little confused on the blank line issue. How can you tell if there is a blank line? I don't think this is the problem but I'm curious to see if it might be.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HELP!! Blank pages when accessing shopping cart

    Look at the file on the server and see if there is space(s) or blank line(s) before the starting:
    <?php


    on the file ...
    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!

  7. #7
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: HELP!! Blank pages when accessing shopping cart

    Quote Originally Posted by Ajeh View Post
    Look at the file:
    /includes/configure.php

    What is on line 1 ... it should start with:
    <?php

    Here is the code in the config file minus the passwords and such.

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2011-07-18 10:08:22
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://blah.com');
    define('HTTPS_SERVER', 'https://blah.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/blah/public_html/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'blah');
    define('DB_SERVER_PASSWORD', 'blah');
    define('DB_DATABASE', 'blah');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/blah/public_html/cache');
    define('DIR_EXT_HTTP', 'https://');

    // EOF

  8. #8
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: HELP!! Blank pages when accessing shopping cart

    Below is another error in the cache folder in addition to the original. I really do appreciate your assitance in helping a fresher out with this issue. You guys are great!



    19-Jul-2011 09:21:42] 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/blah/public_html/includes/configure.php:1) in /home/blah/public_html/includes/functions/sessions.php on line 114
    [19-Jul-2011 09:21:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/blah/public_html/includes/configure.php:1) in /home/blah/public_html/includes/init_includes/init_templates.php on line 78

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HELP!! Blank pages when accessing shopping cart

    Copy the file to your computer then open it in a text editor and see if there are any space(s) or blank line(s) before the starting:
    <?php

    If there are, delete them and reload to the server ...
    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!

  10. #10
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default [SOLVED] HELP!! Blank pages when accessing shopping cart

    I fixed this but unfortunatly I had to do a re-install from the backup site. I think I narrowed down the problem. The import images from seperate urls is the culprit in this instance. Somewhere in the editing of the files, something went wrong. I will test this theory on another test install to verify my thought process.

 

 

Similar Threads

  1. v154 blank page when clicking checkout or paypal button in shopping cart
    By DarkAngel in forum Upgrading to 1.5.x
    Replies: 10
    Last Post: 16 Jun 2015, 11:35 PM
  2. Blank page appears when clicking shopping cart or my account
    By creativegiftsnmore in forum General Questions
    Replies: 3
    Last Post: 9 Sep 2009, 05:15 PM
  3. Blank Pages when adding items or going to cart?
    By Nordy in forum General Questions
    Replies: 12
    Last Post: 13 Apr 2009, 08:02 PM
  4. Blank pages when adding items to cart?
    By uberwench in forum General Questions
    Replies: 2
    Last Post: 13 Sep 2008, 03:08 PM
  5. Replies: 3
    Last Post: 29 Aug 2008, 08:11 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