Forums / General Questions / Can't login to Admin

Can't login to Admin

Locked

Started by akbeech on 10 Dec 2006, 6:42 AM · Views: 1,379

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Dec 2006, 6:42 AM
#1
akbeech avatar

akbeech

New Zenner

Join Date:
Mar 2006
Posts:
13
Plugin Contributions:
0

Can't login to Admin

I can't get into admin. I ran the sql from an earlier thread and it recreated the admin table with the username Admin etc... But, when I try and log in with Admin / admin it tells me that I'm using the wrong user / pass. I checked the fields and they are correct as per the earlier thread with email admin@localhost and username Admin, so I know the sql worked. Now I'm really stuck. I know it's n not a db problem because the front end of the cart is working perfectly. What do I do now?

10 Dec 2006, 7:22 AM
#2
akbeech avatar

akbeech

New Zenner

Join Date:
Mar 2006
Posts:
13
Plugin Contributions:
0

Re: Can't login to Admin

BTW, if I try and resend the pass to admin@localhost it also tells me I'm using the wrong email address.

10 Dec 2006, 8:06 AM
#3
akbeech avatar

akbeech

New Zenner

Join Date:
Mar 2006
Posts:
13
Plugin Contributions:
0

Re: Can't login to Admin

Seems I ran into the php 5.2 update bug.
This fixed it (from another thread):

edit /includes/functions/sessions.php
Code:

function _sess_write($key, $val) {
  global $db;

change to:
Code:

function _sess_write($key, $val) {
  // The following is only to work around a PHP 5.2.0 bug:
  //global $db;
  $db = new queryFactory();
  $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);

Option (b) may or may not be "complete", and has only had preliminary testing. The best fix will be to have PHP fix their bug, of course.

10 Dec 2006, 9:16 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Can't login to Admin

Thanks for posting the solution to the situation. I'm sure it will help others in the same boat. :yes:

The learning is in the doing.

Potent Products

22 Dec 2006, 3:09 PM
#5
muaz avatar

muaz

New Zenner

Join Date:
Oct 2006
Posts:
14
Plugin Contributions:
0

Re: Can't login to Admin

akbeech, you are great.

Thanks alot for the solutions.

Thanks