Search the Community
Showing results for tags 'session headers already sent'.
-
Hi there guys and gals. I'm busy uploading my site and during the development process I've relied quite heavily on Larry's book. I do seem to have a problem now that it is uploaded however. It gives me these errors: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /public_html/index.php:1) in /public_html/mvc/controller/system/config.php on line 54 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /public_html/index.php:1) in /public_html/mvc/controller/system/config.php on line 54 I have looked on Google but the only solution I'm able to find is that something is being sent to the browser before the session is started. I assume that this might be the solution but for the life of me I'm not able to determine where the problem is. session_start is in my config file just like Larry did it. I have however built my own page construct function to easily put together all of my pages consisting out of a couple of includes. The first thing that this function does is require my config file (so this is also according to my knowledge the first thing done on the page). My site worked perfectly on a local server and didn't have this problem but now that I'm going live I suddenly encounter this. None of the includes on the page incllude the config file on their own so it really is only included once. I would really appreciate it if somebody could just give me some help here or just maybe point me in the right direction? Thank you in advance, Hermann.