I’m getting this very weird error. I call it weird because the full error is
Cannot modify header information - headers already sent by (output started at [...]/user.php:1)
As you can see it says that the first line of the script prints something, therefore the header is already sent. The point is that the script is:
<?php
class User extends AppModel {
And nothing more! Not even a space or anything else.
I can’t really understand what’s wrong with it.
Additional information
The point is that the script works without any problem in my local webserver but not when I upload it to my hosting server.
I ran a shell script on my whole folder (with all my script) too look for whitespace at the beginning or at the end of the pages, but nothing was found.
In your code editor, save the file without BOM.