Zand Php Cake Php

Posted by : Dave
Cannot modify header information
I have debug = 2 and I get

Cannot modify header information



turn debug to 0 and it works the way i want. Doing a redirect after login to

redirect a user to appropriate area.

No white space after closing ?>

$this->Auth->autoRedirect = false;



Ideas why this may be happeining?



Dave
 
 
Posted by : Pablo Viojo
Re : Cannot modify header information
Now what?

Try looking at /cake/basics.php:108 ... I found it belongs to function debug(), so maybe you're using debug(...) previously?

Take a look at your code.



Saludos,

Pablo Viojo
 
 
Posted by : Isaac Raja
Re : Cannot modify header information
Check whether you have mad an debug or echo statement in your code
 
 
Posted by : Pablo Viojo
Re : Cannot modify header information
Normally that error comes with something like:

Warning (2): Cannot modify header information - headers already sent by (output started at file:line)

Regards,

Pablo Viojo
 
 
Posted by : Dave
Re : Cannot modify header information
Yes.....



Cannot modify header information - headers already sent by (output started

at /cake/basics.php:108) [CORE/cake/libs/controller/
controller.php, line

640]



Now what?
 
 
If you have the better reply, then send it to us. We will display your reply after the approval.
Name : 
Email Id :   
Reply :