Warning: session_start() [function.session-start]:
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Dec 16, 2008 2:15 am
Warning: session_start() [function.session-start]:
I moved my site from a subdomain to my main domain name and got the following error.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\home\scottdalechristum.com\wwwroot\joomla\configuration.php:1) in D:\home\scottdalechristum.com\wwwroot\joomla\libraries\joomla\session\session.php on line 412
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\home\scottdalechristum.com\wwwroot\joomla\configuration.php:1) in D:\home\scottdalechristum.com\wwwroot\joomla\libraries\joomla\session\session.php on line 412
Warning: Cannot modify header information - headers already sent by (output started at D:\home\scottdalechristum.com\wwwroot\joomla\configuration.php:1) in D:\home\scottdalechristum.com\wwwroot\joomla\libraries\joomla\session\session.php on line 415
Nothing was changed in the file.
Anybody got a clue on how this happened and what do I need to do to fix it?
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\home\scottdalechristum.com\wwwroot\joomla\configuration.php:1) in D:\home\scottdalechristum.com\wwwroot\joomla\libraries\joomla\session\session.php on line 412
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\home\scottdalechristum.com\wwwroot\joomla\configuration.php:1) in D:\home\scottdalechristum.com\wwwroot\joomla\libraries\joomla\session\session.php on line 412
Warning: Cannot modify header information - headers already sent by (output started at D:\home\scottdalechristum.com\wwwroot\joomla\configuration.php:1) in D:\home\scottdalechristum.com\wwwroot\joomla\libraries\joomla\session\session.php on line 415
Nothing was changed in the file.
Anybody got a clue on how this happened and what do I need to do to fix it?
- dpacadmin
- Joomla! Champion
- Posts: 6029
- Joined: Sat Aug 16, 2008 1:46 pm
- Location: the Bat Cave
- Contact:
Re: Warning: session_start() [function.session-start]:
Just a guess but could be a problem with your browser. Try a different browser or maybe empty your browser's cache or temp files and any cookies from your own domain.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Dec 16, 2008 2:15 am
Re: Warning: session_start() [function.session-start]:
I have tried another computer all together and still get the same error.
- dpacadmin
- Joomla! Champion
- Posts: 6029
- Joined: Sat Aug 16, 2008 1:46 pm
- Location: the Bat Cave
- Contact:
Re: Warning: session_start() [function.session-start]:
I found this page where they are having a similar problem
http://www.phpbuilder.com/board/showthr ... t=10310794
Your error seems to say that configuration.php on line 1 is sending headers before the session can start causing an error. One thing they said is a blank line or space might cause it. If you open your configuration.php file in a text editor like Notepad what is the first line in the file? Is it a space? You should see this on the first line with no space before it;
<?php
Someone else said you could set the session cache to public but I didn't see anyone confirming that. More searching sugests it is usually caused by a space before the first <?php or after the last ?>.
http://www.phpbuilder.com/board/showthr ... t=10310794
Your error seems to say that configuration.php on line 1 is sending headers before the session can start causing an error. One thing they said is a blank line or space might cause it. If you open your configuration.php file in a text editor like Notepad what is the first line in the file? Is it a space? You should see this on the first line with no space before it;
<?php
Someone else said you could set the session cache to public but I didn't see anyone confirming that. More searching sugests it is usually caused by a space before the first <?php or after the last ?>.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Dec 16, 2008 2:15 am
Re: Warning: session_start() [function.session-start]:
I found that link also and have checked the file. There is no space before the <?php or after the last ?>.
My site won't let me login in the front end or back end either. I am at a loss so I will just reinstall Joomla in the main directory and start over. Hopefully I can copy some of the information over from my subdomain.
My site won't let me login in the front end or back end either. I am at a loss so I will just reinstall Joomla in the main directory and start over. Hopefully I can copy some of the information over from my subdomain.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Fri Nov 30, 2007 9:38 pm
- Location: Belgrade, Serbia
- Contact:
Re: Warning: session_start() [function.session-start]:
For all those who are using special characters in their configuration.php file, this could be problem. Also, you maybe just saved your configuration.php file using editor which ads some extra formating (in my example ultraedit32, saved in utf8, everything seems ok, but he aded something). So, just open notepad and saved same file using ANSI encoding, and it should fix the issue.
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sun Jan 18, 2009 12:14 am
Re: Warning: session_start() [function.session-start]:
not sure whether this is still affecting anyone, but I was having the same problem (moving from sub to main domain) and found a blank line after the last ?> - fixed it right away.
thanks dpacadmin!
bl00dy code
thanks dpacadmin!
bl00dy code
-
- Joomla! Fledgling
- Posts: 3
- Joined: Mon Jan 26, 2009 5:21 pm
Re: Warning: session_start() [function.session-start]:
Thank you!! That was my problem!! I am so happy to get this fixed!!!!tegyn wrote:not sure whether this is still affecting anyone, but I was having the same problem (moving from sub to main domain) and found a blank line after the last ?> - fixed it right away.
thanks dpacadmin!
bl00dy code
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 31, 2008 3:24 pm
Re: Warning: session_start() [function.session-start]:
I had the same problem. Then I saved the configuration.php file in ANSI code instead of UTF8, and voila! Problem solved!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Jan 15, 2009 3:18 pm
Re: Warning: session_start() [function.session-start]:
I had the same problem, but the blank line was in a different file. It was in the configuration.php-dist . The blank line was at the end of the file. Thanks for the lead on the fix!!
-
- Joomla! Apprentice
- Posts: 23
- Joined: Fri Aug 22, 2008 10:17 pm
Re: Warning: session_start() [function.session-start]:
Thank's a lot dpacadmin. The problem was in NotePad itself. While using WordPad, all goes well.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Mar 11, 2009 11:11 am
Re: Warning: session_start() [function.session-start]:
Just in case somebody will have the same problem..... there can be no white space hehind the ?>. I had one space there and it caused the headers problem.
-
- Joomla! Ace
- Posts: 1318
- Joined: Thu Aug 18, 2005 9:27 am
- Location: San Jose, CA, USA
- Contact:
Re: Warning: session_start() [function.session-start]:
Just delete the ?> bit, it isn't required at all.
Sam Moffatt
Updater, Installer and Authentication Systems
JoomlaCode Backend Systems
Pie.
Updater, Installer and Authentication Systems
JoomlaCode Backend Systems
Pie.
-
- Joomla! Apprentice
- Posts: 42
- Joined: Mon Nov 24, 2008 2:38 am
- Location: Las Vegas, Nevada
Re: Warning: session_start() [function.session-start]:
there is a control file, php5.ini in your root directory. Ensure that within that file, the session.save_path="/var/chroot/home/content/..... " makes sense.
that fixed the error for me...
that fixed the error for me...
- MrGoogle
- Joomla! Intern
- Posts: 51
- Joined: Fri Sep 11, 2009 1:32 pm
Re: Warning: session_start() [function.session-start]:
Same issue with the space at the end of the configuration.php. Resolved now. Thanks to dpacadmin and others.
Thanks for all assistance given!
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Sep 08, 2009 3:29 pm
Re: Warning: session_start() [function.session-start]:
None of these solutions worked for me. However, this did work:
In Joomla Admin > Site > Global Configuration > Server > Path to Temp-folder <<<-- Making this an absolute path
I have sometimes been able to find the absolute path in:
Joomla Admin > Help > System Info > PHP Information > Apache Environment > DOCUMENT_ROOT
[but this information is not always displayed]
In Joomla Admin > Site > Global Configuration > Server > Path to Temp-folder <<<-- Making this an absolute path
I have sometimes been able to find the absolute path in:
Joomla Admin > Help > System Info > PHP Information > Apache Environment > DOCUMENT_ROOT
[but this information is not always displayed]
- deanapeterson
- Joomla! Intern
- Posts: 57
- Joined: Thu Aug 23, 2007 10:16 pm
- Location: Omaha, Nebraska, USA
- Contact:
Re: Warning: session_start() [function.session-start]:
to resolve configuration.php writing to the headers issue
I downloaded the file
and converted it to ISO-8859-1 encoding
You find strange characters at the beginning of the file - Delete those
and it back to UTF-8
upload.
This was a simple procedure in eclipse.
I downloaded the file
and converted it to ISO-8859-1 encoding
You find strange characters at the beginning of the file - Delete those
and it back to UTF-8
upload.
This was a simple procedure in eclipse.
Dean Peterson
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Apr 09, 2009 2:38 pm
Re: Warning: session_start() [function.session-start]:
I was getting that same error when adding a product to my shopping cart in Virtuemart. I looked through several php pages after reading this. I found a # before the <?php tag in the index.php page. Removed that and now I don't get the error. Thanks guys
- deanapeterson
- Joomla! Intern
- Posts: 57
- Joined: Thu Aug 23, 2007 10:16 pm
- Location: Omaha, Nebraska, USA
- Contact:
Re: Warning: session_start() [function.session-start]:
For clarification.
If a file is outputting headers, but does not appear to have any characters outside the <php ?> tags. It is probably an encoding issue.
If a file is outputting headers, but does not appear to have any characters outside the <php ?> tags. It is probably an encoding issue.
Dean Peterson
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Warning: session_start() [function.session-start]:
ANY php file which contains non-ascii characters has to be encoded utf8 no BOM (use notepad ++ on Windows, TextWrangler on Mac)
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- deanapeterson
- Joomla! Intern
- Posts: 57
- Joined: Thu Aug 23, 2007 10:16 pm
- Location: Omaha, Nebraska, USA
- Contact:
Re: Warning: session_start() [function.session-start]:
What does BOM mean?
Dean Peterson
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Warning: session_start() [function.session-start]:
Google is your friend.
http://search.conduit.com/ResultsExt.as ... Order+Mark
http://search.conduit.com/ResultsExt.as ... Order+Mark
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- deanapeterson
- Joomla! Intern
- Posts: 57
- Joined: Thu Aug 23, 2007 10:16 pm
- Location: Omaha, Nebraska, USA
- Contact:
Re: Warning: session_start() [function.session-start]:
Dean Peterson
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
http://www.iconwebdesigns.net , Icon Web Designs, Omaha, Nebraska
PHP/Joomla! Extension Developer NitroSell Custom Templates (Microsoft RMS)
http://twitter.com/dean_iconweb - Follow Me on Twitter
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jan 06, 2010 3:02 pm
Re: Warning: session_start() [function.session-start]:
hi i have the same problem. i have tried EVERYTHING and still the same.
my setting in Error Reporting is maximum. if i change it back to system default, the warning disappears, but in fact that doesn't solve the problem.
my setting in Error Reporting is maximum. if i change it back to system default, the warning disappears, but in fact that doesn't solve the problem.
-
- Joomla! Apprentice
- Posts: 17
- Joined: Mon Jul 06, 2009 9:12 pm
Re: Warning: session_start() [function.session-start]:
Space at the top of configuration.php Thanks for the tips!!!
- RCheesley
- Joomla! Enthusiast
- Posts: 181
- Joined: Tue Apr 24, 2007 11:53 am
- Location: Ipswich, Suffolk, UK
- Contact:
Re: Warning: session_start() [function.session-start]:
Fixed it for me too - somehow Dreamweaver had put an extra space after the closing PHP tag..grr!
Ruth Cheesley
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Sep 01, 2008 9:42 pm
Re: Warning: session_start() [function.session-start]:
@ lunattic
I had the same problem. Then I saved the configuration.php file in ANSI code instead of UTF8, and voila! Problem solved!
***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****___
You rock sir! you fixed my problem. I would have never figuered changing to ANSI would be the answer. You saved my life THANK YOU!!!!!!!!!!
I had the same problem. Then I saved the configuration.php file in ANSI code instead of UTF8, and voila! Problem solved!
***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****___
You rock sir! you fixed my problem. I would have never figuered changing to ANSI would be the answer. You saved my life THANK YOU!!!!!!!!!!
-
- Joomla! Apprentice
- Posts: 18
- Joined: Thu Sep 30, 2010 9:50 am
Re: Warning: session_start() [function.session-start]:
Last week, I changed my host and I have some error with my site. Here my
error:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/home/binhminh/public_html/index.php:2) in
/home/binhminh/public_html/libraries/joomla/session/session.php on line 422
Warning: Cannot modify header information - headers already sent by (output
started at /home/binhminh/public_html/index.php:2) in
/home/binhminh/public_html/libraries/joomla/session/session.php on line 424
I have already save session.php and configuration.php to utf8 without Bom,
and re_install languguage file such as mod_gtranslate and vietnamese
language for joomla. But these error can not fix. Please help me.
My email: [email protected].
error:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/home/binhminh/public_html/index.php:2) in
/home/binhminh/public_html/libraries/joomla/session/session.php on line 422
Warning: Cannot modify header information - headers already sent by (output
started at /home/binhminh/public_html/index.php:2) in
/home/binhminh/public_html/libraries/joomla/session/session.php on line 424
I have already save session.php and configuration.php to utf8 without Bom,
and re_install languguage file such as mod_gtranslate and vietnamese
language for joomla. But these error can not fix. Please help me.
My email: [email protected].
- RCheesley
- Joomla! Enthusiast
- Posts: 181
- Joined: Tue Apr 24, 2007 11:53 am
- Location: Ipswich, Suffolk, UK
- Contact:
Re: Warning: session_start() [function.session-start]:
Did you make sure there were no spaces after the closing php tag, as this was what the problem was for me after moving hosts.
Ruth Cheesley
-
- Joomla! Apprentice
- Posts: 18
- Joined: Thu Sep 30, 2010 9:50 am
Re: Warning: session_start() [function.session-start]:
yes Iam sure about that