setFlash stopped working in my CakePHP 1.3 app. The controller and view code is all there, and it worked last time I’ve checked. The problem is application wide, not just on one view/controller.
I’m aware of the space after ?> issue, and that’s not it. Also, I read about a missplaced dot breaking setFlash – that’s not it either. Any ideas?
I’ve finally found what was causing the error!
The problem was BOM padding in app_model.php file, I’ve saved the file in Notepad++ with ‘UTF-8 without BOM’ encoding, and it solved everything.