Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot login to Admin panel


nicknack1234

Recommended Posts

Posted

Hi,

 

I have just installed OSCommerce 3 times trying to fix this, I cannot login to the admin page, It returns me to the Username, Password page with no error. Upon entering the incorrect password i get a error but with correct info nothing just returned again to thr login page, I have tried resetting the password and recreating the entire sql database. Any help will be appreciated.

 

Nick.

Posted

Hi,

 

I have just installed OSCommerce 3 times trying to fix this, I cannot login to the admin page, It returns me to the Username, Password page with no error. Upon entering the incorrect password i get a error but with correct info nothing just returned again to thr login page, I have tried resetting the password and recreating the entire sql database. Any help will be appreciated.

 

Nick.

v3 questions should be posted somewhere here

 

Look at the top of this page.

 

This part of the forum is for osCommerce Online Merchant v2.x exclusively.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

v3 questions should be posted somewhere here

 

Look at the top of this page.

 

This part of the forum is for osCommerce Online Merchant v2.x exclusively.

 

Sorry i could have phrased that better, I am currently running version 2.2 RC2a but have tried installing it 3 times with no luck, Thanks for the reply any suggestions?

Posted

Sorry i could have phrased that better, I am currently running version 2.2 RC2a but have tried installing it 3 times with no luck, Thanks for the reply any suggestions?

If it were me I would probably insert some "debugging" code into the page to find out:

 

1. Is it getting the correct info from the login form?

 

2. Is is pulling the correct info from the DB?

 

But I don't have that version of osC installed so I really can't post any specifics.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I cannot login to the admin page, It returns me to the Username, Password page with no error. Upon entering the incorrect password i get a error but with correct info nothing just returned again to thr login page, I have tried resetting the password and recreating the entire sql database. Any help will be appreciated.

If you view the page source, does the form action of the login page correspond with the page you are at the moment?

<form name="login" action="http://www.yourdomain.com/catalog/admin/login.php?action=process&osCAdminID=4241881c67ad1c706bb6fbe003e35249" method="post">

Posted

Some that have had this issue b4 found it was due to htaccess files, try removing any in admin or root & see if that helps.

 

 

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Some that have had this issue b4 found it was due to htaccess files, try removing any in admin or root & see if that helps.

Thanks for the suggestion i will give it a try when i get home and give you a update.

Posted

I tried removing the htaccess files no change, I thought it might have been authenticating but notre-directing but after clicking login every page in admin directory re-directs back to login.php, Any other thought's, I would like to try Germ's suggestion but do not have the skills. Thank you all for your help so far.

  • 2 weeks later...
Posted

Hi Nick, I'm having the same problem, have you found a solution yet?

Thanks :)

 

Hey, you had any luck at all, still stuck on this anyone have anymore suggestions i have removed all .htaccess files I re-installed and the source for the site seems to show the correct link now /oscommerce/catalog/admin/index.php?osCAdminID=pli5ook3l0eoah9eo28lhv2a40

all out of ideas here.

Posted

Woo finnaly got it from another thread on here:

 

For the fun of it, after backing up the file, try commenting out the following code in admin/includes/application_top.php and see if you can log in:

 

// redirect to login page if administrator is not yet logged in

if (!tep_session_is_registered('admin')) {

$redirect = false;

 

$current_page = basename($PHP_SELF);

 

if ($current_page != FILENAME_LOGIN) {

if (!tep_session_is_registered('redirect_origin')) {

tep_session_register('redirect_origin');

 

$redirect_origin = array('page' => $current_page,

'get' => $HTTP_GET_VARS);

}

 

$redirect = true;

}

 

if ($redirect == true) {

tep_redirect(tep_href_link(FILENAME_LOGIN));

}

 

unset($redirect);

 

As baddog suggested i commented that section of aplication_top.php in "oscommerce\catalog\admin\includes" and it works, Thanks for everyones help!

 

// redirect to login page if administrator is not yet logged in

// if (!tep_session_is_registered('admin')) {

// $redirect = false;

//

// $current_page = basename($PHP_SELF);

//

// if ($current_page != FILENAME_LOGIN) {

// if (!tep_session_is_registered('redirect_origin')) {

// tep_session_register('redirect_origin');

//

// $redirect_origin = array('page' => $current_page,

// 'get' => $HTTP_GET_VARS);

// }

//

// $redirect = true;

// }

//

// if ($redirect == true) {

// tep_redirect(tep_href_link(FILENAME_LOGIN));

// }

//

// unset($redirect);

// }

//

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...