Warning: session_start() [function.session-start]:

Need help upgrading your Joomla! website or converting to Joomla! 1.5?

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.
mgeyer33
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Dec 16, 2008 2:15 am

Warning: session_start() [function.session-start]:

Postby mgeyer33 » Fri Dec 19, 2008 1:49 am

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?

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6028
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Warning: session_start() [function.session-start]:

Postby dpacadmin » Fri Dec 19, 2008 3:50 pm

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.

mgeyer33
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Dec 16, 2008 2:15 am

Re: Warning: session_start() [function.session-start]:

Postby mgeyer33 » Fri Dec 19, 2008 7:22 pm

I have tried another computer all together and still get the same error.

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6028
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Warning: session_start() [function.session-start]:

Postby dpacadmin » Fri Dec 19, 2008 11:28 pm

I found this page where they are having a similar problem
http://www.phpbuilder.com/board/showthread.php?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 ?>.

mgeyer33
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Dec 16, 2008 2:15 am

Re: Warning: session_start() [function.session-start]:

Postby mgeyer33 » Sat Dec 20, 2008 12:03 am

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.

chane
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Nov 30, 2007 9:38 pm
Location: Belgrade, Serbia
Contact:

Re: Warning: session_start() [function.session-start]:

Postby chane » Sat Dec 27, 2008 9:41 pm

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.

tegyn
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Jan 18, 2009 12:14 am

Re: Warning: session_start() [function.session-start]:

Postby tegyn » Mon Jan 19, 2009 11:29 am

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

TraceMae
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Jan 26, 2009 5:21 pm

Re: Warning: session_start() [function.session-start]:

Postby TraceMae » Mon Jan 26, 2009 6:48 pm

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


Thank you!! That was my problem!! I am so happy to get this fixed!!!!

lunattic
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Oct 31, 2008 3:24 pm

Re: Warning: session_start() [function.session-start]:

Postby lunattic » Sat Jan 31, 2009 3:46 pm

I had the same problem. Then I saved the configuration.php file in ANSI code instead of UTF8, and voila! Problem solved!

vwautoxr
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jan 15, 2009 3:18 pm

Re: Warning: session_start() [function.session-start]:

Postby vwautoxr » Thu Feb 05, 2009 3:59 pm

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!! :)

dirijat
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Aug 22, 2008 10:17 pm

Re: Warning: session_start() [function.session-start]:

Postby dirijat » Sat Mar 14, 2009 12:07 am

Thank's a lot dpacadmin. The problem was in NotePad itself. While using WordPad, all goes well. :)

pecenac
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Mar 11, 2009 11:11 am

Re: Warning: session_start() [function.session-start]:

Postby pecenac » Fri Mar 20, 2009 1:54 pm

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.

pasamio
Joomla! Ace
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]:

Postby pasamio » Fri Mar 20, 2009 2:14 pm

Just delete the ?> bit, it isn't required at all.
Sam Moffatt
Updater, Installer and Authentication Systems
JoomlaCode Backend Systems
Pie.

zipzit
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Mon Nov 24, 2008 2:38 am
Location: Las Vegas, Nevada

Re: Warning: session_start() [function.session-start]:

Postby zipzit » Wed Apr 01, 2009 2:20 am

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...

User avatar
MrGoogle
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Fri Sep 11, 2009 1:32 pm

Re: Warning: session_start() [function.session-start]:

Postby MrGoogle » Fri Sep 18, 2009 12:19 am

Same issue with the space at the end of the configuration.php. Resolved now. Thanks to dpacadmin and others.
Thanks for all assistance given!

laineygolightly
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Sep 08, 2009 3:29 pm

Re: Warning: session_start() [function.session-start]:

Postby laineygolightly » Thu Nov 19, 2009 12:26 am

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]

User avatar
deanapeterson
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Thu Aug 23, 2007 10:16 pm
Location: Omaha, Nebraska, USA
Contact:

Re: Warning: session_start() [function.session-start]:

Postby deanapeterson » Fri Dec 18, 2009 8:29 pm

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.
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

Natryka
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Apr 09, 2009 2:38 pm

Re: Warning: session_start() [function.session-start]:

Postby Natryka » Sat Dec 19, 2009 5:00 pm

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

User avatar
deanapeterson
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Thu Aug 23, 2007 10:16 pm
Location: Omaha, Nebraska, USA
Contact:

Re: Warning: session_start() [function.session-start]:

Postby deanapeterson » Sat Dec 19, 2009 5:14 pm

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.
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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18411
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Warning: session_start() [function.session-start]:

Postby infograf768 » Sat Dec 19, 2009 5:18 pm

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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
deanapeterson
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Thu Aug 23, 2007 10:16 pm
Location: Omaha, Nebraska, USA
Contact:

Re: Warning: session_start() [function.session-start]:

Postby deanapeterson » Sat Dec 19, 2009 6:41 pm

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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18411
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Warning: session_start() [function.session-start]:

Postby infograf768 » Sun Dec 20, 2009 6:14 am

Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
deanapeterson
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Thu Aug 23, 2007 10:16 pm
Location: Omaha, Nebraska, USA
Contact:

Re: Warning: session_start() [function.session-start]:

Postby deanapeterson » Sat Dec 26, 2009 3:08 am

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

cappadochian
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jan 06, 2010 3:02 pm

Re: Warning: session_start() [function.session-start]:

Postby cappadochian » Mon Jan 11, 2010 4:22 pm

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.

rgibbs421
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Mon Jul 06, 2009 9:12 pm

Re: Warning: session_start() [function.session-start]:

Postby rgibbs421 » Wed May 19, 2010 4:39 pm

Space at the top of configuration.php Thanks for the tips!!!

User avatar
RCheesley
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 181
Joined: Tue Apr 24, 2007 11:53 am
Location: Ipswich, Suffolk, UK
Contact:

Re: Warning: session_start() [function.session-start]:

Postby RCheesley » Sun Jun 06, 2010 9:05 am

Fixed it for me too - somehow Dreamweaver had put an extra space after the closing PHP tag..grr!
Ruth Cheesley
CEO & Co-Founder, Virya Group - http://www.viryagroup.com

ntreeg
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Sep 01, 2008 9:42 pm

Re: Warning: session_start() [function.session-start]:

Postby ntreeg » Thu Jul 15, 2010 1:59 am

@ 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 *****

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!!!!!!!!!! :D :D :D :D :D :D

bachmahoangtu
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Sep 30, 2010 9:50 am

Re: Warning: session_start() [function.session-start]:

Postby bachmahoangtu » Mon Oct 11, 2010 12:05 pm

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: quan1607@gmail.com.

User avatar
RCheesley
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 181
Joined: Tue Apr 24, 2007 11:53 am
Location: Ipswich, Suffolk, UK
Contact:

Re: Warning: session_start() [function.session-start]:

Postby RCheesley » Mon Oct 11, 2010 12:39 pm

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
CEO & Co-Founder, Virya Group - http://www.viryagroup.com

bachmahoangtu
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Sep 30, 2010 9:50 am

Re: Warning: session_start() [function.session-start]:

Postby bachmahoangtu » Mon Oct 11, 2010 12:55 pm

yes Iam sure about that


Return to “Migrating and Upgrading to Joomla! 1.5”

Who is online

Users browsing this forum: No registered users and 2 guests