Loading...
 
Features / Usability

Features / Usability


tiki-register.php redirect loop if logged in

posts: 2695 United States

If I am logged in to my web site and visit tiki-register.php, I get a browser error Redirect loop. Unable to load page.

If I am not logged in, It loads just fine.

Is there a setting somewhere causing me this problem?

I would like to have a page called Signup with the Module new user (which shows module module register...
Same problem here...
Works fine if not logged in.
If logged in I get redirect loop...

http://jabi.com/Signup

edit: additional info
This occurs when I'm using tiki-register.php as my homepage.
or Singup with Module New User as my homepage.

Accessing the pages directly redirects me to HomePage, so there is my problem.
I think maybe I will have to look at tiki-register.php script...

posts: 1563 Germany

Hello Dave,

I did register to your site right now and tested. I cannot reproduce the described issue as simple registered user.
You might want to register a new user yourself and check, if the issue is connected to your admin account.

At this point I would rather guess a configuration issue than a bug. Anyway from distance I cannot say anything more, as I have no access to the configs.

Regards,
Torsten

posts: 2695 United States

Thanks for trying it out.

Yes, I changed the homepage from Signup page back to homepage.
If you hit http://jabi.com/Signup not logged in you will see it.
If you are logged in, it takes you to homepage.
That "feature" is what caused my loop condition if I had signup or tiki-register.php set as my homepage.

I may be able to change the redirect from tiki-register from homepage to another page and solve my problem.

Perhaps that could be a feature request?
If logged in and hit http://yourdomain.com/ with nothing else (which normally takes you to HomePage or alternate HomePage set in site navigation options), you go to LoggedIn page.
If not logged in you go to NotLoggedIn page, which has both login and registration forms...

posts: 3665 United States

Why not simply have a check on your home page? You can use the GROUP plugin to check for logged in status. Something like this should work:

Copy to clipboard
{GROUP(groups="Registered")} your regular home page content {ELSE} {redirect page="signup page"} {GROUP}



Please see the docs for full details.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

posts: 2695 United States

Thanks Rick! That worked.

I used
Group Anonymous
Show some info and the signup form
Else
Show the regular homepage
Group

Thanks again


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting