Forum

Thread tagged as: Question, Problem, Error

Perch Help

Hi All

I'm Fairly new to perch and i keep having the same issue

Headers already sent ...

and not sure why this always happens

its always with the shop checkout i see the issue it will work first time on initial setup but seccond time (no code changes) i have header issues

ive looked for spaces, white space BOM ect and they are all fine

could it be the program i use to save the files could it be me putting code in the wrong place

would appreciate some pointers but this issues is spoiling my perch experience

Anthony Elleray

Anthony Elleray 2 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

This is not a Perch issue, it is a PHP one.

If you output anything to the browser before sending headers then you will get that error. That is how PHP works - we can't change that.

If it always happens then this is something you are doing as it isn't always happening to everyone (which would be the case if Perch was doing something). So you need to identify what that is. There really is no mystery with this stuff, it just takes a logical process of working through step by step until the problem is isolated.

Ah ok so it wont have anything to do with the program i use as long as i dont save with BOM

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Unlikely - unless the editor is sticking stuff into your page and we really can't do anything about that. It's more likely something you have added to your code yourself.

Ok thanks

so just need to take time and make sure theirs no spaces ect