I've read many of the postings on this problem.
I feel that my problem isn't covered.
The plug-in "Simple Login Log" is successful in setting the headers properly and sending a .csv file to the user. No error messages.
The code which this plugin uses is:
[Code moderated as per the Forum Rules. Please use the pastebin]
Copying that code into a new plug-in (fjanth) produces the error message:
"[09-Jan-2012 22:24:45] PHP Warning: Cannot modify header information - headers already sent by (output started at /home5/fjarchiv/public_html/wp-admin/includes/template.php:1657) in /home5/fjarchiv/public_html/wp-content/plugins/fjanth/fjanth.php on line 112"
The code I'm using is:
[Code moderated as per the Forum Rules. Please use the pastebin]
The issue for me is why does one plugin work and the other not?