Joomla! Discussion Forums



It is currently Fri Nov 27, 2009 5:00 am (All times are UTC )

 


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.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Warning session.php
Posted: Tue Apr 14, 2009 2:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 14, 2009 1:46 pm
Posts: 8
Hi there,

I am a newbie and just managed to get Joomla installed on my localhost which is XAMPP. When I go to the administrator login http://localhost/joomla15/administrator I have the following message in the header:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/joomla15/configuration.php:68) in /Applications/XAMPP/xamppfiles/htdocs/joomla15/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Applications/XAMPP/xamppfiles/htdocs/joomla15/configuration.php:68) in /Applications/XAMPP/xamppfiles/htdocs/joomla15/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/joomla15/configuration.php:68) in /Applications/XAMPP/xamppfiles/htdocs/joomla15/libraries/joomla/session/session.php on line 426

Can anyone tell me what this is and what I need to do to remove it?

Thank you very much.

Onika


Top
  E-mail  
 
 Post subject: Re: Warning session.php
Posted: Tue Apr 14, 2009 3:40 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Hi Onika,

in the configuration.php file there are some spaces or line breaks after the ?> line.
Please remove those spaces and line breaks.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
 Post subject: Re: Warning session.php
Posted: Tue Apr 14, 2009 4:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 14, 2009 1:46 pm
Posts: 8
Hi Olaf,

Thank you - that was easy ;)

However, I still have a problem to login with my administrator user name and password. I did change them in the database, but still I get the message that the user name and password don't match.

Do you know why this is happening?

Thanks again.

Onika


Top
  E-mail  
 
 Post subject: Re: Warning session.php
Posted: Tue Apr 14, 2009 4:21 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 14, 2009 1:46 pm
Posts: 8
Hi Olaf,

Please ignore my problem - login is finally sorted and I am in :-))

Thanks for your help again

Onika


Top
  E-mail  
 
Posted: Wed Apr 15, 2009 1:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Oct 23, 2008 10:59 am
Posts: 43
I am having the same or similar issue. I'd like to resolve this so I don't keep getting the same errors by knowing what I can enter for the session variable.
I get:

Warning: session_start() [href='function.session-start'>function.session-start]: Cannot send session cookie - headers already sent in /home1/(myusername)/public_html/libraries/joomla/session/session.php on line 423

I // line 423 out, but then it didn't recognize my login or password. I'm stumped as to what the session is referring to?

* Creates a session (or resumes the current one based on the state of the session)
*
* @access private
* @return boolean $result true on success
*/
function _start()
{
// start session if not startet
if( $this->_state == 'restart' ) {
session_id( $this->_createId() );
}

session_cache_limiter('none');
Line 423---> session_start();

// Send modified header for IE 6.0 Security Policy
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');

return true;
}


/**
* Frees all session variables and destroys all data registered to a session
*


Top
  E-mail  
 
Posted: Wed Apr 15, 2009 8:27 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
zoomlanski wrote:
I am having the same or similar issue. I'd like to resolve this so I don't keep getting the same errors by knowing what I can enter for the session variable.


Do you get any error message before that one?
Did you check your configuration.php file if there are any spaces or line breaks before <?php or after ?>

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
 Post subject: Re: Warning session.php
Posted: Wed Apr 15, 2009 10:07 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Oct 23, 2008 10:59 am
Posts: 43
Config.php --- no none apparenty (see below) and no other errors

<?php
class JFrameworkConfig
{
var $dbtype = 'mysql';
etc, etc, etc
(items removed for brevity)
}


Top
  E-mail  
 
 Post subject: Re: Warning session.php
Posted: Wed Apr 15, 2009 10:51 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
do you have this "?>" in the last line as well?

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
 Post subject: Re: Warning session.php
Posted: Sun Jul 05, 2009 12:13 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Apr 24, 2007 12:37 pm
Posts: 152
Location: Jakarta, Indonesia
I have the same problem when I do a clean install of 1.5.12. Configuration.php-dist and index.php checked for the <?php and ?>, does not help.

Bart


Update: Problem solved when moving from Firefox to IE8.


Top
  E-mail  
 
 Post subject: Re: Warning session.php
Posted: Sun Jul 05, 2009 8:31 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
vdongen wrote:
I have the same problem when I do a clean install of 1.5.12. Configuration.php-dist and index.php checked for the <?php and ?>, does not help.

Please note that the configuration.php file needs to be checked not the Configuration.php-dist file.

vdongen wrote:
Update: Problem solved when moving from Firefox to IE8.

In most cases this is not the solution for the problem.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
 Post subject: Re: Warning session.php
Posted: Fri Nov 06, 2009 12:25 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Nov 06, 2009 12:03 am
Posts: 1
The problem depends on the formatting of the file...

For example i have just installed joomla on Aruba Server and then i have downloaded all file in xampp directory, reconfigured configuration.php with new host and all the right data...but nothing to do, it doesen't work.

And then I thought about what I had seen by opening the file with Notepad, a large cauldron of strange characters, squares and others......

With my favorit editor, Editpad Pro, no error and the file was understandable and so I worked with this hope that everything was working.

Reinstall whole Joomla it's a good solution if you don't want reformatting the configuration file.

But i tested this solution and it working now.

Bye Guys


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

Quick reply

 



Who is online

Users browsing this forum: deinan and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group