Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

warning at top of home page


Guest

Recommended Posts

Posted

Please help!! I have this warning on the top of my home page:

 

WARNING: session_limiter(): Cannot send session cache limiter-headers already sent (output started at/Home2/thepur/public_html/includes/functions/general.php:1255) in Home2/thepur/public_html/includes/functions/sessions.php on line 67.

 

I haven't the foggiest idea what that means or how to even fix it. Please help me.

Thanks

Posted
In the file

 

/Home2/thepur/public_html/includes/functions/general.php

 

apply the following Knowledgebase article.

 

http://www.oscommerce.info/kb/osCommerce/Common_Problems/15

 

Basically make sure you delete ALL white space (spaces, empty lines etc.) at the beggining of the file and at the end.

 

HTH

Tom

 

I looked at the pages but i don't know! i am new at this stuff. i think i would need a walk thru step by step?

Posted
I looked at the pages but i don't know! i am new at this stuff. i think i would need a walk thru step by step?

 

 

<?php

/*

$Id: sessions.php,v 1.19 2003/07/02 22:10:34 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if (STORE_SESSIONS == 'mysql') {

if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {

$SESS_LIFE = 1440;

}

 

function _sess_open($save_path, $session_name) {

return true;

}

 

function _sess_close() {

return true;

}

 

function _sess_read($key) {

$value_query = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'");

$value = tep_db_fetch_array($value_query);

 

if (isset($value['value'])) {

return $value['value'];

}

 

return false;

}

 

function _sess_write($key, $val) {

global $SESS_LIFE;

 

$expiry = time() + $SESS_LIFE;

$value = $val;

 

$check_query = tep_db_query("select count(*) as total from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");

$check = tep_db_fetch_array($check_query);

 

if ($check['total'] > 0) {

return tep_db_query("update " . TABLE_SESSIONS . " set expiry = '" . tep_db_input($expiry) . "', value = '" . tep_db_input($value) . "' where sesskey = '" . tep_db_input($key) . "'");

} else {

return tep_db_query("insert into " . TABLE_SESSIONS . " values ('" . tep_db_input($key) . "', '" . tep_db_input($expiry) . "', '" . tep_db_input($value) . "')");

}

}

 

function _sess_destroy($key) {

return tep_db_query("delete from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");

}

 

function _sess_gc($maxlifetime) {

tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . time() . "'");

 

return true;

}

 

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

 

function tep_session_start() {

return session_start();

}

 

this is the top half of sessions.php. what is not right?

Posted

look via phpmyadmin and see if there is anything in the database . . .look at the configuration table, etc . .

Posted
look via phpmyadmin and see if there is anything in the database . . .look at the configuration table, etc . .

 

 

i'm sorry, but i am a newbie at this and really don't know. i am trying to learn as much as quick as i can.

Posted
i'm sorry, but i am a newbie at this and really don't know. i am trying to learn as much as quick as i can.

 

I opened the sessions.php from my back-up on my desktop and it looks nothing like the sessions.php i am showing you now. should i upload it?

Posted

:) I would like to thank MIBBLE and OCEANRANCH for their help with my problem. I figured it out and now my site works fine!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...