Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Couldnt access admin dashboard - too many redirects error

Couldnt access admin dashboard - too many redirects error

Views: 3,399

Results 1 to 18 of 18
18 Apr 2022, 6:21 AM
#1
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Couldnt access admin dashboard - too many redirects error

The url is eshubham.com running 1.53 version of Zencart and PHP 7.4.

Around June 2020, we migrated from older version to 1.53 and was working fine till recently. I didnt logged into admin dashboard for last three months. Just last week I tried to log in so I can put the website under maintenance to upgrade the zencart but it showing too many redirect error. I contacted my hosting support team, they are certain that .htaccess has no issue and contact zencart support for further assistance. I am new here. Please guide what should I do for troubleshooting.

18 Apr 2022, 4:51 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: Couldnt access admin dashboard - too many redirects error

Time to upgrade was last year:ohmy: But, seriously, you need to get to 1.5.7d for security and payment updates.

1.5.3 was designed for PHP 5.6 as a maximum AND 1.5.3 will be eight years old in July. In computer years, that's like 203:P

19 Apr 2022, 11:02 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Couldnt access admin dashboard - too many redirects error

Seeing as the point of the exercise is to place our force the store into maintenance mode to support performing the upgrade, it send like in part on the right path. As for the to many redirects, I'm wondering how much the admin/includes/configure.php file plays into it. The site supports https; however, doesn't seem to force it. I'm wondering if there is an odd mixture of domain paths in the admin file. Of course I'm also concerned that the file wasn't properly updated and contains the real path to your admin directory instead of the auto determined one as designed. So when posting the contents please be sure to obscure such confidential info.

21 Apr 2022, 10:37 AM
#4
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

I was planning to upgrade but forgot last year due to to other projects. Is it possible to upgrade despite the issue or better to do it once the issue gets cleared?

21 Apr 2022, 10:40 AM
#5
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

mc12345678:

Seeing as the point of the exercise is to place our force the store into maintenance mode to support performing the upgrade, it send like in part on the right path. As for the to many redirects, I'm wondering how much the admin/includes/configure.php file plays into it. The site supports https; however, doesn't seem to force it. I'm wondering if there is an odd mixture of domain paths in the admin file. Of course I'm also concerned that the file wasn't properly updated and contains the real path to your admin directory instead of the auto determined one as designed. So when posting the contents please be sure to obscure such confidential info.

Before I got into this project, it was not upgraded for almost three to four years. I had migrated it to new hosting server and upgraded it to the version present the website is in. Afterwards I failed to notice the version updates and I have no idea about the contents of the configure.php except for the parts which I had to change once the migration is done. What should be done now, I am quite confused.

21 Apr 2022, 11:15 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Couldnt access admin dashboard - too many redirects error

Arvinrags:

Before I got into this project, it was not upgraded for almost three to four years. I had migrated it to new hosting server and upgraded it to the version present the website is in. Afterwards I failed to notice the version updates and I have no idea about the contents of the configure.php except for the parts which I had to change once the migration is done. What should be done now, I am quite confused.

You always have options. The redirects are a "file" issue mostly. My previous (indirect) suggestion was to post the contents of your admin/includes/configure.php file, marking out sensitive information.

What you can do though is place the store in maintenance mode via phpmyadmin, until the update is complete. Technically that should really only be for a few minutes if sequenced properly.. To do it that way would entail developing the upgrade outside of the live site files and with a different database. I.e. as recommended for performing an update. If you have already done that development and really are ready to apply all of those changes to your live site, then the brief period that a user may not be able to properly access the site would be rectified rather quickly because the database upgrade process through zc_install forces the site into maintenance mode.

This last part though would suggest that you should apply a test version of your site somewhere on your server to validate that you won't end up with the same issue as currently experiencing..

6 May 2022, 5:15 AM
#7
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

mc12345678:

You always have options. The redirects are a "file" issue mostly. My previous (indirect) suggestion was to post the contents of your admin/includes/configure.php file, marking out sensitive information.

What you can do though is place the store in maintenance mode via phpmyadmin, until the update is complete. Technically that should really only be for a few minutes if sequenced properly.. To do it that way would entail developing the upgrade outside of the live site files and with a different database. I.e. as recommended for performing an update. If you have already done that development and really are ready to apply all of those changes to your live site, then the brief period that a user may not be able to properly access the site would be rectified rather quickly because the database upgrade process through zc_install forces the site into maintenance mode.

This last part though would suggest that you should apply a test version of your site somewhere on your server to validate that you won't end up with the same issue as currently experiencing..

Thank you for the information. I took off for vacation, just today returned to the office. I will get the config file by masking the sensitive information here..If we couldnt ascertain the issue through config file I will do the other suggestion you have given. By the way, is there any way to switch off the mails sent through contact us form? Many spam mails are coming through the form

6 May 2022, 4:35 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: Couldnt access admin dashboard - too many redirects error

Arvinrags:

By the way, is there any way to switch off the mails sent through contact us form? Many spam mails are coming through the form
Get Access Blocker by lat9 and sign up for the free service.

7 May 2022, 2:49 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Couldnt access admin dashboard - too many redirects error

Arvinrags:

Thank you for the information. I took off for vacation, just today returned to the office. I will get the config file by masking the sensitive information here..If we couldnt ascertain the issue through config file I will do the other suggestion you have given. By the way, is there any way to switch off the mails sent through contact us form? Many spam mails are coming through the form

How certain are you that the email is actually generated by someone using the form instead of just grabbing an email address off of the page and using it to create an email? Is it or are they formatted the same way as when you send yourself a test message? If you are logging emails generated by your site, are those emails present?

7 May 2022, 10:52 AM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: Couldnt access admin dashboard - too many redirects error

@Arvinrags - it's really best to stick to one question per thread - get your admin issues fixed, then create a new thread for your email issues.

10 May 2022, 6:07 AM
#11
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

mc12345678:

How certain are you that the email is actually generated by someone using the form instead of just grabbing an email address off of the page and using it to create an email? Is it or are they formatted the same way as when you send yourself a test message? If you are logging emails generated by your site, are those emails present?

We have not mentioned that particular email address (its actually different domain based email) to which the form sends the email.

10 May 2022, 6:07 AM
#12
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

swguy:

@Arvinrags - it's really best to stick to one question per thread - get your admin issues fixed, then create a new thread for your email issues.

Thank you. Will create new thread afterwards.

10 May 2022, 6:10 AM
#13
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

mc12345678:

You always have options. The redirects are a "file" issue mostly. My previous (indirect) suggestion was to post the contents of your admin/includes/configure.php file, marking out sensitive information.

What you can do though is place the store in maintenance mode via phpmyadmin, until the update is complete. Technically that should really only be for a few minutes if sequenced properly.. To do it that way would entail developing the upgrade outside of the live site files and with a different database. I.e. as recommended for performing an update. If you have already done that development and really are ready to apply all of those changes to your live site, then the brief period that a user may not be able to properly access the site would be rectified rather quickly because the database upgrade process through zc_install forces the site into maintenance mode.

This last part though would suggest that you should apply a test version of your site somewhere on your server to validate that you won't end up with the same issue as currently experiencing..

Below is the content of configure.php. I have removed the data pertaining to file directories and sensitive information. Hope this is ok or any other option there to send the information for purview.

define('HTTP_SERVER', 'https://eshubham.com');
define('HTTPS_SERVER', 'https://eshubham.com');
define('HTTP_CATALOG_SERVER', 'https://eshubham.com');
define('HTTPS_CATALOG_SERVER', 'https://eshubham.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');

define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/');

10 May 2022, 11:14 PM
#14
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Couldnt access admin dashboard - too many redirects error

Are there any redirects present in the site's root/.htaccess file?

11 May 2022, 10:46 AM
#15
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

lat9:

Are there any redirects present in the site's root/.htaccess file?

No. There are no redirects in the root .htaccess file

12 May 2022, 5:42 PM
#16
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

Well, as was pointed out earlier the problem is most likely

The url is eshubham.com running 1.53 version of Zencart and PHP 7.4
Downgrade your PHP version on your hosting account to PHP5.6 if possible via the MultiPHP Manager in cPanel and see if the problem goes away with the redirect issue.
additionally, you can manually place the site in down for maintenance via phpmyadmin in cPanel by searching for "DOWN_FOR_MAINTENANCE" in the configuration table and setting the value to "true"

16 May 2022, 9:29 AM
#17
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

barco57:

Well, as was pointed out earlier the problem is most likely

Downgrade your PHP version on your hosting account to PHP5.6 if possible via the MultiPHP Manager in cPanel and see if the problem goes away with the redirect issue.
additionally, you can manually place the site in down for maintenance via phpmyadmin in cPanel by searching for "DOWN_FOR_MAINTENANCE" in the configuration table and setting the value to "true"

Tried downgrading to 5.6. Its still same, its showing same error. Would upgrading zencart solve the issue?

18 May 2022, 9:46 AM
#18
arvinrags avatar

arvinrags

New Zenner

Join Date:
Apr 2022
Location:
India
Posts:
12
Plugin Contributions:
0

Re: Couldnt access admin dashboard - too many redirects error

barco57:

Well, as was pointed out earlier the problem is most likely

Downgrade your PHP version on your hosting account to PHP5.6 if possible via the MultiPHP Manager in cPanel and see if the problem goes away with the redirect issue.
additionally, you can manually place the site in down for maintenance via phpmyadmin in cPanel by searching for "DOWN_FOR_MAINTENANCE" in the configuration table and setting the value to "true"

Also I Couldnt find the Down for maintenance option in the phpmyadmin tables...