CodeIgniter Forums
PHP Error with Download helper & a model - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: PHP Error with Download helper & a model (/showthread.php?tid=40067)



PHP Error with Download helper & a model - El Forum - 03-29-2011

[eluser]russ_kern[/eluser]
Wondering if I could get some advice... I have a page that allows for the CSV export of data... in loading the Download helper, I get this error:

"A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/system/application/models/functions_model.php:341)

Filename: helpers/download_helper.php

Line Number: 86"

I get this error repeating for any line in the download helper that has a header() call. I know the error is some thing silly in my functions_model, but I have combed through it and can't find it. I do not have any header calls in the functions_model, and as line "341" is the last line of the functions_model, it must be a missplaced space or something... can anyone point out the sorts of things that would cause this? After spending and hour or two I'm stumped... Any help would be great.

Thanks. Russ


PHP Error with Download helper & a model - El Forum - 03-29-2011

[eluser]danmontgomery[/eluser]
Sounds like you have whitespace after a closing PHP tag. Remove the ?> and the problem should go away.


PHP Error with Download helper & a model - El Forum - 03-29-2011

[eluser]russ_kern[/eluser]
Right on man. Thank you. It was a tab actually... I looked everywhere but the end. Figures. LOL.

Thanks a lot.

R