Users are not added to joomdle

  • AmirReza
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 9 months ago #1 by AmirReza
Users are not added to joomdle was created by AmirReza
Hi,

We are using joomla 3.3 and moodle 2.7 integrating their databases using Joomdle R0.95. We were also using Jomsocial in our website. The back-end of Jomsocial was inaccessible and we got XML-RPC error saying username contains characters which are not supported. We had been getting this error for a long time and checked all users, usernames, emails and everything but nothing was even suspicious. Also, all Jomsocial and Kunena modules reduced the website speed by more thank 10 times! so we were forced to unpublish all of these modules. (however, when we disabled joomdle user hooks plugin, all of the speed problems were solved and the site comes up in seconds even with all JomSocial and Kunena modules)
I found a part in joomdle showing users who are "Not Joomdle Users". It was showing pages of users, most of them were Joomla users who were not in moodle database or i.e. joomdle could not add them to moodle. There were also manual added useres in moodle who were not able to be added to joomla such as admin, guest and joomdle connector.
I was suspicious to these users that made difficulties, so I deleted them all from Joomla database. (of course except manually added users in moodle) I uninstalled JomSocial from my website and set the registration handler as Joomla core in my website.
Yesterday I saw another user was added to "not joomdle users" list who was registerd with totally routine username, email, name and everything that joomdle could not add him to moodle database. He registered using core joomla registration page. (let me add there were two other users registered in the same day and they didn't have any problem)
Please guide me on this problem.

Thanks

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

More
11 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Users are not added to joomdle
There is a know problem with some Jomsocial modules and Joomdle.

The problem is that the Jomsocial modules are "saving" user info for all users shown in members module. For each one saved, joomdlehooks plugin is called, which calls to Moodle, making all very slow.

I don't know why Jomsocial saves user info when displaying the module, but we cannot make anything to solve that, as it is their code.


As for not added users: can you share the username not working? Maybe it has spaces, or other non-allowed chars in moodle username?

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

  • AmirReza
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #3 by AmirReza
Replied by AmirReza on topic Users are not added to joomdle
Hi dear Antonio

The username which is not added is "the red dante". It contains space, but there are hundreds of users in our site containing spaces in their usernames. I deleted previous list of not added users, but many of them didn't have any spaces or non-allowed chars in their username.
It has been years we are use moodle and many of our database contained usenames with space. I don't think this problem is caused by such reason.
On the other hand, I had uninstalled Jomsocial as mentioned. It is not only jomscoial that makes speed problem. when I press on users tab in joomdle and want to filter "not joomla users" there, I face with speed problem and it takes some minutes to load.

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

  • AmirReza
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #4 by AmirReza
Replied by AmirReza on topic Users are not added to joomdle
I just went to moodle options:
Administration > Site administration > Security > Site policies
There is an option there called: "Allow extended characters in usernames"
I checked it as yes
In this case, there would be possible to all students to add any character usernames, am I right?
I went to joomla and saw that the user I mentioned still cannot be added to moodle and I got this error again when trying to add him to moodle by joomdle:
XML-RPC Error (15058501): The given username contains invalid characters | ERRORCODE: invalidusername
Am I doing wrong in any thing I explained?
Thanks

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

More
11 years 8 months ago - 11 years 8 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Users are not added to joomdle
I thinks spaces are not allowed right now.
See comments in:
tracker.moodle.org/browse/MDL-42993

> It is not only jomscoial that makes speed problem. when I press on users tab in joomdle and want to filter "not joomla users" there, I face with speed problem and it takes some minutes to load.

That page needs to load many users, and that's why it is slow. It is a view that you should only use when setting up Joomdle, though, so it is not a big problem.
Last edit: 11 years 8 months ago by Antonio Durán.

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

  • AmirReza
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #6 by AmirReza
Replied by AmirReza on topic Users are not added to joomdle
yes, I know that moodle does not support "spaces" or some other characters in username by default. but there is an option in moodle that can be used to allow other characters in username. see the below link:
docs.moodle.org/27/en/Site_policies#Allo...racters_in_usernames
docs.moodle.org/27/en/Site_policies#Allo...racters_in_usernames
this is enabled in our moodle, but still we get the mentioned xml-rpc error and usernames containing "space" are not imported to moodle

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

More
11 years 8 months ago - 11 years 8 months ago #7 by Otávio Melo
Replied by Otávio Melo on topic Users are not added to joomdle
Try Components > Joomdle > Configuration > Users Profile and set Use Profiles Types: None
This should cause the user created in Joomla is created in Moodle
But I had a other problem when I left "None" instead of "JomSocial", so I put Additional data source: Jomsocial
And I'm waiting to see if the problem I had will appear again

Changes the file "components/com_community/libraries/user.php" with the file that is attached
This should resolve the errors and site speed

Edited for searching:
Jomsocial speed
Attachments:
Last edit: 11 years 8 months ago by Chris.

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

More
11 years 8 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Users are not added to joomdle
I know that a recent moodle upgrade removed spaces from extended chars list, so they are not allowed even when you enable that option.

I read some discussion about reverting that change, but I don't know when/if the will do it.
Here is the link about it:
tracker.moodle.org/browse/MDL-42993

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

More
11 years 8 months ago #9 by Iliya
Replied by Iliya on topic Users are not added to joomdle
Hi, Antonio!
Now I researching similar problem, and I see, that moodle forbid UPPER case letters in username, even you enable options with "allow other characters in username". (very old problem tracker.moodle.org/browse/MDL-9989 )
Do the joomdle set all username field to lower case when import it from joomla?

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

More
11 years 8 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Users are not added to joomdle
Yes, Joomdle sets username to lowercase, as it is what Joomdle does.

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