Forums | Mahara Community

Support /
Mahoodle: Users unable to login to Mahara from Moodle

Dan Tina's profile picture
Posts: 20

05 December 2012, 0:34


We have Moodle 2.3 and Mahara 1.5 installed and we've set up a Mahoodle link between them using MNet (Moodle) and XMLRPC (Mahara).  It's been working fine up to now except we are finding some users are unable to log in directly into Mahara (we SSO in to Mahara from Moodle).

However, some users have been unable to SSO from Moodle recently getting the error: " A nonrecoverable error occured. This probably means you have encountered a bug in the system.".  The logs have the following:

"An exception was thrown of class InvalidArgumentException. , referer:[Tue Dec 04 11:09:03 2012] [error] [client] [WAR] 5b (lib/errors.php:464) THIS IS BAD and should be changed to something extending MaharaException,, referer:[Tue Dec 04 11:09:03 2012] [error] [client] [WAR] 5b (lib/errors.php:464) unless the exception is from a third party library., referer:[Tue Dec 04 11:09:03 2012] [error] [client] [WAR] 5b (lib/errors.php:464) Original trace follows, referer:[Tue Dec 04 11:09:03 2012] [error] [client] [WAR] 5b (lib/user.php:1923) user_create: remoteusername already exists: [username], referer:[Tue Dec 04 11:09:03 2012] [error] [client] Call stack (most recent first):, referer:[Tue Dec 04 11:09:03 2012] [error] [client]   * create_user(object(User), array(size 0), "mahara", object(AuthXmlrpc), "[username]") at /home/mahara/public_html/auth/xmlrpc/lib.php:218, referer:[Tue Dec 04 11:09:03 2012] [error] [client]   * AuthXmlrpc->request_user_authorise("ebbe43bd2d8735fa9996bda7382d2d4b1f0e36f5", "") at /home/mahara/public_html/auth/xmlrpc/land.php:94, referer:[Tue Dec 04 11:09:03 2012] [error] [client] , referer:"

Deleting the user details doesn't seem to help either.  Not sure if this is a bug. Also, this is only affecting some of the Mahoodle users.



anonymous profile picture
Account deleted
Posts: 197

18 December 2012, 14:45

Hi Dan,

The error message is telling you that the remote username of the moodle user is already taken on the mahara sites. Have these users with the problems already jumped to mahara successfully in the past? Have they changed their email addresses, or the usernames in moodle itself since they jumped successfully?

Clearing the details in their profile section in Mahara won't help, as their remoteusername value isn't editable by them (that would be all sorts of bad if they could!). The remoteusername is stored in the auth_remote_user database table.


2 results