Welcome Guest, Not a member yet? Register   Sign In
Headers Already Sent - already read all the other posts on this matter
#2

[eluser]jedd[/eluser]
Hi greatkingrat and welcome to the CI forums.

One thing you didn't say - and is the other item covered in the wiki and most other posts on this subject - is to look for echos, print_rs, var_dumps, etc - in your models, controllers, libraries and helpers - as this can cause the same error.

Can I also suggest you install [url="http://git-scm.com/"]git[/url] and use it - as you know, coding php is a heavily iterative process, and using git's bisect feature you can quickly identify the change you made that introduced this (kind of (and many other kinds of)) bug.

Presumably you've since removed closing php tags from your project files that don't need them (controllers, models, libraries and helpers). It's generally advised (by php types, not just CI types) to eschew closing tags.

Do you get this error on every page load? Are you autoloading any of your own libraries or models - such that you can remove those autoload entries and narrow down the likely problematic file? I know - this is getting very close to egg-sucking advice on troubleshooting code.


Messages In This Thread
Headers Already Sent - already read all the other posts on this matter - by El Forum - 01-03-2010, 05:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB