Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Cannot log into admin - osc231


5 replies to this topic

#1 briggers

  • Community Member
  • 13 posts
  • Real Name:Richard Brignall
  • Gender:Male
  • Location:Bracknell, UK

Posted 30 January 2012, 15:15

Hi,

I've:
  • created a new site using osc231 on a local server. Everything works fine.
  • uploaded the site to a LAMP server (running cPanel) using FTP
  • dumped and uploaded the complete database including admin users to the remote server using myAdmin
  • changed the paths in both admin configure.php and catalogue configure.php
The main site works, but I cannot log into the admin area. - "Invalid administrator login attempt"

So I've tried all of these in just about every combination I can think of, clearing all related cookies each time:
  • drop and replace the administrators table
  • delete and omit .htaccess and .htaccess_passwords in "admin"
  • delete and recreate .htaccess and .htaccess_passwords in "admin" with nothing in them
  • truncate the administrators table and try to enter a new administrator username and password
But have got nowhere

In the case of 4. Truncate... It creates a new record for administrator, with an encrypted password, but no user name. I cannot log in using "No user name" and password and if I edit the administrators table in myAdmin to put in the correct username I still get "Invalid administrator login attempt"

I've read countless threads about the new admin security module and cannot see where the problem lies.

Before I start hacking the login routine, does anyone have any ideas.

Thanks
Richard

#2 DunWeb

  • Community Sponsor
  • 10,471 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 30 January 2012, 15:21

@briggers,

You cannot import administrators from older versions of osCommerce. Truncate the administrators table and then create a new username and password when prompted to. Ensure you DO NOT gave a password protection routine in the /admin/.htacess file (until you get into the admin area to apply the password protection)



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 briggers

  • Community Member
  • 13 posts
  • Real Name:Richard Brignall
  • Gender:Male
  • Location:Bracknell, UK

Posted 30 January 2012, 15:40

Chris,

Thanks for your comment but...

The imported administrators are from a 231 version - its a new installation running on my local server

When I truncate the admins table and create a new user and password "when prompted" it puts an record without the username into the table as I said above:

Quote

In the case of 4. Truncate... It creates a new record for administrator, with an encrypted password, but no user name. I cannot log in using "No user name" and password and if I edit the administrators table in myAdmin to put in the correct username I still get "Invalid administrator login attempt"

Any other ideas ... please :sweating:

#4 DunWeb

  • Community Sponsor
  • 10,471 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 30 January 2012, 17:27

@briggers,

Unfortunately, I don't have any other ideas. I have never come across that scenario before. Perhaps someone else can chime in and help you with it........




Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#5 piratasoft

  • Community Member
  • 1 posts
  • Real Name:Fco.Javier Perez Cotrina

Posted 05 February 2012, 00:37

I finally figured out the problem solved and in question,
the fact is that the directory "admin" has a file called. htpasswd_oscommerce, here's what you should do is put the user and pswd that is in the mysql database.

that's all

I hope you like many people. :ph34r:

#6 jgwalter

  • Community Member
  • 6 posts
  • Real Name:John

Posted 07 February 2012, 20:10

View Postpiratasoft, on 05 February 2012, 00:37, said:

I finally figured out the problem solved and in question,
the fact is that the directory "admin" has a file called. htpasswd_oscommerce, here's what you should do is put the user and pswd that is in the mysql database.

that's all

I hope you like many people. :ph34r:

What is the syntax for that entry????