Forums | Mahara Community

Mahara/Moodle integration /
failing at the last


anonymous profile picture
Account deleted
Posts: 4

04 June 2009, 4:02

Hi all

 I wonder if anybody can help out.  I am trying to integrate Moodle 1.9.3 with mahara, following as carefully as I can the steps set out in the integration guide.  However it appears to be failing at the last.   When I log into Moodle and click on the link to Mahara, an account is created for that user but they are not logged in.   I have a nagging feeling I am missing something obvious.  

 To have come this far...  Any help would be hugely appreciated. 

 Best wishes

 Dave

anonymous profile picture
Account deleted
Posts: 228

04 June 2009, 5:17

Hi David,

It would be very helpeful if you could do the following -

- Paste the exact error message you're seeing

- Check the apache error log (for both Moodle *and* Mahara) for any relevant looking messages  and paste those here too

 Cheers

Penny

anonymous profile picture
Account deleted
Posts: 4

04 June 2009, 9:57

Hi Penny

 Thanks so much for getting back to me so quickly.

I am not getting any on-screen errors; just the login screen presenting itself.

 Here is a (slightly edited) extract from the apache error log -


[Thu Jun 04 15:13:16 2009] [error] [client[ip addresss]] Call stack (most recent first):, referer: http://[devserver]/193/
[Thu Jun 04 15:13:16 2009] [error] [client[ip addresss]]   * log_message("You have dangerous PHP settings, magic_quotes_gpc ...", 1, true, true) at /moodleroot/vcplay/moodle/mahara/lib/errors.php:102, referer: http://[devserver]/193/
[Thu Jun 04 15:13:16 2009] [error] [client[ip addresss]]   * log_environ("You have dangerous PHP settings, magic_quotes_gpc ...") at /moodleroot/vcplay/moodle/mahara/lib/mahara.php:86, referer: http://[devserver]/193/
[Thu Jun 04 15:13:16 2009] [error] [client[ip addresss]]   * ensure_sanity() at /moodleroot/vcplay/moodle/mahara/init.php:77, referer: http://[devserver]/193/
[Thu Jun 04 15:13:16 2009] [error] [client[ip addresss]]   * require("/moodleroot/vcplay/moodle/mahara/init.php") at /moodleroot/vcplay/moodle/mahara/index.php:30, referer: http://[devserver]/193/
[Thu Jun 04 15:13:16 2009] [error] [client[ip addresss]] , referer: http://[devserver]/193/

is it just the magic quotes?  I was surprised that was switched on....

 Best wishes

Dave

anonymous profile picture
Account deleted
Posts: 228

04 June 2009, 10:35

Hi David,

How are you sure the user account is being created?  A record in the db?  What happens when you log into Mahara directly using the admin account? 

Have you made sure you checked the 'they sso in' box in your xmlrpc settings?

And yes, you should *definitely* turn off magic quotes ! :)

anonymous profile picture
Account deleted
Posts: 4

05 June 2009, 3:41

Hi Penny

What I am describing, I now realise, might not precisely be account creation.  But... when I create a new account on Moodle, log into Moodle using that account, and 'then click on the Network Server link to our Mahara, the new user is taken to the Mahara login page... nothing beyond that happens on the user interface.  However when I log into Mahara using the admin account and go to Site Administration > Institutions I can see the new member listed there.   This is perhaps stating the obvious, but if I just create an account on Moodle and do not  log on as the new users and click through to Mahara, they do not appear in the list under institution.

Login in to Mahara directly using the admin account is not a problem.  And 'They sso in' is definitely checked in the xmlrpc settings.

Thanks once again for your help with this.

 Best regards

 Dave

anonymous profile picture
Account deleted
Posts: 1643

07 June 2009, 23:54

Hi - maybe it's some kind of cookie/session issues. What is the wwwroot of your moodle site, and what is it for your mahara?

Do you know much about firefox extensions? If you know how to use the "livehttpheaders" extension, that could be of great help. Alternatively, is your site available publicly so we could get an account on the moodle and see for ourselves?

anonymous profile picture
Account deleted
Posts: 4

15 June 2009, 3:17

Thanks for this - I will investigate the http headers...

anonymous profile picture
Account deleted
Posts: 4

29 August 2009, 10:46

 I'm having a similar problem. When I click on the Mahara link in moodle I'm taken to the login screen. However when I login as Admin into Mahara, I can see the test user account from moodle. Was there an eventual solution to this problem?

 

anonymous profile picture
Account deleted
Posts: 1643

30 August 2009, 20:00

We didn't hear any more back, so it's still an unknown problem.

A random thought occured to me. Is your Moodle site in debug mode, or does it display all php notices to the screen etc.? If so, try flicking it back to a "quieter" mode and see if that works. I've seen cases where in developer mode, PHP has issued notices that have broken the XML that Moodle outputs. 

anonymous profile picture
Account deleted
Posts: 4

03 September 2009, 9:05

My site is not in debug mode. It was displaying errors on the screen. In fact it was displaying the error messages about magic_quotes. I had switched it off (by adding $cfg->log_environ_targets = 0; to the config.php file) while I had asked my hosting provider to switch it off.

In any case I tried swapping so that you SSO from Mahara into moodle. I get the following error from Moodle:

 RPC auth/mnet/user_authorise:remote server error: code: , message: A nonrecoverable error occured. This probably means you have encountered a bug in the systemERROR 4:4: remote server error: code: , message: A nonrecoverable error occured. This probably means you have encountered a bug in the system.

Any thoughts?

12 results