Welcome Guest, Not a member yet? Register   Sign In
Community Auth HTTP header error in Examples Recovery page
#1

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
Reply
#2

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB