Guest Posted November 30, 2009 Posted November 30, 2009 hello, in istalled the oscommerce first on my localhost (to create the website) but now it ready and i uploade it to my host and i have a few problems. I already change everithing in the include/configure.php and admin/include/configure.php but now i have 2 problems the first Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/airevo/public_html/shop/TOP.php:7) in /home/airevo/public_html/shop/includes/functions/sessions.php on line 102 or thake this link => http://airevo-wheels.com/shop/index.php the second Wenne I want to buy somthing i geth his Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/airevo/public_html/shop/TOP.php:7) in /home/airevo/public_html/shop/includes/functions/sessions.php on line 102 Warning: Cannot modify header information - headers already sent by (output started at /home/airevo/public_html/shop/TOP.php:7) in /home/airevo/public_html/shop/includes/functions/general.php on line 33 or his link => http://airevo-wheels.com/shop/product_info.php?products_id=28&action=add_product thanks fore your time
germ Posted December 1, 2009 Posted December 1, 2009 Post the first 15 lines from /shop/TOP.php The problem is in that file on line 7 If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted December 1, 2009 Posted December 1, 2009 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" href="css/air-evo.css"> </head> <br /> <body>
Guest Posted December 1, 2009 Posted December 1, 2009 i delete my TOP.php but the i get this Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/airevo/public_html/shop/index.php:3) in /home/airevo/public_html/shop/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/airevo/public_html/shop/index.php:3) in /home/airevo/public_html/shop/includes/functions/sessions.php on line 102 i think there is somthing rong in the sessions.php this is the code in the sessions.php frome line 102 thill 129 return session_start(); } function tep_session_register($variable) { global $session_started; if ($session_started == true) { if (PHP_VERSION < 4.3) { return session_register($variable); } else { if (isset($GLOBALS[$variable])) { $_SESSION[$variable] =& $GLOBALS[$variable]; } else { $_SESSION[$variable] = null; } } } return false; } function tep_session_is_registered($variable) { if (PHP_VERSION < 4.3) { return session_is_registered($variable); } else { return array_key_exists($variable, $_SESSION); } } can sombody helpme please. Greetings Wim
germ Posted December 1, 2009 Posted December 1, 2009 i delete my TOP.php but the i get this Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/airevo/public_html/shop/index.php:3) in /home/airevo/public_html/shop/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/airevo/public_html/shop/index.php:3) in /home/airevo/public_html/shop/includes/functions/sessions.php on line 102 i think there is somthing rong in the sessions.php this is the code in the sessions.php frome line 102 thill 129 return session_start(); } function tep_session_register($variable) { global $session_started; if ($session_started == true) { if (PHP_VERSION < 4.3) { return session_register($variable); } else { if (isset($GLOBALS[$variable])) { $_SESSION[$variable] =& $GLOBALS[$variable]; } else { $_SESSION[$variable] = null; } } } return false; } function tep_session_is_registered($variable) { if (PHP_VERSION < 4.3) { return session_is_registered($variable); } else { return array_key_exists($variable, $_SESSION); } } can sombody helpme please. Greetings Wim Nothing wrong with the sessions file. This time it's the index.php (line 3). Not really sure what's going on since you have a template. On standard osC you can't output to he browser until after the inclusion of application_top.php That's where the session is started. It appears to me things are getting output to the browser before the PHP code starts the session. :blink: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.