Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot send session cookie - headers already sent.....session.php - already removed white spaces!


brd1984

Recommended Posts

Posted

Hi

 

I am getting the following errors on my store pages:

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/includes/functions/sessions.php on line 56

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/includes/functions/sessions.php on line 56

 

 

I have applied the register_globals php.ini contribution fix

 

I have checked the sessions.php page for any white spaces - there wasn't any.

 

Here is the code from sessions.php , line 56:

 

54. function tep_session_start() {

55. // >>> BEGIN REGISTER_GLOBALS

56. $success = session_start();

 

 

I have looked everywhere for a fix but cannot find one! :(

Posted
Hi

 

I am getting the following errors on my store pages:

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/includes/functions/sessions.php on line 56

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux180/p/partybox4kids.co.uk/user/htdocs/store/includes/functions/sessions.php on line 56

I have applied the register_globals php.ini contribution fix

 

I have checked the sessions.php page for any white spaces - there wasn't any.

 

Here is the code from sessions.php , line 56:

 

54. function tep_session_start() {

55. // >>> BEGIN REGISTER_GLOBALS

56. $success = session_start();

I have looked everywhere for a fix but cannot find one! :(

 

Have you checked the index.php file for any white space at the top or bottom of the file?

Regards

 

Mark A Reynolds

Posted
Have you checked the index.php file for any white space at the top or bottom of the file?

 

Yeah ive checked both languages/english/index.php and the root index.php for white space. :'(

Posted
Yeah ive checked both languages/english/index.php and the root index.php for white space. :'(

 

 

OK This is weird - I have tried to fix the files for Ben and when I delete the whitespace at the top of the index.php and upload it again the sapce reappears

 

Anyone know why this is happening?

Regards

 

Mark A Reynolds

Archived

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

×
×
  • Create New...