Topic-icon Getting 403 Error when logging in JFBC Connect

Support Specialist
14 years 2 months ago #21001 by alzander
Stephen,
Cache shouldn't be the issue, and we'll definitely help you get to the bottom of it in case cache is part of the issue. The main reason for disabling it though is that it removes a large variable from the equation and also, when enabled, can mask changes you make.. preventing us from seeing if the change actually helped. While testing, I recommend turning caching off, but then re-enabling it when you're done.

Looking at your user plugins, the Wordpress user plugin sticks out. Can you try disabling that and see if the flakiness clears up? If so, then can you try re-ordering the plugins so that the Wordpress plugin is after the JFBConnect one? It must have a higher number, not just visually be higher. Since they are all ordered 0, each will execute 'randomly' on login.. which could easily explain the flakiness.. if there is a conflict, depending on which plugin fires first (WP or FB), the problem may or may not happen.

If the WP after FB plugin doesn't help, you can always try it before, but I don't think that will be the solution (always worth trying though, just in case).

Keep me posted on what happens, and we'll keep throwing out ideas as necessary. Sorry for all the trouble!
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,
this is too wierd for words.
I disabled the user plugin as requested. Then, I tried it with 3 browsers (FF, IE, chrome). They all worked!! However safari did not. I got same mixed results with Safari--login with facebook on front page and "logged in" on community page.

i then disabled cache and tried with the 4 browsers again and all of them failed.
So, this is the second time i got a positive result after changing the environment but only temporarily. So, no clue.
I will keep the WP user plugin disabled and would you try and let me know if you are able to login.
Also, any other recommendations?
s.
The topic has been locked.
Support Specialist
14 years 2 months ago #21013 by alzander
Nope, same issue. Appears I'm not logged in until I reload the page.

I hate to just keep throwing ideas out there, but that's the best I have right now. If you'd like, send me a Private Message with a super admin account and I can investigate further. Until then, here's the next 3 ideas (all pretty simple):
1) Re-order the JFBCSystem plugin to the very top (first) position. It seems like something is redirecting the user before the login takes place. This has a very slim chance of making sure some of JFBConnect's stuff functions first before any redirects may happen.
2) Enable the "Automatically Log Facebook Users In" option in JFBConnect. See if that properly detects the new user on the first page load instead of the 2nd. Obviously, that shouldn't be necessary, but something weird is definitely happening.
3) Try a different template. I mentioned this above, but not sure you actually tried.. so mentioning it again.

Speaking of #1... do you have anything on your site meant to redirect users for any reason? Or possibly to change URLs or anything like that? Pretty clueless, but we'll figure it out.. we like the challenge.

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

None
Hi Alex,

Thanks again for your help, we appreciate it.

1. JFBCSystem plugin is already the first system plugin

2. I enabled automatically login with facebook and the following happens: to Steve. I personally have no issues logging in with Facebook

From Steve:

When I go to the Bayoubuzz I see the blue "log in with facebook" icon. Nothing happens. However, when i go to community, it automatically logs me in.
[9:35:07 PM] Bayoubuzz: Then i logged out and went to the front page and clicked on the icon
[9:35:30 PM] Bayoubuzz: i got the credentials page for Facebook. i was not automatically logged in
I went to an inner page and the same thing happened that occured on the front page
[9:36:12 PM] Bayoubuzz: i did this procedure with two different browsers

3. I already tried changing the template to a core joomla template Beez2 and he (Steve) had the same issues.

Steve disabled the WordPress User Plugin, however I do not believe that would be the issue as he was having problems before I installed the WordPress Component.

Thanks again Alex,

Bonnie
The topic has been locked.
Support Specialist
14 years 2 months ago #21040 by alzander
Bonnie,
Thanks for the access to the site. I meant to get on earlier today, but it had to wait until tonight. However, I think I made some good progress.

Looking through your system plugins, you have a lot. While that's not necessarily bad, it's always best to make sure that you only have enabled what you need. If there are some you don't think you're using anymore, you may want to try disabling them. In general, less enabled will speed up your site and lower the risk of conflicts in the future.

With that said, I initially noticed that you had the JFBC Kunena Profile plugin enabled. I couldn't find Kunena installed though. So, I disabled that. While JFBConnect should properly detect that Kunena isn't installed and simply skip trying to do the profile import into Kunena, it's possible that that was a cause of the 403 failures since the plugin was getting confused.

Next, going back to the "logged in but not really logged in" issue, I noticed that when I clicked the Login With Facebook button, the page reloaded almost instantly. Since Facebook has to be connected, information imported, and other stuff, it simply seemed too fast. So, I went through your system plugins for caching type plugins. I then disabled the "jotcache" plugin, and things seemed to work for me.

Now, Jotcache has some parameters for Browser Caching. I'd recommend simply disabling that setting, for now, if you want to try to enable the other features of the plugin. First though, test with it completely disabled before going back and (possibly) introducing more problems.

Either way, hope this all helps, but if you still run into issues, please let us know!

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

None
Alex,
Hi...
We had to enable cache because the site was plodding to a snail pace. In doing so, we went from 21 secs to open page to about 5 to 6.
And, yes, unfortuantely, the fb problem reverted. we get a false negative. We click on login to facebook and it refreshes but after completion, we get the same "login to facebook" icon at the top. However, when i go to the community category, it says we are logged in.
Perhaps it does not work on my site?
thanks,
s.
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21188 by mtk

fb_623501319 wrote: Alex,
Hi...
We had to enable cache because the site was plodding to a snail pace. In doing so, we went from 21 secs to open page to about 5 to 6.
And, yes, unfortuantely, the fb problem reverted. we get a false negative. We click on login to facebook and it refreshes but after completion, we get the same "login to facebook" icon at the top. However, when i go to the community category, it says we are logged in.
Perhaps it does not work on my site?
thanks,
s.

Hello Stephen,
are you using a full page cache (built-in Joomla plugin) or just the cache set in the global configuration?
if you use the page cache, could you tell us the order in which both the cache plugin and JFBC system plugin are set?

Mati
The topic has been locked.