Page 1 of 1

[RESOLVED] New to CMSMS - index.php redirects to /admin/login.php

Posted: Thu Mar 15, 2007 3:11 am
by gretagrimm
Hello.

I am quite new to CMSMS and hope someone will be able to assist with an issue I can't seem to resolve.

I designed a site for a client in a directory called 'newsite'.  Everything worked perfectly.  Once the site was ready for launch, I moved all the files (ensuring to keep the same structure) to the root directory and deleted the old (newsite) directory.  I also updated the config.php file to reflect the correct file path (removed all instances of /newsite). 

When a visitor hits the site, they are redirected to the admin/login.php page instead of the index.php page.  I cannot understand why this would be happening.  The index.php file is located in the root directory and there is no index.html file to conflict with the index.php file.

Any assistance with this matter would be greatly appreciated.
Thanks in advance!

Re: New to CMSMS - index.php redirects to /admin/login.php

Posted: Fri Mar 16, 2007 1:25 am
by Nullig
Can you provide a link, so we can see what's going on?

Did you clear the cache after the move?

Nullig

Re: New to CMSMS - index.php redirects to /admin/login.php

Posted: Fri Mar 16, 2007 1:55 am
by calguy1000
I had this problem before, and traced it down to the auto upgrade functionality of CMS Made Simple.  and modules that do permissions check in the upgrade routines.

The problem is that the index.php is detecting that one (or more) modules need to be upgraded, and can also allow auto upgrading.  However, the upgrade routines of this/these modules do a permissions check to see if the user is authorized to upgrade modules.  The permissions check redirects to the admin/login.php to allow you to login.

I suggest you login as admin to the backend, and go to Extensions >> Modules, and see if any modules need upgrading, and upgrade them manually (it may happen automatically when you login as admin).

After that, the problem should go away.

Re: New to CMSMS - index.php redirects to /admin/login.php

Posted: Fri Mar 16, 2007 7:45 pm
by gretagrimm
A HUGE 'Thank You' to calguy1000!!!

A module was the culprit!

Thanks so much for your assistance!  You saved my weekend!