| Project: | Kaltura |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | postponed |
| Issue tags: | API, CE, installation, registration, SaaS |
Issue Summary
We have Kaltura CE up and running, C.E. 2.02
We also are using the Drupal 6.x-2.x-dev module.
After adjusting the crossdomain.xml file and the kaltura_settings.php file to point to our server http://video.southwesterncc.edu (which is on the same LAN as our Drupal install but is intranet so my apologies that you can't access on your browser)
We always get this error:
Fatal error: Call to undefined method Exception::Message() in /var/www/drupal/sites/all/modules/kaltura/includes/kaltura.admin.inc on line 138
accompanied by a white screen background.
When I go to see what the error is about this is line 138:
drupal_set_message($ex->Message(), 'error');
Only other thing to note is that our drupal install is in a subdirectory on our server.
var/www/drupal
If anyone can help it would be much appreciated!
Comments
#1
put // in front of that line and you'll be good to go.
Worked for us!
BR,
max
#2
I tried this solution by placing a // before line 138 in kaltura.admin.inc. It allowed us to progress a step further in the server integration settings where we were prompted to enter the partner id along with an email and password.
We get this error message upon entering 1 as our partner id along with email and password:
Fatal error: Uncaught exception 'KalturaException' with message 'Missing KS. Session not established' in /var/www/drupal/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php:310 Stack trace: #0 /var/www/drupal/sites/all/modules/kaltura/kaltura_client/KalturaClient.php(4596): KalturaClientBase->throwExceptionIfError(Array) #1 /var/www/drupal/sites/all/modules/kaltura/includes/kaltura.admin.inc(164): KalturaPartnerService->getSecrets('1', 'a_webb@southwes...', 'v8IjbLxQ') #2 /var/www/drupal/sites/all/modules/kaltura/includes/kaltura.admin.inc(322): kaltura_get_partner_details('1', 'a_webb@southwes...', 'v8IjbLxQ') #3 [internal function]: kaltura_settings_form(Array) #4 /var/www/drupal/includes/form.inc(376): call_user_func_array('kaltura_setting...', Array) #5 [internal function]: drupal_retrieve_form('kaltura_setting...', Array) #6 /var/www/drupal/includes/form.inc(102): call_user_func_array('drupal_retrieve...', Array) #7 [internal function]: drupal_get_form('kaltura_setting...') #8 /var/www/drupal/includes/menu in /var/www/drupal/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php on line 310
I really have no clue what I am doing wrong. Should the passwords be the same in both the first and second steps of server integration. I have 1 password to get into the kaltura admin console on my server and another to get into the KMC. Which one should I use where?
Thanks so much in advance for your help.
#3
This error comes from not editing the Kaltura_settings.php in the Kaltura module!!
go to modules/kaltura/kaltura_client/Kaltura_settings.php and fill in your serverinfo at this line
define('KalturaSettings_SERVER_URL', "http://OURAWESOMESERVER.com/");
:-)
#4
Thanks for your help, but I already have edited the Kaltura_settings.php file to include the following:
define('KalturaSettings_SERVER_URL', "http://video.southwesterncc.edu/");
I also have already changed the crossdomain.xml files. Since both the server hosting the drupal site and the server hosting the kaltura site are under the same firewall they see each other in some sense, because I can embed videos from my kaltura CE server using the embed code. BUT STILL NO LUCK WITH THE SERVER INTEGRATION SETTINGS TO INSTALL THE KALTURA ALL IN ONE VIDEO MODULE FOR DRUPAL!
In advance I really appreciate everyones help with this issue, but I still need help
#5
looking at the module, the main problem is with it's separation of CE vs. kaltura.com integration.
CE has the same integration and same APIs as kaltura.com, so there shouldn't be anything different besides the url of the Kaltura server you're using.
So, instead of telling the module you're using CE, just go and edit the settings to point to your Kaltura server instead of kaltura.com, then follow the regular kaltura.com partner registration through the module (again, don't use the special CE UI).
That'll do the trick.
More technical info -
line 164 in kaltura.admin.om :
$res = $kClient -> partner -> getSecrets(1, $email, $password);
getSecrets(1, $email, $password); assumes the partner id is always == 1.
this can't work in CE 2.x - As you don't necessarily have only partner id == 1 in the system. especially if you register a new one.
We should essentially remove the special CE installation and have only one single installation flow that includes a field for changing the URL of the Kaltura server used.
#6
I have tried the above instructions to proceed with the SaaS install but keep the crossdomain.xml and kaltura_settings.php files pointing at our local server to no avail. I am wondering if our problem on this side is related to the 2nd point made by Kalturian regarding our partner id.
I have worked to assemble a visual representation of the problems in the module installation, and also have included relevant information about our setup. I HAVE ATTACHED A PNG IMAGE FILE TO THIS COMMENT TO GIVE YOU A CLEARER UNDERSTANDING.
Thanks so much in advance for taking a look at the image and trying to help us
#7
@a_webb -
1. This should be the KMC email and password - aka, you're Kaltura partner/publisher account.
2. Did you try to "register a new partner" instead of using an existing one?
#8
Great, that was it. Thanks Kalturian we now have 3 checks saying our servers are communicating. I think what had happened is in the process of troubleshooting my e-mail address perhaps had become affiliated with more than 1 partner ID and more than 1 password. Anyways the success finally came when I followed your suggestion, leaving the kaltura_settings.php and the crossdomain.xml pointing to my media server, but then proceeding with the module installation by checking the Kaltura SaaS service installation instead of the kaltura CE option. Then I filled out the form to "register as a new partner", and this time I made sure to give a different personal e-mail and give the website a different name (I was entering our URL but now I entered Southwestern Community College Media Server).
Thanks so much for your time! All I had to do other than the above was to make sure our php.ini file had sufficient upload_max_filesize and post_max_size along with 2 adjustments in Drupal
1)site configuration>>kaltura>>settings Kaltura to Drupal Notification Settings ENABLED
2)Site configuration>>file uploads --make sure the file upload max size is sufficient.
Also for anyone reading this thread there is no need to comment out line 138
Now we will see how the remix is working!
This is Fabulous!
#9
#10
#11
#12
So it's great that's the interim solution, but we really need to remove the special CE view from the interface, it's too confusing to have a feature that doesn't work...
All Kaltura servers share the same APIs, there's no difference and the module should be the same. the fix should be as follow:
1. remove all special CE functions.
2. add a field to the partner settings form of Kaltura Server URL with www.kaltura.com as default for easy setup for those who don't have their own server.
3. change the text to say register with your Kaltura account (instead of SaaS vs. CE).
(Do the same flow for registration a new partner and setting existing partner).
#13
Now after everything was up and running smoothly for about a month, and a bit of content had been uploaded. But now when I go to our kaltura ce server (which is on our LAN under a firewall) I cannot login to KMC.
The attempt simply brings up this message:
"We're sorry, but you cannot access your Kaltura account at this time.
Please contact us or call +1 (800) 871-5224 in order to unlock your account."
I have called the number and they told me to send in an email to partnersupport@kaltura.com
I did this 2 days ago and have not gotten a reply.
After thinking about the issue perhaps the problem here also has to do with the workarounds implemented to get our drupal kaltura module integrated with our server. Those steps are outlined in this thread. Did they trick the kaltura partner repository into only give us a 30 free trial even on our self hosted Kaltura CE install.
I really need help with this one..thanks in Advance!
#14
That is extremely strange, a_webb. I'm not aware of any time limit on the KalturaCE download, and I don't believe that Kaltura intend for there to be one.
I can't help you directly, but Zohar who posted before you is Kaltura's Head of Developer Relations and Community, and I've pinged him to make sure he knows about your situation. He will probably get in touch with you directly rather than via Drupal.org's issue queue.
Kaltura's team are pretty active on Twitter as well, so you could try reaching out to them there.
That said: please don't hijack issues (even ones you've created). When requesting support via Drupal.org's infrastructure, each new issue or question goes in a separate topic. Search before you create a new issue to avoid duplication.
#15
Ah - @a_webb, I see now in yr comment why you posted in this thread, my apologies for pointing you to the docs, hope I didn't cause offense in any way :)
#16
@a_webb - you say after a month the server is running...
this seems like you just set up the partner you're using to a 'free 10GB' package. you can just go to your admin console and change this partner settings to unlimited.
-- I wonder if this is caused by the Drupal signup.... will check.
#17
thanks for the help guys. You know I am not sure what happened but luckily we had a snapshot of our kaltura CE server (yes I love Xen Center)
So basically I reverted back to the snapshot, and then I simply requested a new password for the e-mail I had been using. This was successful. I went into our admin console to change the partner settings to unlimited as per Zohar's advice, but I could not find this setting. Could you please instruct me where in the admin console can I change "PARTNER SETTINGS" to "UNLIMITED" And grobot no offense regarding the "hijacking" comment---I at first considered starting a new thread but decided to put it here.
#18
here is a possible solution:
"corrected because there is no $ex->Message()"
http://drupal.org/node/936752
#19
Please see #1026426: Installation issues: FAPI rewrite of installer to test a rewritten installer which uses the same functions for both CE and SaaS installations.
There are some minor differences in flow still, which are:
1. CE currently skips the option for remote reg. In testing I found that CE did not appear to support remote registrations. (Feedback welcome - I was using the supplied AMI.) This is disabled but can be easily re-enabled if you can give me a CE server which supports remote reg to test against.
2. If SaaS is selected, we need T&C agreement still, but not for CE.
3. If SaaS is selected, we conceal the URL field using JS to simplify the flow.
I've opened a separate issue to implement Zohar's request in #12 above. This issue covers several topics, all of which should be resolved with the new installer, so I'm marking this issue postponed and request your feedback on the new issue: #1026426: Installation issues: FAPI rewrite of installer.
This issue will be marked fixed when that issue is resolved.
#20
@grobot - not sure what CE you used, all CE accept registrations through API, in fact, if you create publishers through the Admin Console - it calls the same APIs. So if you managed to run your CE and add publishers, your API is working.
Can you paste here the code you use to register your publishers (partner)?
Another comment is to change the strings, from CE and SaaS to Self Hosted and SaaS. This is to support the cases of the commercial self hosted version.
thanks
#21
Any way to integrate Kaltura CE 3.0 with Drupal?
#22
Just confirming for people who see my earlier post, yes Kaltura Drupal module 6.x-2.0-beta1 does in fact work with Kaltura 3.0 CE.... I haven't gotten it working yet, but in progress. I'll post what I do with screenshots on the Kaltura forums and with general instructions here when I do.