Topic-icon CB Connect registration problems

Active Subscriptions:

None
11 years 6 months ago #49080 by evil
Scenario: Joomla 3.03+CB 2.03+JFBC 6

When users register using JFBC their data are added to joomla users table but not to CB users table.
Any tips?
The topic has been locked.
Support Specialist
11 years 6 months ago #49082 by mel
What version of JFBConnect 6 are you using? Please make sure you are using 6.2.3. Any previous versions have an issue with the latest builds of CB for creating and enabling users properly.

Also, I'm sure you have but please make sure any appropriate Community Builder user and system plugins are enabled.

Another suggestion is to look at the fields you have marked as Required in your Community Builder profile. It's possible if something is marked as required and the user does not have any profile data mapped to it from the social network AND don't fill it out on registration, then the user will not be created properly in CB. Your options in this case would be 1) set the fields as optional in CB or 2) use JFBConnect > Profiles > CB tab settings for Show Required Fields and Show Imported Fields. For example, by setting Show Required Fields to Yes but Show Imported Fields to No, the user would see any fields that do not have any values imported from the social network.

I think these tips should steer you in the right direction, but please let us know if you continue to have the issue after trying them.

Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago - 11 years 6 months ago #49084 by evil
I checked all possible, on JBFC Facebook registration I get a 502: BAD URL
mysite.ext/index.php?option=com_jfbconne...b8bca428bc1b3dae03=1

as result the user is created on joomla but not on CB.
You can try yourself using the left side button on the home page of eventinapoli.com
Last edit: 11 years 6 months ago by evil.
The topic has been locked.
Support Specialist
11 years 6 months ago #49086 by mel
It looks like there is some server setting or firewall that is blocking that URL. You will need to look at your server logs or talk to your server admin to resolve this. Alex said that you've gotten JFBConnect registration and authentication working on other sites before, so is there something that you've recently upgraded on your server or site that could be related?
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #49093 by evil
Yes, we have just added CB, before now we used only Joomla registration
I attached the error log for nginx, please remove the file once readed
The topic has been locked.
Support Specialist
11 years 6 months ago #49097 by alzander
There really isn't any information in that log that describes what's happening. There are a lot of error messages that look like:

upstream prematurely closed connection while reading response header from upstream, client:


However, those messages are for our authentication page and lots of other pages, like the CB registration page, the private area on the site and others. If that error is what's causing the problem, it's causing problems in other areas of the site as well and should be investigated further. From that log, it seems like there is some sort of server configuration issue that's the problem, not something with JFBConnect specifically.

I hope that helps investigate further, but if you need anything else, just let me know.

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

None
11 years 6 months ago - 11 years 6 months ago #49099 by evil
If you try to register clicking in top right menu "Area privata" and use the Facebook Registration Button provided by CB Connect, all goes fine with no problem at all, so looks like that only JFBConnect Registration is not working.

I noticed in the JFBC Configuration -> general tab, the field "Registration Component" shows only two choise "JFBC Compononet" and "Joomla", is it normal?

Could be this info useful to you?
Last edit: 11 years 6 months ago by evil.
The topic has been locked.
Support Specialist
11 years 6 months ago #49107 by alzander
That is normal. That option lets the user go through an alternate registration flow when Automatic Registration is disabled. Currently, we don't support sending the user through the CB registration process as it's too difficult to work with. When registering, the user can be sent to the standard Joomla registration page or to the JFBConnect Login / Register page if they aren't automatically created an account.

As for the registration, as noted in the error log you provided, there were errors coming from various different pages, not just the JFBConnect registration flow. I'm not sure what's causing those, but that's where I'd investigate first. Unless there's specific error messages that *only* happen on our registration flow, it seems like there's something more underlying that's causing the problem.

Beyond that, I just visited your site and wasn't able to find the JFBConnect registration options. If you tell me where they are, I can try registering that way to see what happens.

Thanks,
Alex
The topic has been locked.
Support Specialist
11 years 6 months ago #49109 by alzander
Actually, I just found the login on the right (Melissa pointed it out), sorry about that.

I just logged in with Facebook and it worked without a problem. My guess is that's because I already had an account. On a separate computer, Melissa wasn't able to login.

However, after I logged in, when I go to the "Private Area", I'm greeted with the 502 Bad Gateway error:
File Attachment:


With that, I'm even more confident this isn't a JFBConnect-specific issue, but an underlying server problem. Please investigate what's causing the "upstream prematurely closed connection while reading response header from upstream, client:" errors in your logs and I think you'll be able to find the issue.

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

None
11 years 6 months ago #49142 by evil
I explain you the problem.

For some reasons the JFBC components is not able to pass the registration data to CB, so when the user is redirect to his CB profile page get a 502 Bad gateway error.
After registration if I sinconyze the table (CB tools syncronize Table) the user is correctly registered in CB and doesn't get any error.
Furthermore if after a registration the user click on the CB FB link button all goes fine and the user is added to the CB table.

If the user register using the CB Facbook button, all goes fine.

Evidently the problem is in the communication between the JFBC registrtion routine and the CB ones.
Maybe a mysql error due to data inconsistency while formatting some imported FB field? I don't know but could be.
The topic has been locked.