nicknack1234 Posted November 15, 2009 Posted November 15, 2009 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.
germ Posted November 15, 2009 Posted November 15, 2009 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 >
nicknack1234 Posted November 15, 2009 Author Posted November 15, 2009 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?
germ Posted November 15, 2009 Posted November 15, 2009 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 >
Jan Zonjee Posted November 15, 2009 Posted November 15, 2009 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">
nicknack1234 Posted November 16, 2009 Author Posted November 16, 2009 Germ that sounds a little complex for me but Jan i think you maybe on the right track, looking at the source i see <form name="login" action="/catalog/admin/login.php?action=process" method="post"> Here is the page if that helps: http://flashpixx.homeip.net/catalog/admin/login.php
spooks Posted November 16, 2009 Posted November 16, 2009 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.
nicknack1234 Posted November 16, 2009 Author Posted November 16, 2009 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.
nicknack1234 Posted November 18, 2009 Author Posted November 18, 2009 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.
ikaria Posted December 3, 2009 Posted December 3, 2009 Hi Nick, I'm having the same problem, have you found a solution yet? Thanks :)
nicknack1234 Posted December 3, 2009 Author Posted December 3, 2009 Hi Nick, I'm having the same problem, have you found a solution yet? Thanks :) Hi nope nothing I tried what has been posted to no avail.
nicknack1234 Posted December 10, 2009 Author Posted December 10, 2009 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.
nicknack1234 Posted December 10, 2009 Author Posted December 10, 2009 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); // } //
Recommended Posts
Archived
This topic is now archived and is closed to further replies.