Can't login to new 2.3.1 install
#1
Posted 06 January 2011, 20:32
I just did a new install of 2.3.1 (my 2.2rc2a site was recently hacked). After installation I used phpmyadmin to bring in some customer data from the old store. That didn't work perfectly and I have another thread for that. But after doing that I tried to login as the admin, but I kept getting the error: Error: Invalid administrator login attempt. Now I am absolutely sure I have the correct login/pw. I even have the email that cpanel sent to me after the install with the admin details. Nonethelesss, I used phpmyadmin to delete the administrator record. I went back to the /admin url and I got the 'create a new admin' as expected. I did that and it was accepted and then when I tried to login using the same info I still get the error!!! What could possibly be the problem?
Thanks,
Chris
#2
Posted 08 January 2011, 17:07
Thanks,
Chris
catalano, on 06 January 2011, 20:32, said:
I just did a new install of 2.3.1 (my 2.2rc2a site was recently hacked). After installation I used phpmyadmin to bring in some customer data from the old store. That didn't work perfectly and I have another thread for that. But after doing that I tried to login as the admin, but I kept getting the error: Error: Invalid administrator login attempt. Now I am absolutely sure I have the correct login/pw. I even have the email that cpanel sent to me after the install with the admin details. Nonethelesss, I used phpmyadmin to delete the administrator record. I went back to the /admin url and I got the 'create a new admin' as expected. I did that and it was accepted and then when I tried to login using the same info I still get the error!!! What could possibly be the problem?
Thanks,
Chris
#3
Posted 18 January 2011, 10:50
I've have the same problem. But in my case is not a Cpanel installation, it's a clean installation downloaded from http://www.oscommerce.com/solutions/downloads .
I do not understand the error or why not let me access to the administration tool.
Anyone can help?
Thanks in advance.
#4
Posted 21 January 2011, 11:04
using windows xp with xampp 1.7.1 works fine
I'm now using windows 7 with xampp 1.7.1 (newer gives me to much errors) and with new installation and existing test site(3) I just cannot log in.
I'm using the correct password, deleted password from phpmyadmin but nothing seems to resolve this
Seems to be server or cookie related
Please we need some help and advice
#5
Posted 25 January 2011, 20:33
Your cookie domain and server can only be the domain name, not have any directories in it. Y'all may already know this but... for example:
This is correct
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');
define('HTTP_COOKIE_PATH', '/development-site-1/catalog/');
define('HTTPS_COOKIE_PATH', '/development-site-1/catalog/');
This is incorrect - Same goes for the HTTP_SERVER info too.
define('HTTP_COOKIE_DOMAIN', 'localhost/development-site-1');
define('HTTPS_COOKIE_DOMAIN', 'localhost/development-site-1');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
Like I said, you may know that but I had the same problem and that's what fixed it. I don't know much about cookies so yeah! Hope that helps!!
#6
Posted 26 January 2011, 09:46
I've tried your method and don't work for me
I still can not enter the admin area.
Thanks!
rosemaryann, on 25 January 2011, 20:33, said:
Your cookie domain and server can only be the domain name, not have any directories in it. Y'all may already know this but... for example:
This is correct
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');
define('HTTP_COOKIE_PATH', '/development-site-1/catalog/');
define('HTTPS_COOKIE_PATH', '/development-site-1/catalog/');
This is incorrect - Same goes for the HTTP_SERVER info too.
define('HTTP_COOKIE_DOMAIN', 'localhost/development-site-1');
define('HTTPS_COOKIE_DOMAIN', 'localhost/development-site-1');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
Like I said, you may know that but I had the same problem and that's what fixed it. I don't know much about cookies so yeah! Hope that helps!!
#7
Posted 30 January 2011, 09:03
I reinstalled OSC 4 times .... then i figured out that it is IE that is the problem,
try to log in with Opera or Firefox .... thats working fine !!!
angeldiaz, on 26 January 2011, 09:46, said:
I've tried your method and don't work for me
I still can not enter the admin area.
Thanks!
#8
Posted 24 May 2011, 00:34
I installed 2.3.1 on a development subdomain. The strange thing is how the error appears: "Error: Invalid administrator login attempt." This comes up when the Admin login page first appears and I haven't yet signed in. When I try to sign in the same error appears without being able to access admin.
PHP Version 5.1.6
MySQL Version 5.0.27
VPS box
#9
Posted 24 May 2011, 08:23
You have two options on install to get around this
Option 1:
Immediately after installing go to you admin>>modules>action recorder>>admin login alter the allowed minutes to 0 and the allowed attempts to 300
Option 2 (the only one you can use if you've already been locked out):
In phpMyAdmin access your database select the configuration table find configuration_id 98 & 99 (should be on the 4th page at 30 rows per page) again set allowed minutes to 0 and allowed attempts to 300.
At the same time you might have to TRUNCATE (EMPTY) the action recorder table
Pre install (you) can only do this if you download from the official osC centre (click website at top of this page then solutions) open the .sql file in your plain text editor scroll down until you find the "configuration" insert data (will start INSERT into table configuration) then go down about 90 lines
find:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Allowed Minutes', 'MODULE_ACTION_RECORDER_ADMIN_LOGIN_MINUTES', '5', 'Number of minutes to allow login attempts to occur.', '6', '0', now());
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Allowed Attempts', 'MODULE_ACTION_RECORDER_ADMIN_LOGIN_ATTEMPTS', '3', 'Number of login attempts to allow within the specified period.', '6', '0', now());
change to:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Allowed Minutes', 'MODULE_ACTION_RECORDER_ADMIN_LOGIN_MINUTES', '0', 'Number of minutes to allow login attempts to occur.', '6', '0', now());
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Allowed Attempts', 'MODULE_ACTION_RECORDER_ADMIN_LOGIN_ATTEMPTS', '300', 'Number of login attempts to allow within the specified period.', '6', '0', now());
save now upload and install
Working with osCommerce 2.3.1
Add-Ons so far Installed:
Add date and order number to invoice and packing slip,
Products Cycle Slideshow,
Detailed Monthly Sales,
Holiday Settings,
Tracking Module for 2.3
#10
Posted 24 May 2011, 16:04
Xpajun, on 24 May 2011, 08:23, said:
Option 2 (the only one you can use if you've already been locked out):
In phpMyAdmin access your database select the configuration table find configuration_id 98 & 99 (should be on the 4th page at 30 rows per page) again set allowed minutes to 0 and allowed attempts to 300.
At the same time you might have to TRUNCATE (EMPTY) the action recorder table
Thank you, but this did not work. My 2.3.1 download is from official OSC site.
First, I modded configuation as per your instuctions. Second, I truncated the administrators table and installed new username and password, just to be sure. Third, I then truncated the action recorder table as per your instructions, now here is what happens:
I go to my Admin, the login page appears immediately with this error: Error: Invalid administrator login attempt. Before I actually attempt to login in the login form, the action recorder table shows that an attempt was made to login, but this is incorrect. When I actually login, the login page reappears with the same error. Now action recorder table has 2 supposed attempts. There was actually only one attempt.
It appears I may have two problems or maybe they are related and have only one solution.
I have been searching for days on the forum for an answer to this problem. The only way I found people with my particular problem was to search the forum with querying the error itself. I found a number of individuals and not one reveals an answer to this problem or if they ever found an answer. I did not start a new topic but replied to as many posts as I could to those with the same problem as I.
I appreciate your efforts. If you have anything more, please toss it my way.
Alan
PHP Version 5.1.6
MySQL Version 5.0.27
VPS box
#11
Posted 24 May 2011, 20:09
I have to add these can only be suggestions as I do not know what your setup is neither do I know the result of others enquiries.
If you have htpasswd set then your login username and password MUST be the same as your htpasswd
Edited by Xpajun, 24 May 2011, 20:13.
Working with osCommerce 2.3.1
Add-Ons so far Installed:
Add date and order number to invoice and packing slip,
Products Cycle Slideshow,
Detailed Monthly Sales,
Holiday Settings,
Tracking Module for 2.3
#12
Posted 24 May 2011, 21:10
Removing the cookies, cache, and history is something I have already done, I did it again and it still does not work.
I have not yet password protected my admin directory, so this is not the problem. However, for your information, password protected directories can have different usernames and passwords than the username and password for logging into Admin tool.
I have 2.3.1 set up on a development subdomain on the VPS box you can see in my signature section.
Thanks again for trying.
Alan
Edited by alancwade, 24 May 2011, 21:14.
PHP Version 5.1.6
MySQL Version 5.0.27
VPS box
#13
Posted 24 May 2011, 22:05
"password protected directories can have different usernames and passwords than the username and password for logging into Admin tool."
this is incorrect. Unless you have ripped out the admin auth functions that come as standard with 2.3.1, which you probably have not done I would suggest.
If you htpasswd the 2.3.x admin area, it must have the eXaCt sAme user/pass combo as used to access the admin tool without htpasswd.
As you say you have not yet htpasswd'd the admin section, then is a moot point. I would suggest that you strip out the admin auth functionality until you are able to access the admin, then add it back in piece by piece. This way you get to the root cause of your issue.
Edited by burt, 24 May 2011, 22:05.
Support is commercially available. The question is whether you value your business
highly enough to spend money on it.
For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/
#14
Posted 24 May 2011, 22:13
MODULE_ACTION_RECORDER_INSTALLED
MODULE_ACTION_RECORDER_ADMIN_LOGIN_MINUTES
MODULE_ACTION_RECORDER_ADMIN_LOGIN_ATTEMPTS
Support is commercially available. The question is whether you value your business
highly enough to spend money on it.
For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/
#15
Posted 24 May 2011, 22:47
ar_admin_login.php;ar_contact_us.php;ar_tell_a_friend.php
MODULE_ACTION_RECORDER_ADMIN_LOGIN_MINUTES
0
MODULE_ACTION_RECORDER_ADMIN_LOGIN_ATTEMPTS
300
Thanks
PHP Version 5.1.6
MySQL Version 5.0.27
VPS box
#16
Posted 25 May 2011, 00:46
Well, I stand to be corrected. Regarding htpasswd and Admin login usename and passwords which MUST be the same, I forgot to take into account we are dealing with OSC 2.3.1. I had in mind my use of version 2.2 RC2a where my user name in htpasswd is different than admin login username and it works.
Point well taken.
Now I will work on trying to find out how to "strip out the admin auth functionality" and "then add it back in piece by piece."
Alan
PHP Version 5.1.6
MySQL Version 5.0.27
VPS box
#17
Posted 25 May 2011, 05:48
alancwade, on 24 May 2011, 22:47, said:
ar_admin_login.php;ar_contact_us.php;ar_tell_a_friend.php
MODULE_ACTION_RECORDER_ADMIN_LOGIN_MINUTES
0
MODULE_ACTION_RECORDER_ADMIN_LOGIN_ATTEMPTS
300
Thanks
0 and 300 is incorrect (benefit for future readers, I suggest 10 and 1), but will do for testing purposes.
The two ways I was able to replicate a similar login issue was;
1. to remove the ar_admin_login.php value from the MODULE_ACTION_RECORDER_INSTALLED key
2. to remove the ar_admin_login.php FILE from the /includes/modules/action_recorder/ directory
So, as you have the entry in the DB, do you have the file in the right place. If it IS there, is it correctly coded (ie, not corrupt).
Support is commercially available. The question is whether you value your business
highly enough to spend money on it.
For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/
#18
Posted 25 May 2011, 07:59
I did an existing file compare with 2 other OSC 2.3.1 downloaded ar_admin_login.php files and there were no differences.
PHP Version 5.1.6
MySQL Version 5.0.27
VPS box
#19
Posted 25 May 2011, 08:02
alancwade, on 25 May 2011, 00:46, said:
Well, I stand to be corrected. Regarding htpasswd and Admin login usename and passwords which MUST be the same, I forgot to take into account we are dealing with OSC 2.3.1. I had in mind my use of version 2.2 RC2a where my user name in htpasswd is different than admin login username and it works.
Point well taken.
Now I will work on trying to find out how to "strip out the admin auth functionality" and "then add it back in piece by piece."
Alan
Alan,
Not only must the admin login on 2.3.1 be the same as htpasswd on the admin folder but any parent folder that the admin resides in
Working with osCommerce 2.3.1
Add-Ons so far Installed:
Add date and order number to invoice and packing slip,
Products Cycle Slideshow,
Detailed Monthly Sales,
Holiday Settings,
Tracking Module for 2.3
#20
Posted 25 May 2011, 12:27
Support is commercially available. The question is whether you value your business
highly enough to spend money on it.
For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/














