× Joomla Facebook Connect support forum

Topic-icon jfbc login causing redirect loop.

Active Subscriptions:

None
14 years 6 months ago #15422 by tanoah
this only just started happening, and i dont know why. For some reason, when i attempt to login using FB, i get following message: The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete. when i clear cookies, i am able to get the website up again, but every time i try signing in, this is what happens.
The topic has been locked.
Support Specialist
14 years 6 months ago #15425 by alzander
There's a few things to try to at least hopefully narrow down the cause:
1) Turn off gzip compression in the Global Config area and turn Error Reporting to Maximum. Test and see if you get an error you can send to us which may help diagnose things.
2) Try disabling any profile plugins you have enabled, and see if that fixes the problem. If so, let us know what you disabled.
3) Make sure you don't have any Joomla User or System plugins enabled which are meant to redirect the user after they log in.

Hope that helps get you started, but if not, let us know, and we'll figure out other things to test.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15467 by tanoah
Joomla user was enabled. I don’t have any profile plugins or any other social extensions attached.
Here is my problem: I need both facebook login available, and ability to register (not login) on each page, as I have made my content only available to registered users. I knew athat this problem seemed to be tied to a registration mod, but I disabled redirect.
I purchased ajaxregister, but did not realize that it was a component , not a mod, and I could not get it as a mod on the side of the home page.

Do you have any suggestions as to how I may effectively place both the jfbc login and a registration in the same place without this redirect problem?
Also, now that i've disabled user, i cant login to my backend to post articles. HELP!!!
The topic has been locked.
Support Specialist
14 years 6 months ago #15474 by alzander
Tanoah,
To re-enable the Joomla User and Authentication plugins, you'll need to run the following queries on your database:
UPDATE jos_plugins SET published = 1 WHERE element = 'joomla' AND folder = 'user';
UPDATE jos_plugins SET published = 1 WHERE element = 'joomla' AND folder = 'authentication';
Generally, those plugins should never be disabled for the obvious reasons you unfortunately just ran into.

I'm not sure what you mean by ability to register on each page. The JFBLogin module has an easy link to the registration page of Joomla. From a quick search of Joomla, I found the following module, which shows the registration form. I've never used it, so can't vouch for it. It may get you started though:
extensions.joomla.org/extensions/access-...authentication/15380

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15480 by tanoah
THANK YOU TANK YOU THANK YOU for that database query. that was a life saver.
I acutally had was using this mod that you pointed out, but the problem was that it would not log people in once they registered. so i added another plugin (autologin after register) which i think caused my problems.

Registration is new on my site, and people are having a difficult time trying to figure out how to do it. So i had the jfbc login mod on the right, and just under it, a form to use for registration. everything was ok except that once you filled out the form, it did not automatically log a person in and give them access, and so people were confused about what to do. I was really just trying to simplify this entire registration/login process, but i'm seeing that one thing messes up the other.

I know there is a way with your plugin to register too, but i didnt want people to have to do both. I thought that was confusing too.
My next attempt is to try to take the AJAX register component (which does not cause a refresh of the page) and create a module. Is there any reason from what you know that this would cause any problems with jfbc?
The topic has been locked.
Support Specialist
14 years 6 months ago #15481 by alzander
With JFBConnect, you can enable an auto registration (like we have on this site) by setting the "New User Creation" to "Facebook User Only". That will automatically pick the user's name and just log them right in.. no forms.

As for auto-registering new users that go through the 'normal' Joomla process, generally, I wouldn't recommend it. You'll get a ton of spam users eventually, and once it's found that your site is easy to register on (and heaven forbid, actually post any content too), you'll get marked as a spammer's paradise. Once this happens, even if you rein things in so that it's not easy to register, you're site will already be on some lists for spammers, and it will continue for a long, long time.

That's one of the advantages with JFBConnect, and why approval isn't necessarily required. It's tied to a Facebook account and you can get their 'real' email address. We've never heard of spammers using their FB accounts, so it's been much more safe/secure in general.

As for using the AJAX register component, no, it shouldn't cause problems. The only problems that arise are from plugins that redirect the user. That's simply because they fire in the middle of JFBConnect's registration process. If that happens, the user is redirected and the rest of our registration code doesn't execute.. which is bad.

Hope that all helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15482 by tanoah
I have JFBC configured for facebook only. Its just that some people either dont have fb or dont like to use their fb for logins. so i wanted to be able to provide an option.
You are right about the spam. i'd already gotten some in just a few short days.
I tried sticking the ajax register component into the mod, but it caused the same problems. you are right, of course, the problem is in the redirect. so now i'm going back to the regular login form with "instructions" to click the create a new account. Thankfully, when a user does this, it takes them to separate page with Ajax register, which overrides regular registration form, and has a captcha to prevent spammers.
Now, i can set ajaxregister to redirect on registration, and to automatically login. a person is only going to use one or the other. will the simple fact that ajaxregister is configured to automatically login, or to redirect cause any trouble with jfbc?
The topic has been locked.
Support Specialist
14 years 6 months ago #15495 by alzander
First off, I don't know the Ajaxregister component, so I can't be 100% certain on anything. However, simply having a different registration component for 'normal' Joomla users shouldn't interfere with JFBConnect's registration or login process at all as log as it doesn't try to redirect when we're doing our login process. Other than that, nothing should interfere in either direction.

JFBConnect definitely doesn't interfere with other registration/login extensions, so you shouldn't have any problems there either.

Hope that helps, but if you have problems, just let us know!
Alex
The topic has been locked.