CodeIgniter Forums
Community Auth HTTP header error in Examples Recovery page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Community Auth HTTP header error in Examples Recovery page (/showthread.php?tid=63775)



Community Auth HTTP header error in Examples Recovery page - bngari - 12-09-2015

I am getting a Cannot modify header information - headers already sent by (output started at /path_to_my_files/application/controllers/Examples.php:322 error whenever I open the password recovery page in the codeigniter community auth system. kindly assist in solving this. The error is as below.


Quote:A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /path_to_my_files/application/controllers/Examples.php:322)

Filename: libraries/Tokens.php

Line Number: 243

Backtrace:

File: /path_to_my_files/application/third_party/community_auth/libraries/Tokens.php
Line: 243
Function: setcookie

File: /path_to_my_files/application/third_party/community_auth/libraries/Tokens.php
Line: 199
Function: save_tokens_cookie

File: /path_to_my_files/application/third_party/community_auth/libraries/Tokens.php
Line: 214
Function: generate_form_token

File: /path_to_my_files/application/third_party/community_auth/helpers/MY_form_helper.php
Line: 68
Function: token

File: /path_to_my_files/application/third_party/community_auth/views/examples/recover_form.php
Line: 96
Function: form_open

File: /path_to_my_files/application/controllers/Examples.php
Line: 324
Function: view

File: /path_to_my_files/index.php
Line: 292



RE: Community Auth HTTP header error in Examples Recovery page - InsiteFX - 12-09-2015

It means you are outputting data to the view so it can not send the headers again.

Could be a blank space etc; Cookies have to be sent before any other output too the view.