Forums | Mahara Community
Mahara/Moodle integration
/
Administrating Institutions - unknown error
07 September 2009, 8:06
Hi all. I am in the process of setting up Mahara with Moodle, so that Moodle users can 'SSO' to Mahara.
The install went fine and I have been following the Mahoodle PDF sooften linked to, but Ihave an error I can find no record of in Google and no solutin to anywhere.
Click on Manage Institutions, Institutions, Add, fill in the various details and click Submit, then when the page relaods, choose XMLRPC from the drop-down menu and click Add.
A choose an Authority name, add in our Moodle webroot and choose a site name. Now, no matter what other options I choose, I always get :
"An unknown error occurred while processing this form" ns the text in the first field (Authority name) appears in red.
I'm not sure that this text is really the problem. Can someone throw any light on this issue?
We have a LAMP setup on Ubuntu Jaunty, and are using version 1.1.7testing (2009022620).
Cheers,
Paul.
07 September 2009, 8:25
Hi,
greetings from Germany ;-)
Did you ceck the errorlog files?
Cheers
Heinz
07 September 2009, 8:56
Hi Heinz, Greetings from the UK :)
I've just access the error log for that specific event and there's quite a lot and it's not pretty :( Here it is below, suitably 'sanitised':
(I'm very new to Mahara so this doesn't mean much to me (yet).)
[WAR] 85 (lib/peer.php:125) Undefined index: error, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
Call stack (most recent first):, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* log_message("Undefined index: error", 8, true, true, "/srv/mahara/releases/20090902143458/htdocs/lib/pee...", 125) at /srv/mahara/releases/20090902143458/htdocs/lib/errors.php:378, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* error(8, "Undefined index: error", "/srv/mahara/releases/20090902143458/htdocs/lib/pee...", 125, array(size 1)) at /srv/mahara/releases/20090902143458/htdocs/lib/peer.php:125, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Peer->__get("error") at /srv/mahara/releases/20090902143458/htdocs/lib/peer.php:174, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Peer->bootstrap("http://moodle.ourdomain.co.uk", null, "moodle", "sdc") at /srv/mahara/releases/20090902143458/htdocs/auth/xmlrpc/lib.php:842, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* PluginAuthXmlrpc::validate_config_options(array(size 21), object(Pieform)) at Unknown:0, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* call_user_func_array(array(size 2), array(size 2)) at /srv/mahara/releases/20090902143458/htdocs/lib/mahara.php:986, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* call_static_method("PluginAuthXmlrpc", "validate_config_options", array(size 21), object(Pieform)) at /srv/mahara/releases/20090902143458/htdocs/admin/users/addauthority.php:111, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* auth_config_validate(object(Pieform), array(size 21)) at Unknown:0, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* call_user_func_array("auth_config_validate", array(size 2)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:1202, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Pieform->validate(array(size 21)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:410, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Pieform->__construct(array(size 5)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:170, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Pieform::process(array(size 5)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:71, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* pieform(array(size 5)) at /srv/mahara/releases/20090902143458/htdocs/admin/users/addauthority.php:91, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
[WAR] 85 (lib/peer.php:174) Indirect modification of overloaded property Peer::$error has no effect, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
Call stack (most recent first):, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* log_message("Indirect modification of overloaded property Peer:...", 8, true, true, "/srv/mahara/releases/20090902143458/htdocs/lib/pee...", 174) at /srv/mahara/releases/20090902143458/htdocs/lib/errors.php:378, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* error(8, "Indirect modification of overloaded property Peer:...", "/srv/mahara/releases/20090902143458/htdocs/lib/pee...", 174, array(size 6)) at /srv/mahara/releases/20090902143458/htdocs/lib/peer.php:174, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Peer->bootstrap("http://moodle.ourdomain.co.uk", null, "moodle", "sdc") at /srv/mahara/releases/20090902143458/htdocs/auth/xmlrpc/lib.php:842, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* PluginAuthXmlrpc::validate_config_options(array(size 21), object(Pieform)) at Unknown:0, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* call_user_func_array(array(size 2), array(size 2)) at /srv/mahara/releases/20090902143458/htdocs/lib/mahara.php:986, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* call_static_method("PluginAuthXmlrpc", "validate_config_options", array(size 21), object(Pieform)) at /srv/mahara/releases/20090902143458/htdocs/admin/users/addauthority.php:111, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* auth_config_validate(object(Pieform), array(size 21)) at Unknown:0, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* call_user_func_array("auth_config_validate", array(size 2)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:1202, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Pieform->validate(array(size 21)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:410, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Pieform->__construct(array(size 5)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:170, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* Pieform::process(array(size 5)) at /srv/mahara/releases/20090902143458/htdocs/lib/pieforms/pieform.php:71, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
* pieform(array(size 5)) at /srv/mahara/releases/20090902143458/htdocs/admin/users/addauthority.php:91, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
, referer: http://mahara.ourdomain.co.uk/admin/users/addauthority.php?add=1&i=sdc&p=xmlrpc
07 September 2009, 16:46
Hi Paul,
We came across the same error last week. For the site in question is was a DNS problem -- Mahara was unable to look up the IP address of the Moodle site.
Unfortunately there is a bug in Mahara which prevents the output of a useful error message. Line 174 of htdocs/lib/peer.php (the one starting with "$this->error[] = array( ..." doesn't belong there. If you delete that line and try again, you will probably see something like "Could not find IP address for moodle.ourdomain.co.uk" in your error log.
Sorry about that. I fixed it last week on the unstable branch but forgot to do the same thing on 1.1.
R.
08 September 2009, 3:57
Hi Richard, thanks for your reply. I made the changes and pushed them out but even after flushing the browser cache and using a different browser the error messages were the same.
However, a colleague picked up on your mention of DNS issue and yes, that was the issue. A little bit of tinkering later and everything works exactly as expected. :)
Thanks for your time,
Paul.
23 April 2010, 11:08
Hi there
I am having that problem now, what did the tinkering involve to make yours work?
thanks
Kylie