Welcome Guest, Not a member yet? Register   Sign In
A PHP Error was encountered
#1

[eluser]Unknown[/eluser]
why am i face this error like below after i add the controller

A PHP Error was encountered

Severity: Warning
// what the meaning message

Message: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\mysites\system\application\config\config.php:1)

Filename: libraries/Session.php

Line Number: 662
#2

[eluser]Jelmer[/eluser]
The problem is that CI needs to edit http headers when using the Session class and that can only be done before anything was output.

Output is generated of course when you're echo'ing something outside of views (as long as you're employing correct MVC output in views won't be a problem). But it can also be a character outside the php tags <?php ?> in any file loaded before the session class is used.

This message reads:
Code:
C:\Program Files\xampp\htdocs\mysites\system\application\config\config.php:1
In all likelyhood there's a space or an enter before the <?php tag in your config.php.
#3

[eluser]danmontgomery[/eluser]
http://ellislab.com/forums/viewthread/158276/




Theme © iAndrew 2016 - Forum software by © MyBB