Guest Posted November 25, 2004 Posted November 25, 2004 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
OceanRanch Posted November 25, 2004 Posted November 25, 2004 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
Guest Posted November 26, 2004 Posted November 26, 2004 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 <{POST_SNAPBACK}> 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?
Guest Posted November 26, 2004 Posted November 26, 2004 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? <{POST_SNAPBACK}> <?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?
Guest Posted November 26, 2004 Posted November 26, 2004 look via phpmyadmin and see if there is anything in the database . . .look at the configuration table, etc . .
Guest Posted November 26, 2004 Posted November 26, 2004 look via phpmyadmin and see if there is anything in the database . . .look at the configuration table, etc . . <{POST_SNAPBACK}> 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.
Guest Posted November 26, 2004 Posted November 26, 2004 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. <{POST_SNAPBACK}> 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?
Guest Posted November 27, 2004 Posted November 27, 2004 :) I would like to thank MIBBLE and OCEANRANCH for their help with my problem. I figured it out and now my site works fine!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.