Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Sign in with Facebook problem - The username is already in use.

  • basethic
  • basethic
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
8 years 11 months ago #273397 by basethic
Hello,

My site is:
Joomla 3.4.5
CB 2.0.12 Nightly Build
CB connect 7.0.0-beta.4

Facebook registration is working properly the first time I hit Sign up with Facebook. But when the user log out it is not possible to Sign in with Facebook. The system returns:
Error The username '' is already in use.
How can I fix this? I can't find the reason for this problem with joomla debug activated...

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273400 by krileon
Delete the test user, enable debug mode and maximum error reporting in Joomla global configuration, then retest to see if any errors are present. It links the Joomla and Facebook user by their Facebook ID, but if that failed to save properly the relationship could be lost.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • basethic
  • basethic
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
8 years 11 months ago #273406 by basethic
When a new registration is made I receive the following:
Notice: Undefined variable: a in /home/.../.../components/com_comprofiler/plugin/user/plug_joomdlehookscommuntybuilder/joomdlehookscb.php on line 52
When tried to login after the user is registered there is no notices but the error again:
The username is already in use.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273452 by krileon
Disable non-core CB plugins, including that one, except CB Connect and see if issue persists. Seams there's some sort of conflict present.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • basethic
  • basethic
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
8 years 11 months ago #273648 by basethic
Thank you for your response!

First I need a way to write all the usernames in the database in lowercase. Maybe this should be done with auto actions?
I am trying to sync my joomla site with my moodle site, but moodle supports only lowercase usernames. So if I set for example [profile_firstname].[profile_lastname] for the username format I get this error:
Sign up with Facebook failed. Error: Username must be lowercase

Second, the registration with facebook is fine but the problem with the facebook login still persist. I noticed that after the registration if I go to Community Builder-Tools and click the button "Synchronize Users" then I can login with the Facebook button. It seems that the profile is not synchronized after Facebook registration. Is there any solution for that?

Also when the user is logged in there is a notification for error: You are already linked to a Facebook account.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273679 by krileon

I am trying to sync my joomla site with my moodle site, but moodle supports only lowercase usernames. So if I set for example [profile_firstname].[profile_lastname] for the username format I get this error:
Sign up with Facebook failed. Error: Username must be lowercase

Don't think you'll be able to do that given the validation is done before registration. I recommend whatever you're using to synchronize with moodle have it lowercase the username instead.

Second, the registration with facebook is fine but the problem with the facebook login still persist. I noticed that after the registration if I go to Community Builder-Tools and click the button "Synchronize Users" then I can login with the Facebook button. It seems that the profile is not synchronized after Facebook registration. Is there any solution for that?

Sounds like you've users out of sync with CB that are trying to use CB Connect. Please ensure you are only using CB and CB Connect for registrations. If you're manually creating users ensue you're only using CB > User Management.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum