Welcome Guest, Not a member yet? Register   Sign In
session Error
#1

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

Code:
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..........
#2

[eluser]smilie[/eluser]
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.

Cheers,
Smilie
#3

[eluser]InsiteFX[/eluser]
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.




Theme © iAndrew 2016 - Forum software by © MyBB