Config the Moodle mod in moodle/admin page

15 replies [Last post]
Joined: 03/16/2010
Points: 12

I fallowed the instraction on - http://www.kaltura.org/kaltura-moodle-plugin-installation-guide

1. i donloaded the files from the above URL
2. extraced them to the mod dir in moodle home dir
3. enter to moodle/admin page and show the messages like the attachment in the guide
4. when i gos to admin/module.php?module=kaltura page and try to enter my KalturaCE info i get this error message

Your Kaltura registration failed.Missing KS. Session not established
( Continue )
Joined: 10/08/2010
Points: 3

I receive the same error as described by The Iceman. Is this because I am using Kaltura 2 instead of 1.5? If so, is it possible to use the current version of the Moodle module with 2.0?

Joined: 11/24/2010
Points: 2

I'm successfully running Kaltura 3.0 on Ubuntu 10.04. Moodle 1.9.2 on OS X server fails to connect during registration with this error:

Your Kaltura registration failed.
Missing KS. Session not established

I don't know what to do to fix this. I also followed the guides, saw the tables created. Is there a communication issue between moodle plugin and Kaltura 3.0. Do I need to use a previous version of Kaltura, or is there an updated plugin? I'm soon to upgrade to Moodle 2.0. I'm worried about the lack of documentation for what seems to be a very useful add-on to Moodle.

Joined: 01/04/2011
Points: 17

I'm getting the same error running Kaltura 3 and Moodle 1.9.9 on Ubuntu 10.10. I tried entering a completely fake url for the server in the Moodle plugin page and I get a different message:


Your Kaltura registration failed.failed to serialize server result 404 Not Found
Not Found
The requested URL /api_v3/index.php was not found on this server.

So it must be finding the server ok (my first thought was that it couldn't access my local Kaltura installation), but not sure what to try next...

Alex

Joined: 01/04/2011
Points: 17

I figured out what the problem is now (and partial solution). It's to do with the plugin not sending the correct partnerId.

If you go to (replacing with the relevant settings):

http://[YOUR KALTURA URL]/api_v3/index.php?service=partner&action=getSecrets&partnerId=[YOUR PARTNERID]&adminEmail=[YOUR EMAIL]&cmsPassword=[YOUR PASSWORD]

then if all is correct, you'll get an XML file back with your Kaltura account details in it, if the partnerId param is incorrect you'll get the "Missing KS" message.

My horrible kludge fix for this is...

1) find out what the partnerId is for your account (from you Kaltura server admin page)
2) in the Moodle code edit line 4589 in moodle/mod/kaltura/client/KalturaClient.php so instead of $partnerId, you put in your actual partner Id (eg: $this->client->addParam($kparams, "partnerId", 100);)
3) Run the Moodle Kaltura module settings page. This time if all the details are correct you should get the message "Your free trial of Kaltura’s Video Extension is now active."
4) Change your edited code in Moodle back to the original ($this->client->addParam($kparams, "partnerId", $partnerId);)
5) Finally, in the Moodle database, go to the mdl_config_plugins table and edit the row with kaltura partner id to be your actual partner id

As I said, it's quite a horrid hack, but seems to then work. I still get a few issues with it showing up some of the videos I've uploaded to be able to select from - but that's a different issue I think.

Anyway, hope that helps someone, and maybe a better fix will be found!

Cheers,
Alex

Joined: 11/10/2010
Points: 5

Thanx, Alex, your method worked for me too, it seems the the moodle pluging does not work correctly with kaltura v.3 ... by the way - did you used Kaltura's Publishers' ID or Kaltura Admin ID ? the plugin says to use Admin ID to connect, not Publisher's .. ?

Joined: 01/04/2011
Points: 17

Good to hear it worked for you ;-)

I was using the publisher for the login details. But perhaps this is why I'm having issues with nothing coming up in the search results. WiIl try with the admin ID instead and see if that makes any difference.

Alex

Joined: 02/01/2011
Points: 7

I just successfully installed kaltura v3 on an ubuntu 10.04
i cannot configure the moodle mod though as you are sujesting ... any ideas ?

Joined: 01/04/2011
Points: 17

Not sure. It's not a great solution that I posted. When you say you can't configure the moodle mod, do you mean you don't have access to the source code on your Moodle server? If you can't access the code then there's probably not much you can do?

Joined: 02/01/2011
Points: 7

No i have access to the moodle server and i can replace the files as needed. What i meen is i don't have any luck in getting it to work. Maybe i did something wrong in replacing strings in these files... can you email the changed files ?
We won't get any answer from anyone in the major question :
"for which version of kaltura this plugin is made for ?"

Joined: 01/04/2011
Points: 17

Attached is my edited KalturaClient.php file. Remember that the id number needs to match the partnerId in the Kaltura installation you're linking to (it may not be 100 as in my installation). I would do a diff on this file against the one you have, just to check you're using exactly the same version.

For the versions, as far as I can tell the current Kaltura Moodle Module is for Kaltura 3 and Moodle 1.9. I suspect the module won't work on Moodle 2 (but this isn't really advised for production yet anyway). To move the module from Moodle 1.9 to 2 probably won't be a huge task.

hope that helps,
Alex

AttachmentSize
KalturaClient.php_.txt118.94 KB
Joined: 02/01/2011
Points: 7

Thanks a lot
Took the file and then I followed your instructions and it worked just fine ....
I actually used the partnerid 99 which is template@... which is the only one that works for me... any idea why the other publishers don't work ?
thanks for your support.

Joined: 01/04/2011
Points: 17

No worries :-) I'm still trying to figure out how it works myself!

I think it's because when you search you're only searching videos that were uploaded through the Moodle interface (it creates a new account (publisher) in Kaltura for the Moodle user - so you're not searching all the videos in your Kaltura server. (or do you mean something else?)

Joined: 11/10/2010
Points: 5

Alex, did You solve the viewing problem of uploaded videos through the moodle plugin?

Joined: 01/04/2011
Points: 17

I only got as far as the fix that's already mentioned above. I didn't manage to get the plugin working so that I could allow the moodle user to search all the (public) videos on the Kaltura server, which is actually what I really want do. Just having teachers in Moodle being able to search videos they themselves have uploaded into Kaltura doesn't really help with what I'm trying to do.
Alex

Joined: 11/10/2010
Points: 5

Well, I am actually, can't get the plugin to do even that .. I can upload a video through the plugin, but when I try to view this there is nothing but the white square instead of video (and no preview also ..)