Forums | Mahara Community

Mahara/Moodle integration /
Moodle Integration


anonymous profile picture
Account deleted
Posts: 12

03 December 2009, 7:33

Anyone got any idea why Mahara cannot pick up the Outcomes settings from moodle, and i get the error mentioned above.

03 December 2009, 13:47

No idea but some more information :)

  • Moodle:  1.9.6+ running under solaris plus working Mahara SSO through Moodle
  • Mahara 1.2 running on a Ubuntu Linux, logged in as moodle user.

Moodle side problem: I click on a Mahara assignement as admin/teacher or student

 RPC mod/mahara/rpclib.php/get_views_for_user:
ERROR 7:
User with ID 1 attempted to call unauthorised method mod/mahara/rpclib.php/get_views_for_user on host http://tecfalabs.unige.ch/mahara

There is no error in the apache logs.

Mahara side:

  • plugin installation went ok and it shows in the list
  • when I click on outcomes, there is an error message: "ERROR - something bad happened after headers have been sent. Check the error log for more information."

 Mahara apache  logs for the above

  [WAR] d2 (lib/errors.php:464) An exception was thrown of class Dwoo_Exception. , referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 [WAR] d2 (lib/errors.php:464) THIS IS BAD and should be changed to something extending MaharaException,, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 [WAR] d2 (lib/errors.php:464) unless the exception is from a third party library., referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 [WAR] d2 (lib/errors.php:464) Original trace follows, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 [WAR] d2 (lib/dwoo/dwoo/Dwoo/Loader.php:111) Plugin <em>insert</em> can not be found, maybe you forgot to bind it if it's a custom plugin ?, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 Call stack (most recent first):, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Loader->loadPlugin("insert", true) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo/Compiler.php:2866, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Compiler->getPluginType("insert") at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo/Compiler.php:1633, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Compiler->parseFunction("<div id="column-left">, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 \t<div class="maincontent{if...", 74, 658, false, "root", 96) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo/Compiler.php:1302, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Compiler->parse("<div id="column-left">, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 \t<div class="maincontent{if...", 74, null, false, "root", 96) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo/Compiler.php:758, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Compiler->compile(object(Dwoo_Mahara), object(Dwoo_Template_Mahara_Artefact)) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo/Template/String.php:369, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Template_String->getCompiledTemplate(object(Dwoo_Mahara), null) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo.php:363, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo->get(object(Dwoo_Template_Mahara_Artefact), array(size 22), null, false) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo.php:311, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo->get(object(Dwoo_Template_Mahara_Artefact), array(size 22)) at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/plugins/builtin/functions/include.php:70, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Plugin_include(object(Dwoo_Mahara), "columnleftstart.tpl", null, null, null, "_root", null) at /export/data/portails/mahara/mahara_data/dwoo/compile/default/export/data/portails/tecfalabs/mahara/artefact/outcome/theme/default/index.tpl.d16.php:14, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * include("/export/data/portails/mahara/mahara_data/dwoo/comp...") at /export/data/portails/tecfalabs/mahara/lib/dwoo/dwoo/Dwoo.php:363, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo->get(object(Dwoo_Template_Mahara_Artefact), array(size 22)) at /export/data/portails/tecfalabs/mahara/lib/dwoo/mahara/Dwoo_Mahara.php:119, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Mahara->fetch("artefact:outcome:index.tpl") at /export/data/portails/tecfalabs/mahara/lib/dwoo/mahara/Dwoo_Mahara.php:106, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
   * Dwoo_Mahara->display("artefact:outcome:index.tpl") at /export/data/portails/tecfalabs/mahara/artefact/outcome/index.php:63, referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9
 , referer: http://tecfalabs.unige.ch/mahara/view/access.php?id=9

 

anonymous profile picture
Account deleted
Posts: 808

03 December 2009, 16:59

Hi Daniel,

With the first (Moodle side) error just it sounds like the rpc functions haven't been installed properly in the Moodle admin interface.

Can you check under Site Administration -> Networking -> Peers -> [your mahara site] -> 'Services' tab,

and make sure "Subscribe" is checked under "Mahara assignment mnet module".

 

I will have a look at the other error today -- it's possible that the recent change from Smarty to Dwoo has broken the Outcomes plugin.

03 December 2009, 19:48

Getting there thanx. :) Indeed I must have overlooked this somewhere :(

So I made the change, but get a new error.

Do you know by chance where I can fix this new friendlier error. Is this a php or moodle configuration issue ? 

 RPC mod/mahara/rpclib.php/get_views_for_user:
ERROR 6:
Time gap with Mahara@TECFA (240 seconds) is greater than the permitted maximum of 15 seconds

 thanx !

anonymous profile picture
Account deleted
Posts: 808

03 December 2009, 21:24

Yeah, I have seen that one before, but I can't remember what the cause was.

I guess the first thing is to check whether the message is actually true -- i.e. make sure the clocks on the moodle and mahara servers are less than 15 seconds apart.

04 December 2009, 6:10

Brilliant :)

works now, indeed the Ubuntu machine was lagging behind ...

Roger Emery's profile picture
Posts: 49

18 February 2011, 4:43

Hi,

I also have this error:

RPC mod/mahara/rpclib.php/get_views_for_user:
ERROR 7:
User with ID 2136 attempted to call unauthorised method mod/mahara/rpclib.php/get_views_for_user on host http://moodletest-vm.solent.ac.uk/mahara

This is on Mahara 1.3.2 and Moodle 1.9.8 - they are both installed on the same test server.

I followed this instruction
"Can you check under Site Administration -> Networking -> Peers -> [your mahara site] -> 'Services' tab,and make sure "Subscribe" is checked under "Mahara assignment mnet module".
But don't have the "Subscribe: Mahara assignment mnet module" displayed on the services page.

Anyone guide me to where I'm going wrong?

Roger

Iñaki Arenaza's profile picture
Posts: 253

19 February 2011, 9:04

Did you install and enable the Moodle "Mahara assignment mnet module"? (the one from mahara-contrib-mdl19-mod-mahara-master.tar.gz). Did you go to http://your.moodle.site/admin/index.php to run the module setup code?

Saludos.
Iñaki. 

Roger Emery's profile picture
Posts: 49

21 February 2011, 4:59

Thank you - yes that wasn't set up correctly.

 

All works now. this will be a fantastic addition (we've just rolled out online submission for all text assignemnts and this will make the submission of portfolios much easier along side that.)

anonymous profile picture
Account deleted
Posts: 808

03 December 2009, 17:54

Sorry about that, I uploaded a dodgy tarball again, I must be losing it.  The mahara-outcomes tarball was an old one that had templates from the Mahara 1.1 themes.  I've updated the wiki to point to a new tarball.