Page 1 of 1
[Solved]index.php redirects to /admin/login.php
Posted: Sat Mar 21, 2009 7:40 pm
by mhj-52
I can not get to my website unless I am logged in to the Admin console. If I aim my browser at index.php it gets redirected to the login screen for the Admin console. The site works fine from Admin but if I logoff of admin then the index.php does not work, instead sending me back to login to Admin again. I checked all of my module versions and updated any that weren't the latest. No help there, still acts as described above. Should I uninstall my modules one at a time to see if one of them is causing this or will I damage the database doing this? Hmm, if i uninstall a module then I will probably get errors when it can't find that module. I can't see anything in the index.php or config.php that would directly cause them to redirect to admin. Could this be a file and/or folder permissions issue? Two modules fighting with each other?
CMSMS - 1.5.3
PHP - 4.4.9
MySQL - 5.0.75
Apache- 2.2.11
Linux - 2.6.27-6_1
Shared Hosting -
www.hostmonster.com
Re: index.php redirects to /admin/login.php
Posted: Sat Mar 21, 2009 7:42 pm
by RonnyK
Do you have a rewrite on, or some setting in the template, that checks if a user is logged-in, (FEU + CC) and if not redirects?
Ronny
Re: index.php redirects to /admin/login.php
Posted: Sat Mar 21, 2009 7:45 pm
by mhj-52
I do have mod_rewrite set for pretty urls in the config.php. Should I try turning that off?
I do not have FEU installed.
Re: index.php redirects to /admin/login.php
Posted: Sat Mar 21, 2009 8:34 pm
by CWebguy
Have you set your site to only be viewable through logins? Like maybe through a plugin or something? Just my thoughts.
Re: index.php redirects to /admin/login.php
Posted: Sat Mar 21, 2009 11:33 pm
by mhj-52
nope
Re: index.php redirects to /admin/login.php
Posted: Sun Mar 22, 2009 2:49 am
by JeremyBASS
I'd check from the view that your admin folder may be set as the root... that is the way the server is acting as you described.. My2Cents
cheers
jeremyBass
Re: index.php redirects to /admin/login.php
Posted: Sun Mar 22, 2009 6:35 pm
by mhj-52
Found this thread that would seem to imply a Module version problem but I have the latest versions.
http://forum.cmsmadesimple.org/index.php/topic,10779.0.html
Can I uninstall modules one at a time to see if one of them is the culprit or will that just trigger other errors?
Re: index.php redirects to /admin/login.php
Posted: Mon Mar 23, 2009 12:13 am
by JeremyBASS
yes you could... if you have a list we may be able to point at the likly one to...
cheers
jeremyBass
Re: index.php redirects to /admin/login.php
Posted: Mon Mar 23, 2009 12:39 am
by mhj-52
Here is the list of modules from System Information. Notice that TinyMCE is a Beta and is also on the list twice. Any chance thats the one?
Installed Modules
CMSMailer 1.73.14
FileManager 0.4.5
MenuManager 1.5.3
ModuleManager 1.2.1
News 2.9.3
Printing 0.2.6
Search 1.5.3
TinyMCE 2.5.0beta1
CGExtensions 1.15.2
CompanyDirectory 1.1.7
Calendar 1.0
Album 0.9.3
Glossary 0.6.5
TinyMCE 2.5.0beta1
Re: index.php redirects to /admin/login.php
Posted: Mon Mar 23, 2009 2:35 am
by JeremyBASS
I'd try
Glossary 0.6.5
then
CompanyDirectory 1.1.7
then
Calendar 1.0
but my bet is it's
Glossary 0.6.5
************edit**************
I missed the TinyMCE 2.5.0beta1 part... yeah try that first... uninstall both and then install...
cheers
jeremyBass
Re: [Solved]index.php redirects to /admin/login.php
Posted: Mon Mar 23, 2009 3:47 pm
by mhj-52
It was the TinyMCE. I Uninstalled it and installed the previous version. It now works as it should. Before I moved this site to the server I upgraded CMSMS and all the Modules. I should have known better than to change so many things at once. When I saw the goofy double entry in System Info the alarm bells went off. Thanks everyone, I had it fixed shortly after my last post.
Not sure what caiboy's post meant. Maybe he has similar symptoms for a different reason?