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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
gretagrimm

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

Post 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!
Last edited by gretagrimm on Fri Mar 16, 2007 7:46 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

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

Post by Nullig »

Can you provide a link, so we can see what's going on?

Did you clear the cache after the move?

Nullig
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
gretagrimm

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

Post by gretagrimm »

A HUGE 'Thank You' to calguy1000!!!

A module was the culprit!

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

Return to “CMSMS Core”