countrywesterndj Posted July 27, 2007 Share Posted July 27, 2007 I just upgraded to version 3.2.1 last and now I can't log onto the Admin area. Even time I try, i get the top task bar with .. HOME .. CLIENTS .. ORDERS .. TRANSACTIONS .. etc. But it displays again Username / Password to enter again .. when I click on any of the items on the task bar, it just refreshes and again asks for Username / Password. I put in a ticket and Matt said it was a PHP sessions problem. I can see in my php Sessions folder that it writes out a file every time and updates it. Here is an entry (I blanked out the password): adminloggedinstatus|s:4:"true";adminid|s:1:"1";adminusername|s:4:"CWDJ";adminpassword|s:32:"******************"; Matt said to restart the server, which was done 3 times. He also said: "No, nothing changed relating to this in the upgrade. It's definately PHP sessions not WHMCS but I'm no server tech and haven't got a clue what could cause it." My hosting company (POWWEB) said that maybe the login.php file has gotten corrupted and I should re-load all the software again, which I don't think is the answer either. Can anyone help me out to get back working again? Do I have to CHMOD the sessions folder or anything. No one seems to know how to fix this problem. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 27, 2007 WHMCS CEO Share Posted July 27, 2007 No, it won't be that file being corrupted. As we can see from what's being written to the sessions folder, the login is working, but still returns you to the login screen. This means that the session can't be read by PHP I would guess. Matt 0 Quote Link to comment Share on other sites More sharing options...
trine Posted July 27, 2007 Share Posted July 27, 2007 This could also be as simple as a cookie issue. Make sure that your browser is accepting the cookie and cookies are enabled. cheers 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted July 27, 2007 Author Share Posted July 27, 2007 I've checked the cookie issue .. tried 2 different browsers on 5 different PC's .. so that's not it .. This also happened the last time I upgraded .. but all I had to do was to change the php.ini file to give the path of the sessions folder. This time, nothing yet seems to work yet to fix the issue. 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted July 28, 2007 Author Share Posted July 28, 2007 Well I spent hours with our host, POWWEB, trying to resolve this problem. We changed the location of the php sessions file to: /htdocs/cgi-bin/tmp/ They also had me change settings in the php Sessions section in my php.ini file. We changed: session.cache_limiter session.auto_start session.use_only_cookies session.use_trans_sid and a few other settings. Nothing worked. They claim that since the user / password / etc. information is being written out correctly to the php sessions file, the fault lies with the software. I am at my wits end .. Matt, how can I go back to the previous release of WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted July 29, 2007 Author Share Posted July 29, 2007 I installed WHMCS to another webhost that we use (WESTHOST) from scratch. A new install of 3.2.1 .. I get the exact same problem with the ADMIN login that we received on our POWWEB host .. it just loops and accepts the user / password and returns againg for the user / password. If anyone wants to try it .. EDIT: Login details removed for your own security now the issue is resolved!! (Matt) This is hosted by POWWEB .. after hours on the line with their tech support, here is their response: However; the above mentioned page is not allowing to login. Also, I have verified the CGI error logs. However; as there are no errors in the logs, it appears that there is no issue with the working of the CGI scripts in the customer’s account. However, please inform to the customer that the sessions have been created for each login for the folder phpsession, which is outside the root of the web directory. Also I have verified the Admin login information in the database/table tblAdminlog, and have noticed that the session path is being generated properly. Further I have tried to re-set the password, however, I am still unable to login. Please also suggest to the customer that even after trying for the hyperlink ‘ForGet password’, and then trying to login with the new temporary password login is not working fine. Hence, it appears that the application scripts are not functioning properly, may be application is not installed properly or the application is not recognizing the session ID properly. As there is no issue with the session, the only suggested course of action for the customer would be to contact the application developer and check for any patches/updates for the mentioned application. Has anyone else installed 3.2.1 yet .. if so, can you post your php.ini file for the php sessions .. Matt, it seems pretty unusual that 3.2.1 doesn't work for 2 different webhosts. If you want, I can try a third ... I really need help to get the billing application working again. So, can you please look into this. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 29, 2007 WHMCS CEO Share Posted July 29, 2007 Hi, Yes, that does seem unusual but you have to remember it's working for thousands of others. It can't be what they've suggested - open a ticket and I'll create a test file to attempt to prove there is a sessions issue. Matt 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted July 29, 2007 Author Share Posted July 29, 2007 I have a ticket open, but I'll open up another one .. The previous version worked fine with php sessions .. it's only after I upgraded it stopped working. 0 Quote Link to comment Share on other sites More sharing options...
hoosierweb Posted August 4, 2007 Share Posted August 4, 2007 my same problem just appeared.. but it does let me log in if I check the remember me box.. and since I do now have a session issue, step 3 of cart contents are showing empty 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted August 4, 2007 Share Posted August 4, 2007 I just logged in using the details you provided above, navigated around, clicked about 20 links and its all fine.. I didnt get asked to log in again once. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 4, 2007 WHMCS CEO Share Posted August 4, 2007 This users issue was discovered to be something different than sessions. A server restart usually resolves sessions not working. Matt 0 Quote Link to comment Share on other sites More sharing options...
hoosierweb Posted August 5, 2007 Share Posted August 5, 2007 we have restarted twice.. and my tech guys say there is nothing wrong with the sessions or in any error logs perhaps I may have the same thing wrong as these people.. I installed a second time in another directory.. with the same results 0 Quote Link to comment Share on other sites More sharing options...
mtindor Posted May 14, 2009 Share Posted May 14, 2009 Replying to an ancient post... but, i was experiencing the same problem and it ended up being a situation with me running suphp and it was writing to the my php.ini default session.save_path ( /var/lib/php/sessions ). I changed session.save_path to point to /tmp (which is my hardened tmp partition) and its working fine. Mike 0 Quote Link to comment Share on other sites More sharing options...
txkhomes Posted June 19, 2009 Share Posted June 19, 2009 I am having this issue now, I was edit the php.ini when it comes to session.save I have it set to 1;/tmp now but since unable to login I have reboot nothing works any ideas 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted July 21, 2009 Share Posted July 21, 2009 I am facing this problem now 0 Quote Link to comment Share on other sites More sharing options...
txkhomes Posted July 21, 2009 Share Posted July 21, 2009 have you changed anything or your host changed anything, my mistake was changing the php session value 0 Quote Link to comment Share on other sites More sharing options...
JacquesM Posted August 8, 2009 Share Posted August 8, 2009 I am also facing this problem. I can login OK and can see pages but am returned to the login page randomly, or so it seems. This is a session problem. I checked to see if session data is written and it is after a successful login. File length is 95 bytes. File permissions are set to 0600. This does not prevent WHMCS to return to the login page which usually happens after I click on a form button or menu option. After a return to the login, the session file is set to 0 bytes but not erased or deleted. This tells me that WHMCS tries to authenticate the request but fails to retrieve session data when it needs it. I hope this helps. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.