Forums / General Questions / HELP!! Blank pages when accessing shopping cart

HELP!! Blank pages when accessing shopping cart

Views: 802

Results 1 to 10 of 10
19 Jul 2011, 11:36 AM
#1
johnd2202 avatar

johnd2202

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

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!

19 Jul 2011, 12:29 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: HELP!! Blank pages when accessing shopping cart

johnd2202:

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

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

19 Jul 2011, 1:34 PM
#3
ajeh avatar

ajeh

Oba-san

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

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!

19 Jul 2011, 2:06 PM
#4
johnd2202 avatar

johnd2202

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

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.

19 Jul 2011, 2:09 PM
#5
johnd2202 avatar

johnd2202

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

Re: HELP!! Blank pages when accessing shopping cart

Ajeh:

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.

19 Jul 2011, 2:10 PM
#6
ajeh avatar

ajeh

Oba-san

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

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!

19 Jul 2011, 2:15 PM
#7
johnd2202 avatar

johnd2202

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

Re: HELP!! Blank pages when accessing shopping cart

Ajeh:

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

19 Jul 2011, 2:30 PM
#8
johnd2202 avatar

johnd2202

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

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

19 Jul 2011, 2:31 PM
#9
ajeh avatar

ajeh

Oba-san

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

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!

21 Jul 2011, 2:25 PM
#10
johnd2202 avatar

johnd2202

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

Re: 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.