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

Hi,

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

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.

Regards,

Dantina

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.

Thanks,
Melissa

2 results