psychopath Posted June 11, 2014 Share Posted June 11, 2014 After upgrading to oScommerce V2.3.4 I can not login to the adminsection. It says something about the redirecting? I have empty Sessions and action_recorder in the database but I still have the same problem. I get the login prompt and enter the right user and password but after that I get the redirecting error. Any suggestions? Link to comment Share on other sites More sharing options...
multimixer Posted June 11, 2014 Share Posted June 11, 2014 It says something about the redirecting? What exactly does it say? What is happening? My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted June 11, 2014 Share Posted June 11, 2014 Do you have SSL enabled on the catalog side? If yes, be sure to configure the new admin configuration parameters properly: http://library.oscommerce.com/Online&en&oscom_2_3&release_notes&v2_3_4#upg14 , osCommerce Link to comment Share on other sites More sharing options...
psychopath Posted June 11, 2014 Author Share Posted June 11, 2014 What exactly does it say? What is happening? Redirectingloop What exactly does it say? What is happening? Redirectingloop Redirection limit for this URL exceeded. Can not download the requested page. This may be due to blocked cookies. The browser has canceled the attempt to retrieve the requested item. The location redirect inquiry in a way that makes it impossible to completion. * Have you disabled or blocked cookies from this site? * NOTE: If an acceptance of this site's cookies does not resolve the problem, it is likely a problem with the server's configuration and not with your computer. Cookies are not blocked, the same problem in other webbrowsers also. Nothing happends, the adminsection is not loading. It sops at login.php?action=process Link to comment Share on other sites More sharing options...
psychopath Posted June 11, 2014 Author Share Posted June 11, 2014 Do you have SSL enabled on the catalog side? If yes, be sure to configure the new admin configuration parameters properly: http://library.oscommerce.com/Online&en&oscom_2_3&release_notes&v2_3_4#upg14 SSL is not enabled. Link to comment Share on other sites More sharing options...
tgely Posted June 11, 2014 Share Posted June 11, 2014 I suggest admin update after log off to prevent login loops. osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
psychopath Posted June 11, 2014 Author Share Posted June 11, 2014 I suggest admin update after log off to prevent login loops. How do you mean? I have already updated all the adminfiles. Link to comment Share on other sites More sharing options...
tgely Posted June 11, 2014 Share Posted June 11, 2014 You can turn off every loops with switch off which is the whimsy of loops. The best way to go back one step and start again the uprgrade on the admin site.The most of loops start when admin logged in and click some link to follow the work, but session expired and must be login again but login fails..If you used htaccess layer you have to wait for htaccess session expired or @@Taipo said It is possible to clear the authentication session with htpasswd, however it only works on Firefox.Redirect the logout session to http://somelonghash@.../catalog/admin/ will reset/invalidate the basic authenticated session in Firefox. It may do in other browsers too however I have only tested Firefox and Internet Explorer.The best practice though is a separate set of credentials for each security layer. osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
psychopath Posted June 15, 2014 Author Share Posted June 15, 2014 Pronlems solved, thanks for all suggestions. Link to comment Share on other sites More sharing options...
flhiker211 Posted June 15, 2014 Share Posted June 15, 2014 I just did a new/clean install of 2.3.4. Everything installed just fine. However, when I try to access /admin, I get the following error: Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/onlinedi/public_html/admin/index.php on line 13 Any help would be appreciated. Link to comment Share on other sites More sharing options...
Scottyj Posted June 29, 2014 Share Posted June 29, 2014 Hi guys, I've had the same issue as the first poster. I've tracked the problem down to application_top.php which is in the admin/includes directory. This section // set php_self in the local scope $req = parse_url($HTTP_SERVER_VARS['SCRIPT_NAME']); $PHP_SELF = substr($req['path'], ($request_type == 'SSL') ? strlen(DIR_WS_HTTPS_ADMIN) : strlen(DIR_WS_ADMIN)); Is what is causing my redirect loops. I changed just this part back to the original // set php_self in the local scope $PHP_SELF = (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']); And the redirect loop goes away and I can once again log in. I've added the new configuration settings around HTTPS although I suspect is one of those variables that I don't have set right that is causing the issue. I've given up for the night and will try again later. Any ideas in the meantime would be appreciated. Link to comment Share on other sites More sharing options...
bikram yoga Posted September 25, 2014 Share Posted September 25, 2014 I can't log in admin page everytime i log in i getThis webpage has a redirect loop how do i fix this issue..? Link to comment Share on other sites More sharing options...
hashar Posted October 8, 2014 Share Posted October 8, 2014 Hi all, Actually am using oscommerce v2.3.4 live shop . when i tried to access my oscommerce v2.3.4 live website admin page. it shows error like this webpage has a redirect loop. But locally its ok. Anybody have any idea regarding this? my admin config file is define('HTTP_SERVER', 'http://www.berkeleyme.com/Berky'); define('HTTPS_SERVER', 'http://www.berkeleyme.com/Berky'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/http://www.berkeleyme.com/Berky/adminnimda'); define('HTTPS_COOKIE_PATH', '/http://www.berkeleyme.com/Berky/adminnimda'); define('HTTP_CATALOG_SERVER', '/'); define('HTTPS_CATALOG_SERVER', '/'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/berkele4/public_html/Berky/'); define('DIR_WS_ADMIN', '/adminnimda/'); define('DIR_WS_HTTPS_ADMIN', '/adminnimda/'); define('DIR_FS_ADMIN', '/home/berkele4/public_html/Berky/adminnimda/'); define('DIR_WS_CATALOG', '/Berky/'); define('DIR_WS_HTTPS_CATALOG', '/Berky/'); define('DIR_FS_CATALOG', '/home/berkele4/public_html/Berky/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); But in local its work fine. only the problem is in live. Please help me am helpless Link to comment Share on other sites More sharing options...
♥joli1811 Posted October 8, 2014 Share Posted October 8, 2014 You can try this define('HTTP_SERVER', 'http://www.berkeleyme.com'); define('HTTPS_SERVER', 'http://www.berkeleyme.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/Berky/adminnimda'); define('HTTPS_COOKIE_PATH', '/Berky/adminnimda'); define('HTTP_CATALOG_SERVER', 'http://www.berkeleyme.com'); define('HTTPS_CATALOG_SERVER', 'http://www.berkeleyme.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/berkele4/public_html/Berky/'); define('DIR_WS_ADMIN', '/Berky/adminnimda/'); define('DIR_WS_HTTPS_ADMIN', '/Berky/adminnimda/'); define('DIR_FS_ADMIN', '/home/berkele4/public_html/Berky/adminnimda/'); define('DIR_WS_CATALOG', '/Berky/'); define('DIR_WS_HTTPS_CATALOG', '/Berky/'); define('DIR_FS_CATALOG', '/home/berkele4/public_html/Berky/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
John P Posted January 13, 2015 Share Posted January 13, 2015 Hi All, I've upgraded my 2.3.3.4 shop to 2.3.4. recently I'm usiing Ajax product Atttribute Handler. Since the update everything seems to work well. The only issue I have is that on the admin/catagories.php page where normally the ajax product attribute is loaded, now the admin/index.php page is loaded. Looks quite strang as the add product page (admin/categories.php) is displayed normal on the top and then is interrupted with the admin/index.php page before it contiues with it's normal contents. I found out that if I disable the sessions/force cookies, then the prvious page is displayed correctly with the ajax product attribute handler. I have tried to reverse the update, only if I complete reverse, so go back to 2.3.3.4, the issue vanish. Can anyone suggest how to solve this session / cookies issue under 2.3.4? Cheers John. my admin/includes/configure.php <?php define('HTTP_SERVER', 'http://127.0.0.1'); define('HTTP_CATALOG_SERVER', 'http://127.0.0.1'); define('DIR_WS_HTTPS_CATALOG', '/dev3/'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'C:/xampp/htdocs/dev3/'); define('DIR_WS_ADMIN', '/dev3/admin/'); define('DIR_FS_ADMIN', 'C:/xampp/htdocs/dev3/admin/'); define('DIR_WS_CATALOG', '/dev3/'); define('DIR_FS_CATALOG', 'c:/xampp/htdocs/dev3/'); define('DIR_WS_CACHE', 'cache/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('HTTPS_SERVER', '');define('ENABLE_SSL', false);define('HTTP_COOKIE_DOMAIN', 'http://127.0.0.1');define('HTTPS_COOKIE_DOMAIN', '');define('HTTP_COOKIE_PATH', '/dev3/admin/');define('HTTPS_COOKIE_PATH', '');define('DIR_WS_HTTPS_ADMIN', '/dev3/admin/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'devlive'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> PS. I also tried define('HTTP_COOKIE_DOMAIN', ''); without noticable difference. Link to comment Share on other sites More sharing options...
♥joli1811 Posted January 13, 2015 Share Posted January 13, 2015 Check your query I think I remember reading this type of display was caused by a missing/wrong query after the upgrade. so pay specal attention to what is happening in admin/incudes/template-top.php there you will find the jquery calls Ajax product Atttribute Handler modifies admin/incudes/template-top.php a bit go over your work there again. Regards Joli To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
John P Posted January 13, 2015 Share Posted January 13, 2015 Hi Joli, I've check check that too, bite cluesless now. The handler is called in my template_top.php as: <!-- AJAX Attribute Manager --><?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?><!-- AJAX Attribute Manager end --> and then loaded <!-- AJAX Attribute Manager --><body onload="goOnLoad();"><!-- AJAX Attribute Manager end --> in fact i used the template_top.php from the last AJAX Attribute Manager update July 2014, made for OSC 2.3.4 <?php/* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2014 osCommerce Released under the GNU General Public License*/?><!DOCTYPE html><html <?php echo HTML_PARAMS; ?>><head><meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"><meta name="robots" content="noindex,nofollow"><title><?php echo TITLE; ?></title><base href="<?php echo ($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_ADMIN : HTTP_SERVER . DIR_WS_ADMIN; ?>" /><!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js', '', 'SSL'); ?>"></script><![endif]--><link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.10.4.min.css', '', 'SSL'); ?>"><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.11.1.min.js', '', 'SSL'); ?>"></script><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.10.4.min.js', '', 'SSL'); ?>"></script><?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {?><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js', '', 'SSL'); ?>"></script><script type="text/javascript">$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);</script><?php }?><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.min.js', '', 'SSL'); ?>"></script><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.time.min.js', '', 'SSL'); ?>"></script><link rel="stylesheet" type="text/css" href="includes/stylesheet.css"><script type="text/javascript" src="includes/general.js"></script><!-- AJAX Attribute Manager --><?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?><!-- AJAX Attribute Manager end --></head><!-- AJAX Attribute Manager --><body onload="goOnLoad();"><!-- AJAX Attribute Manager end --><?php require(DIR_WS_INCLUDES . 'header.php'); ?><?php if (tep_session_is_registered('admin')) { include(DIR_WS_INCLUDES . 'column_left.php'); } else {?><style>#contentText { margin-left: 0;}</style><?php }?><div id="contentText"> Please give me another hint Joli. Regards, John Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.