Topic-icon Creation of two users

Active Subscriptions:

None
13 years 8 months ago #26754 by alefel
Creation of two users was created by alefel
Some users registerin through JFBConnect, get two accounts. I cannot reproduce the issue myself. When I go through the registration, the user gets generated correctly. Also, some users did get generated correctly.

So, I was wondering if you've seen this before. Basically, it generates two users in Joomla, CB, Kunena and in the JFBConnect user map. In CB, the users show as not confirmed or approved. Again, only when the duplication happens. I do have it working for a regular scenario.
This is the address: www.aquipalmeiras.com

Any idea? I could attach screenshots if it would help.

Thanks,
Alex
The topic has been locked.
Support Specialist
13 years 8 months ago #26758 by alzander
Replied by alzander on topic Creation of two users
I've never heard of duplicate accounts being created. The easiest way to help us narrow down the problem is letting us know what happens in the User Map area of JFBConnect. For both of the Joomla accounts, is the Facebook ID the same? If so, that's really strange and definitely not something normal or ever seen before, but we'd absolutely like to look into it more to fix it on your site and prevent it from happening to you or others again.

If the FB Ids are different, that doesn't mean it's not an issue, it just helps narrow down some possibilities, but pretty dumbfounded as to what could be doing that.

Please check if you have any other Facebook integration extensions installed, specifically for authentication, like the CB Facebook connect one. Doubt that's it, but easy to ask :D

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

None
13 years 8 months ago #26766 by alefel
Replied by alefel on topic Creation of two users
Hi Alex,

It is the same ID. Even the thumbnail picture that shows in the user map page in admin are the same.
No, I don't have any other Facebook integration

Could it be because they did not approve the permissions requested? Don't forget the users show as non-confirmed in CB.

Thanks,
Alex
The topic has been locked.
Support Specialist
13 years 8 months ago #26791 by alzander
Replied by alzander on topic Creation of two users
That's really strange then, and not something we've ever heard of. Looking at your site, here are some observations:
* You look to be using CloudFlare for caching/optimization
* A lot of your content is loaded from direct.aquipalmeiras.com
* On aquipalmeiras.com/, there's the following Javascript error:
XMLHttpRequest cannot load http://direct.aquipalmeiras.com/cdn-cgi/pe/bag?r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fmedia%2Fsystem%2Fjs%2Fmootools-core.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fmedia%2Fsystem%2Fjs%2Fcore.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fmedia%2Fsystem%2Fjs%2Fmootools-more.js&r[]=http%3A%2F%2Fdirect.aquipalmeiras.com%3A80%2Fcomponents%2Fcom_kunena%2Fjs%2Fmediaboxadvanced%2Fjs%2FmediaboxAdv.js&r[]=http%3A%2F%2Fdirect.aquipalmeiras.com%3A80%2Fcomponents%2Fcom_kunena%2Ftemplate%2Fdefault%2Fjs%2Fdefault-min.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fmedia%2Fsystem%2Fjs%2Fmodal.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fcomponents%2Fcom_jfbconnect%2Fincludes%2Fjfbconnect.js%3Fv%3D424&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Ftemplates%2Fbeez_20%2Fjavascript%2Fmd_stylechanger.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Ftemplates%2Fbeez_20%2Fjavascript%2Fhide.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fcomponents%2Fcom_jvotesystem%2Fassets%2Fjs%2Fjquery-1.7.1.min.noconflict.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fcomponents%2Fcom_jvotesystem%2Fassets%2Fjs%2FdomWrite.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fcomponents%2Fcom_jvotesystem%2Fassets%2Fjs%2Fjvotesystem.min.js&r[]=http%3A%2F%2Faquipalmeiras.com%3A80%2Fcomponents%2Fcom_jvotesystem%2Ftemplates%2Fassets%2Fjs%2Fmodule%2Fdefault.js&r[]=http%3A%2F%2Fdirect.aquipalmeiras.com%3A80%2Fcomponents%2Fcom_comprofiler%2Fjs%2Fcurvycorners.min.js%3Fv%3Dd8c52f4ff80c1b48&r[]=http%3A%2F%2Fdirect.aquipalmeiras.com%3A80%2Fcomponents%2Fcom_comprofiler%2Fjs%2Fjquery-1.5.2%2Fjquery-1.5.2.min.js%3Fv%3Dd8c52f4ff80c1b48&r[]=http%3A%2F%2Fpagead2.googlesyndication.com%3A80%2Fpagead%2Fshow_ads.js. Origin http://aquipalmeiras.com is not allowed by Access-Control-Allow-Origin.
If that's gibberish, it's basically that your site is trying to load content from 'another' site, the direct.aquipalmeiras.com/ one, and the server has stated that's a violation for security purposes. That JS error is causing the Facebook Javascript library not to load, which is then causing the Login with Facebook button to not show on the right (for me at least).
* The Login w/ FB button works fine on direct.aquipalmeiras.com/
* If I login to direct.aquipalmeiras.com/ and then go back to aquipalmeiras.com/, it does *not* show me logged in there. That means there's some session issues with Joomla not detecting all the domains you're really running from.

So, with all that said, my best 'guess' is that there's some conflict between the 'direct.aquipalmeiras.com/ site and the main root site and possibly some problems with CloudFlare as well. If somehow both the 'main' and 'direct' site are being called to register the user at the exact same moment, it's possible JFBConnect, Joomla, and CB are getting confused, think it's an error, or something similar.

I'm not sure what the direct. subdomain is about, but here's what I would recommend if possible:
* Temporarily (maybe a day or so) disable CloudFlare and see if that changes anything
* Have everything run from one site, if possible. Anyone that goes to www, non-www, or direct. should be redirected to one of the 3. Each site shouldn't look independent. That's good for SEO purposes as well.
* If not possible, update your server configuration's Access-Control-Allow-Origin policy allowing any of sites to run code from any of the 'other' domains. That will fix the long AJAX/Javascript error above.

If none of that works, definitely let us know. This is not an issue we've heard of from any other site in over 4 years, so it's something unique to your site. Will do anything we can to help diagnose and fix, but may take more investigation. The steps above (whatever you can do) are the first steps to narrowing things down.

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

None
13 years 8 months ago #26793 by alefel
Replied by alefel on topic Creation of two users
Oh.. I did not realize I had content linked to other domains. Let me fix that first and see what happens.
The topic has been locked.
Support Specialist
13 years 8 months ago #26805 by alzander
Replied by alzander on topic Creation of two users
Definitely keep us posted. Would like to help get to the bottom of this as it's definitely an obscure, but really bad, problem to have.

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

None
13 years 8 months ago #26807 by alefel
Replied by alefel on topic Creation of two users
Ok. I fixed the wrong domain issue.
The problem is that since I couldn't reproduce, I can't retest. I'll just have to wait and see if it happens again. I would let you know then.

Now, is there a problem in keeping these users in the DB? Meaning, should I delete them?
The topic has been locked.
Support Specialist
13 years 8 months ago #26810 by alzander
Replied by alzander on topic Creation of two users
Definitely keep us posted on what happens.

As for what to do with the duplicate users.. just to clarify, it sounds like you have 2 users that were created in both Joomla and Community Builder:
* 1 user which has their CB profile information imported and correct
* 1 user in which the CB account is incorrect
Both 'users' have a row in the JFBConnect UserMap area. The FB ID for both is the same, but the Joomla User ID is different.

If that is correct, I would definitely recommend deleting the 'bad' user that was created (the CB info is incorrect). That should delete the JFBConnect User Map row for *just* the bad user, but verify that somehow they both weren't deleted.

Deleting the 'bad' users will ensure that JFBConnect will log the correct Joomla/CB user in when they login through Facebook.

Hope that helps, and definitely let us know how things go!

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

None
13 years 8 months ago #26872 by alefel
Replied by alefel on topic Creation of two users
Ok. The duplicate user issue is still happening, even after fixing the JS issue.
Any other idea? I didn't disable CloudFlare yet since I thought the JS thing would do it. Is that the next step to debug here?
Or do you have any better idea?

Thanks,
Alex
The topic has been locked.
Support Specialist
13 years 8 months ago #26877 by alzander
Replied by alzander on topic Creation of two users
I'm not sure why Cloudflare would be the problem, but it is the next best idea we have. We've never, in over 3 years, heard of a duplicate user issue like you're mentioning, so this is new to us.

If you know any of the details about the user accounts that are created twice, that would help, but it sounds random. By details, I mean if there's any similarity in how the issue is happening (same email domain, it happens around the same time every day, happens in blocks for an hour and then doesn't happen again for a while, etc). Anything like that can help us come up with other ideas.

Unfortunately though, until we narrow it down to an extension, server configuration, or something else by taking broad swipes at problems, it's difficult to even fathom a guess at the cause. Right now, my best idea is that some sort of optimization or caching is causing our registration code to get called twice. We actually have checks to prevent that from happening, but depending on how things are being cached, our checks could be getting bypassed.

If that's not it, we'll have to try other changes, but it's really a matter of finding the magic bullet of what's causing the issue.. then narrowing in on options with that area of configuration to figure out what specifically is causing the problem.

One other thing I thought of that's easy to try is disabling the Automatically login Facebook Users setting. That shouldn't cause problems, but again, we're a little in the dark.

Finally, if you can, please do the following:
* Create us a super admin account for your site and Private Message us the details. I'll gladly look in the Joomla admin area to see if anything looks out of the ordinary to me there. You can PM me by clicking the arrow under my name (<----) and hitting the mail icon.
* Delete my user on your site (Alex Sourcecoast). I can then try to re-register and see if that helps.

Thanks,
Alex
The topic has been locked.