Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ARRGGHH - can't log into admin after upgrade from 2.3.3.2 to 2.3.3.3


bigbird_3156

Recommended Posts

Posted

This upgrade is causing me too much pain....

 

after doing the upgrade I could not get into my admin page.... I get this warning from firefox...

 

The page isn't redirecting properly

 

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

I have reverse - updated all the files that I updated as well as thoroughly looking through my admin/login.php file .. trying a few different versions... including the original and stilol get the error ....

 

Not sure it is linked to the login file or something else, anyway I cant find the problem... anyone else have any ideas?

Posted

Ok, so I played around with admin\includes\application_top.php and commented out the code below,

 

This allowed me to log into the admin page but obviously shows that there is a problem somewhere as I just cant remove this code...

 

Also when my admin page loads there is no left column.

 

// if the first page request is to the login page, set the current page to the index page
// so the redirection on a successful login is not made to the login page again
   if ( ($current_page == FILENAME_LOGIN) && !tep_session_is_registered('redirect_origin') ) {
  $current_page = FILENAME_DEFAULT;
 $HTTP_GET_VARS = array();
  }
   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);
  }
// try to automatically login with the HTTP Authentication values if it exists
  if (!tep_session_is_registered('auth_ignore')) {
  if (isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && !empty($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW']) && !empty($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
    $redirect_origin['auth_user'] = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
	 $redirect_origin['auth_pw'] = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
  }
   }
 $redirect = true;
   }
   if (!isset($login_request) || isset($HTTP_GET_VARS['login_request']) || isset($HTTP_POST_VARS['login_request']) || isset($HTTP_COOKIE_VARS['login_request']) || isset($HTTP_SESSION_VARS['login_request']) || isset($HTTP_POST_FILES['login_request']) || isset($HTTP_SERVER_VARS['login_request'])) {
   $redirect = true;
  }
   if ($redirect == true) {
   tep_redirect(tep_href_link(FILENAME_LOGIN, (isset($redirect_origin['auth_user']) ? 'action=process' : '')));
 }
  unset($redirect);

 

I'm still totally lost, any help would be appreciated

Archived

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

×
×
  • Create New...