Fixed headers already sent problem