-2

Possible Duplicate:
Headers already sent by PHP

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/eitlabs1/public_html/salmanoreen.com/index.php:1) in /home/eitlabs1/public_html/salmanoreen.com/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/eitlabs1/public_html/salmanoreen.com/index.php:1) in /home/eitlabs1/public_html/salmanoreen.com/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/eitlabs1/public_html/salmanoreen.com/index.php:1) in

Community
  • 1
  • 1
Salma Noreen
  • 11
  • 1
  • 1
  • 1
    All are requested to please lookout for the existing or related question to the desired one in SO and if not found please go ahead with new question, please use SO as Library... Its not only about scoring.. Its also about Learning – OM The Eternity Mar 13 '12 at 08:46

4 Answers4

2

There are something that can cause this problem when you have session in your codes:

  1. Having a white space before <?php
  2. Having something before session_start() in your HTML codes.
  3. Your PHP file has saved with BOM supporting option. Remove BOM from your file.
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
0

It's caused by text written to the web page before the call to session_start(). You can't have any text - even a carriage return - before the session_start() function call.

CarltonD
  • 23
  • 3
0

the error is triggered because you output something before the session_start() call. session_start should always be placed before any output or else it will produce an error like yours.

you are probably doing something like this:

 <?php echo "test"; 
       session_start();
 ?>

it should be

<?php session_start(); 
      echo "test"; 
?>

There is also a possibility you have edited a file through ftp and a "invisible" character was added at the start of the file (boom operator).

blejzz
  • 3,349
  • 4
  • 39
  • 60
0

This is not necessarily a session problem. This is usually the result of a different error message that is being sent to the web browser. As soon as any text is to be sent, php sends headers beforehand. After the text is sent, the session cannot be started because this also requires sending headers, but headers have to be sent all in one go before any other output. This means you must find the original error first.

Leif
  • 2,143
  • 2
  • 15
  • 26