The Joomla! Forum ™



Forum rules


Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks

This forum section will be closed and removed eventually.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Dec 04, 2005 6:49 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Sep 06, 2005 9:10 am
Posts: 252
Location: Netherlands
*** searchwords ***
Wamp, Windows, Apache, MySQL, Php, administrator, backend, login, problem

*** problem ***
Lot of people have problems loggin in to the Joomla! administrator. I had no problems on my apple or my linux install, but when using windows i came accross the login problem.
So what is the problem? Well in my case it was a session error. I installed php in a non default windows directory.
php.ini stated that my session should be saved in:
c:\PHP\sessiondata
but that directory does not exist.

*** solution ***
I changed the session savepath to:
session.save_path= C:\apache\PHP\sessiondata

*** is it the session error? ***

You can test whether or not you have a session error by editing administrator/index.php.
Add the lines:
session_start();
echo $_SESSION['session_id']

if the session can not be set you'll get a error that looks like this:
Warning: Unknown(): open(C:\PHP\sessiondata\sess_2dc0c0ca81f559eaf3eeb014cb05bb72, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Make sure the error reporting level in php.ini is at least 'Warning':
error_reporting  = E_WARNING;

*** links ***
Other reported problems can be found here: http://forum.joomla.org/index.php/topic,6490.0.html. If we only post solutions to the problem here we can keep the FAQ 'clean'.

_________________
Joomla insite


Last edited by MarkV on Sun Dec 04, 2005 6:51 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jan 14, 2006 7:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 13, 2006 5:14 pm
Posts: 9
Location: Minneapolis
Hey all,

I just wanted to add some notes to this problem because i spent a few hours going through it also.

MarkY you had the problem right on the head and your quick test is useful it lead me to the problem. The thing that threw me off was that when i first installed the script i was able to login to the admin panel without a problem. Then after i had everything set up and made the site live i couldn't anymore.

With my host the session.save_path is within the users directory in a folder so I had to specify a session_write_path(); in the configuration file because I was unable to use the .htaccess method to change the php.ini variable locally. This was fine the problem was when i moved my old site to a _oldSite directory for backup i moved the folder that the session.save_path was pointing too, lol. I can't beleave how much time i spent on such a simple dumb mistake.

I thought i would post this incase anyone else does the same thing. Hope to save somebody some time.

_________________
---------------------------
Martin Dale Lyness
(Gabriel Frank Linux)


Top
 Profile  
 
PostPosted: Wed Jan 18, 2006 11:34 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Oct 31, 2005 9:32 pm
Posts: 17
mdl_kid hi,
where is the configuration file that defines the session_write_path();
Is this the configuration file that configures php instalation of the host? Can we, as clients, change this file?
Thanks


Top
 Profile  
 
PostPosted: Wed Jan 18, 2006 1:52 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 13, 2006 5:14 pm
Posts: 9
Location: Minneapolis
Hey Gregko,

the session_save_path() is not built into the joomla code. If you need to specify a specific session_save_path() and cannot do it via the .htaccess file then you need to add the function to an install file and your configuration.php that holds all of your static variables e.g. database host, password, username, ect... I forget which file it was in the installation directory that i added the path to, but it is really easy to figure out. Just open up the pages and find a file that is included in them all. Then just add the line the that file. It probably holds a bunch of other configuration stuff in it.

Don't for get to add the path to your session directory in the session_save_path(yourDirectory);

Hope this helps,
Martin Dale Lyness

_________________
---------------------------
Martin Dale Lyness
(Gabriel Frank Linux)


Top
 Profile  
 
PostPosted: Fri Jan 20, 2006 12:03 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Thu Aug 18, 2005 10:27 am
Posts: 4167
Location: Sunny City Cebu, Philippines!
@MarkV,

thanks for adding in the FAQ.. added search words for the forum: administrator loop, login loop,


- g

_________________
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.

http://www.joomlaconsultancy.net | http://www.backspace.ph


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


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® Forum Software © phpBB Group