• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session Error

[eluser]Bigil Michael[/eluser]
while running the project as localhost[ in my local machine] it shows a warning like this

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\classic\system\libraries\Exceptions.php:164)

Filename: libraries/Session.php

Line Number: 662

in server it runs fine. no session warning.

i checked each and every pages of my code, is there any white space before <?php or after ?>
everything is fine.
my project will become live very soon. so i fear that is this code generate any session warning in server.
if it generate any problem my project will cancel...

so i am in big trouble can anyone help me????
thanks in advance..........

Well, warning above still means you are echo-ing something / somewhere.

Reason that on your production you do _not_ see this error, is because most of production system supress (do not show) warning and information messages, only errors;

So, look you code once more and check where you are sending output to browser.


In your PHP code do not include the ending php tag ?> only in your html documents do you need it.

Make sure your files are not saved with the BOM also.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.