Jump to content

Cannot Login As Admin


GatorJimmyB

Recommended Posts

Hello,

 

We recently upgraded a clients WHMCS install from 4.21 to 4.52. Previous to the upgrade the install had been moved to a new domain and new directory by the client and broke a lot of things so our suggestion was to move it back although keeping the changed domain.

 

No real issues during the move and upgrade to 4.52 however admin login doesn't seem to be working and when proper credentials are used the admin/login.php simply refreshes. However if you present invalid credential it does tell you their wrong via the warning message.

 

We tried a completely fresh install and logins are working. We tried replacing all the WHMCS files with fresh new ones and still the same login/refresh issue. It seems to be an issue with the database, but I cannot pin-point it. It seems to be setting sessions in /tmp properly as well as it looks like it's updating the proper database tables - tbladminlog, etc...

 

Has anyone else seen this issue? Is there anything other information I can provide to help troubleshoot?

 

Thank you!

Link to comment
Share on other sites

Hi John,

 

I had actually come across another thread which suggested that however that didn't work. I did some further digging after I created this thread however couldn't post since the thread wasn't approved. Anyways, I found out that it seems that data isn't being written into the session files in /tmp. So what I did was created a tmp folder in /home/username/public_html/billing/tmp so I wouldn't have to dig through a million other session files to find the ones the script was creating. According to strace output the session file is being created and it says the data is being written into the session file, when in fact it's not:

 

17:57:23 open("/tmp/sess_f869e510a476c5baf58027869640ac8f", O_RDWR|O_CREAT, 0600) = 3

17:57:23 flock(3, LOCK_EX) = 0

17:57:23 fcntl(3, F_SETFD, FD_CLOEXEC) = 0

17:57:23 lseek(3, 0, SEEK_SET) = 0

17:57:23 write(3, "adminloggedinstatus|s:4:\"true\";adminid|s:1:\"6\";adminpw|s:32:\"07cfc15bc9cc38d112e8dd5344be9c47\";", 95) = 95

 

This is my guess as to why the login isn't working. I believe the issue is with the WHMCS code, not the database. I connected the code up to a known working WHMCS database and the login is still failing. I checked and double checked permissions and everything looks good. This server is running PHP 5 with suPHP & suexec.

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated