1

Complete error:

Warning (2): Cannot modify header information - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/trunk/dafe/cake/basics.php:355) [CORE/cake/libs/controller/controller.php, line 743]

As far as I can tell it happens after I try to redirect. I know it's caused by a whitespace but I can't find it anywhere, where does this error tend to be?

EDIT: Forgot to mention, this problem only happens on my Mac, my partner working on windows does not have this issue, redirection works appropriately for him.

8vius
  • 5,786
  • 14
  • 74
  • 136

3 Answers3

8

Two possibilities I know of: A. You might have some whitespace after the class closing PHP tag ?>.

B. You are trying to echo/ pr() during the processing of the data/ logic (-while it's redirecting, saving to the database, etc)

Eric
  • 371
  • 2
  • 11
2

I had this Problem recently myself and searched for Blanks within my Code but didnt't find one. The simple Solution: Deactivated the debug mode (Configure::write(debug,0) and everything worked fine :)

Matthias
  • 39
  • 1
1

I had a similar problem and tried removing white space, flush, etc... but nothing worked until I configured output_buffering to 'on' in my EZ php config interface on cpanel.

linkgtaylor
  • 123
  • 2
  • 8