Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

headers already sent


5 replies to this topic

#1 dreamoutlaw

  • Community Member
  • 2 posts
  • Real Name:Tom Morrow

Posted 11 November 2009, 07:01

This is such a common error. I have seen many threads about this problem, but not many solutions. The website is: http://www.dystortion.com/shop
All the solutions say the same thing, but they do not work for me. Here are the errors:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/m/o/p/moparchild426/html/shop/admin/includes/configure.php:1) in /home/content/m/o/p/moparchild426/html/shop/admin/includes/functions/sessions.php on line 102

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/m/o/p/moparchild426/html/shop/admin/includes/configure.php:1) in /home/content/m/o/p/moparchild426/html/shop/admin/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/o/p/moparchild426/html/shop/admin/includes/configure.php:1) in /home/content/m/o/p/moparchild426/html/shop/admin/includes/functions/general.php on line 22

*******************************************************************************************

This is not a problem with whitespace in my php files. I have checked them many times. This does not appear to be a problem with my session store folder, as it is in the right place, and permissions are set properly. This is not a problem with safe mode on/off. Safe mode is set to off in my php.ini file. I have never even modified the files with the indicated errors.

If anyone has any helpful suggestions, (can you say "Zen Cart?"), I would appreciate any advice.

TIA

Dreamoutlaw

#2 steve_s

  • Community Member
  • 1,580 posts
  • Real Name:steve
  • Gender:Male
  • Location:London

Posted 11 November 2009, 10:49

View Postdreamoutlaw, on 11 November 2009, 07:01, said:

This is such a common error. I have seen many threads about this problem, but not many solutions. The website is: http://www.dystortion.com/shop
All the solutions say the same thing, but they do not work for me. Here are the errors:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/m/o/p/moparchild426/html/shop/admin/includes/configure.php:1) in /home/content/m/o/p/moparchild426/html/shop/admin/includes/functions/sessions.php on line 102

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/m/o/p/moparchild426/html/shop/admin/includes/configure.php:1) in /home/content/m/o/p/moparchild426/html/shop/admin/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/o/p/moparchild426/html/shop/admin/includes/configure.php:1) in /home/content/m/o/p/moparchild426/html/shop/admin/includes/functions/general.php on line 22

*******************************************************************************************

This is not a problem with whitespace in my php files. I have checked them many times. This does not appear to be a problem with my session store folder, as it is in the right place, and permissions are set properly. This is not a problem with safe mode on/off. Safe mode is set to off in my php.ini file. I have never even modified the files with the indicated errors.

If anyone has any helpful suggestions, (can you say "Zen Cart?"), I would appreciate any advice.

TIA

Dreamoutlaw

Hi Tia,

you need to use phpmyadmin if you cant access admin to do this
SELECT * FROM `configuration` WHERE `configuration_key` = 'USE_CACHE';

now click on the pencil icon and change true to false in configuration_value field

now sql tab again paste sql
SELECT * FROM `configuration` WHERE `configuration_key` = 'SESSION_WRITE_DIRECTORY';

click on pencil icon now remove /tmp in configuration_value field

now try and login

Steve

#3 dreamoutlaw

  • Community Member
  • 2 posts
  • Real Name:Tom Morrow

Posted 12 November 2009, 03:37

Hi Steve,

Thanks very much for the advice. I followed your instructions, but no change. I even tried a couple of variations. No change. I made sure that the session store folder was installed with the right permissions, and changed the value in 'SESSION_WRITE_DIRECTORY' to point to that folder. No change.

I can change anything in the page source code I want, but I can't find any specific thing wrong with it. I checked the lines indicated in the error codes, but they seem fine.

I don't know what the solution is, but I appreciate your help.

Thanks!

dreamoutlaw





View Poststeve_s, on 11 November 2009, 10:49, said:

Hi Tia,

you need to use phpmyadmin if you cant access admin to do this
SELECT * FROM `configuration` WHERE `configuration_key` = 'USE_CACHE';

now click on the pencil icon and change true to false in configuration_value field

now sql tab again paste sql
SELECT * FROM `configuration` WHERE `configuration_key` = 'SESSION_WRITE_DIRECTORY';

click on pencil icon now remove /tmp in configuration_value field

now try and login

Steve


#4 steve_s

  • Community Member
  • 1,580 posts
  • Real Name:steve
  • Gender:Male
  • Location:London

Posted 14 November 2009, 10:57

Hi Dream,

If you set sessions to be stored in database you dont need to use store SESSION_WRITE_DIRECTORY just make sure the above i said to change is changes and SESSION_WRITE_DIRECTORY is blank

make sure in catalog/includes/configure.php
this is set as below
define('STORE_SESSIONS', 'mysql');

Steve

View Postdreamoutlaw, on 12 November 2009, 03:37, said:

Hi Steve,

Thanks very much for the advice. I followed your instructions, but no change. I even tried a couple of variations. No change. I made sure that the session store folder was installed with the right permissions, and changed the value in 'SESSION_WRITE_DIRECTORY' to point to that folder. No change.

I can change anything in the page source code I want, but I can't find any specific thing wrong with it. I checked the lines indicated in the error codes, but they seem fine.

I don't know what the solution is, but I appreciate your help.

Thanks!

dreamoutlaw

Edited by steve_s, 14 November 2009, 10:58.


#5 ahsanhaf

  • Community Member
  • 1 posts
  • Real Name:Ahsan Hafeez

Posted 20 November 2009, 23:34

Hi mate

Wonder if you can help me as well i am having a similar error when i try to access admin page it shows the following: (tradepricegoods.com/admin)

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lovelyha/public_html/tradepricegoods/admin/includes/configure.php:34) in /home/lovelyha/public_html/tradepricegoods/admin/includes/functions/sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lovelyha/public_html/tradepricegoods/admin/includes/configure.php:34) in /home/lovelyha/public_html/tradepricegoods/admin/includes/functions/sessions.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /home/lovelyha/public_html/tradepricegoods/admin/includes/configure.php:34) in /home/lovelyha/public_html/tradepricegoods/admin/includes/functions/general.php on line 22


I really have no clue what to do.. i am ok with html and stuff but no clue about php...

details of my admin configure file are as follows:
<?php
define('HTTP_SERVER', 'http://tradepricegoods.com');
define('HTTP_CATALOG_SERVER', 'http://tradepricegoods.com');
define('HTTPS_CATALOG_SERVER', 'http://tradepricegoods.com');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home/lovelyha/public_html/tradepricegoods/');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES','../images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'lovelyha_lovelyh');
define('DB_SERVER_PASSWORD', '07816254798');
define('DB_DATABASE', 'lovelyha_lovelyhairextensions');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>



Is this error in session file or configure file or something to do with the database ?

I tried to follow the steps you mentioned in this thread... but i have no clue what is phpmyadmin (as i only use dreamweaver to do editing) and i am not sure where to find these values which you want changing i mean i dont know in which file they are located ?

Will really appreciate your help.

Thank You

#6 steve_s

  • Community Member
  • 1,580 posts
  • Real Name:steve
  • Gender:Male
  • Location:London

Posted 21 November 2009, 14:41

View Postahsanhaf, on 20 November 2009, 23:34, said:

Hi mate

Wonder if you can help me as well i am having a similar error when i try to access admin page it shows the following: (tradepricegoods.com/admin)

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lovelyha/public_html/tradepricegoods/admin/includes/configure.php:34) in /home/lovelyha/public_html/tradepricegoods/admin/includes/functions/sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lovelyha/public_html/tradepricegoods/admin/includes/configure.php:34) in /home/lovelyha/public_html/tradepricegoods/admin/includes/functions/sessions.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /home/lovelyha/public_html/tradepricegoods/admin/includes/configure.php:34) in /home/lovelyha/public_html/tradepricegoods/admin/includes/functions/general.php on line 22


I really have no clue what to do.. i am ok with html and stuff but no clue about php...

details of my admin configure file are as follows:
<?php
define('HTTP_SERVER', 'http://tradepricegoods.com');
define('HTTP_CATALOG_SERVER', 'http://tradepricegoods.com');
define('HTTPS_CATALOG_SERVER', 'http://tradepricegoods.com');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home/lovelyha/public_html/tradepricegoods/');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES','../images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'lovelyha_lovelyh');
define('DB_SERVER_PASSWORD', '07816254798');
define('DB_DATABASE', 'lovelyha_lovelyhairextensions');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>



Is this error in session file or configure file or something to do with the database ?

I tried to follow the steps you mentioned in this thread... but i have no clue what is phpmyadmin (as i only use dreamweaver to do editing) and i am not sure where to find these values which you want changing i mean i dont know in which file they are located ?

Will really appreciate your help.

Thank You

Hi

in them 2 files make sure there are no empty lines after ?> at bottom of file
/tradepricegoods/admin/includes/configure.php:
/tradepricegoods/admin/includes/functions/sessions.php

Steve