Page 1 of 1

cmsms-2.1.2-install.php gets stuck in infinite redirect loop

Posted: Mon Apr 04, 2016 12:15 am
by Daniel15
I'm trying to update a super-old CMSMS site from 1.9.4 to 2.1.2. I've managed to upgrade it to 1.12.1 with no issues. However, when I try to run the CMSMS 2.1.2 installer, it gets stuck in a redirect loop and keeps appending "/index.php" to the URL. It gets to something like "cmsms-2.1.2-install.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/" before the browser complains that the site redirected me too many times.

nginx 1.9.10, PHP 5.6.18 (pending upgrade to PHP 7 once I confirm CMSMS 2.1.2 works with it).

Re: cmsms-2.1.2-install.php gets stuck in infinite redirect

Posted: Mon Apr 04, 2016 12:36 am
by calguy1000
for nginx you probably want to use the expanded installer.

Re: cmsms-2.1.2-install.php gets stuck in infinite redirect

Posted: Mon Apr 04, 2016 12:37 am
by Daniel15
Thanks, the expanded installer worked! At first I accidentally extracted the expanded installer to the existing CMSMS directory, which broke everything. Once I reverted to my backup and remembered to put the expanded installer in a separate directory, everything worked fine.

If the PHAR version doesn't support nginx properly, maybe it's worth showing a warning before getting stuck in the redirect loop (ie. detect if the environment is unsupported).