Admin interface redirect loop

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Admin interface redirect loop

Post by Dr.CSS »

You might try going into your user preferences, once you get logged in, and set the homepage to none...
drmikecrowe
Forum Members
Forum Members
Posts: 23
Joined: Sun Sep 20, 2009 1:22 pm

Re: Admin interface redirect loop

Post by drmikecrowe »

Homepage is already none. That's not the issue.

I go back to my earlier post: This SQL looks like something isn't right:

Code: Select all

SELECT ug.user_id FROM cms_user_groups ug
                     WHERE ug.user_id = 0 AND ug.group_id = 1 LIMIT  1
If user_id==0, why are we going forward as if there is a user?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Admin interface redirect loop

Post by Dr.CSS »

Even if it is set to none when you look in user preferences it may still mess with you, I have direct experience with this, home page was set to none, every time I logged in it sent me back to the login page where I hit submit again and again and it finally let me in, I went to user prefs. set it to none hit submit and never had a problem logging in after that...
drmikecrowe
Forum Members
Forum Members
Posts: 23
Joined: Sun Sep 20, 2009 1:22 pm

Re: Admin interface redirect loop

Post by drmikecrowe »

OK, I've found what solves this for me. In /lib/page.functions.php, line ~79, I added this:

code removed by moderator.

The issue I found was it kept redirecting to login.php. There's probably a more elegant solution, but this got me going.
Post Reply

Return to “CMSMS Core”