I get this error:

Couldn't import partner details.
Array ( [0] => failed to serialize server result ) :

any clues on this?

Drupal 5.14
Configuration file Protected
Cron maintenance tasks Last run 24 min 29 sec ago
You can run cron manually.
Database schema Up to date
Drupal core update status Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
JQuery Update Installed correctly
The current installed version of JQuery is 1.1.2
Kaltura module Not Configured
You did not complete the module configuration. you must configure the module with valid kaltura partner's details
Or perform registration. Go to kaltura module settings to complete configuration.
Module update status Up to date
MySQL database 5.0.67
PHP 5.2.6
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server Apache/1.3.41 (Unix) PHP/5.2.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8b

CommentFileSizeAuthor
#5 kaltura_settings.php_.patch161 bytesZohar.Babin
#4 kaltura.txt11 bytestsavino

Comments

Zohar.Babin’s picture

I assume you are already registered to the kaltura partner program and you have the required details for import (partner ID, email and password).

please open the kaltura_logger.php file, and add the following inside the log() function (without the <?php ?> tags of course)

		$klog = fopen(drupal_get_path('module', 'kaltura') .'/kaltura.log', 'a');
		if (!$klog) watchdog('kaltura client', $str);
		else {
			fwrite($klog, $str . PHP_EOL);
			fclose($klog);
		}

Then try to import the partner again, and if it still not working, upload the log here (the log - kaltura.log - will be created in the kaltura module directory)

KentBye’s picture

I'm getting the same error message after entering in my partner ID, email and password at:
http://localhost/d514/admin/settings/kaltura/general?register=no

I do have an existing partner ID, email and password set up already.

I tried to entering the php code from #1 into kaltura_client/kaltura_logger.php and I'm still getting the same result.

I'm also seeing the error message of "Array ( [0] => failed to serialize server result ) :" and I tracked this down to what appears to be the wrong URL variable $this->config->serviceUrl on line 126 of the kaltura_client_base.php.

$this->config->serviceUrl is showing up as http://localhost, and so the request is failing when the request is made to http://localhost/index.php/partnerservices2/getpartner trying to verify my login details.

There is no result that is being returned, and so the result["error"] = array("failed to serialize server result"); error message is being logged because the $result is empty.

When I changed the $this->config->serviceUrl to "http://www.kaltura.com" then it seemed to confirm the details just fine and work.

KentBye’s picture

The generated kaltura.log file reflects that it's going to the wrong serviceUrl.

service url: [http://localhost]
trying to call method: [startsession] for user id: [1] using session: []
full reqeust url: [http://localhost/index.php/partnerservices2/startsession]
result (serialized): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  <head>
    <title>Localhost Installation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="alternate" type="application/rss+xml" title="Localhost Installation RSS" href="http://localhost/rss.xml" />

...

[SNIP out localhost homepage]

...

<!-- /layout -->

    </body>
</html>

result (object dump): Array
(
    [result] => 
    [error] => Array
        (
            [0] => failed to serialize server result
        )

)

execution time for method [startsession]: [0.29884696006775]

This error seems to be rippling out throughout other parts of the local install since it doesn't seem to be working correctly when trying to either Import content (i.e. White Screen of Death) or trying to add a new video (hangs up without ever coming up).

tsavino’s picture

StatusFileSize
new11 bytes

Still the same error the log keeps getting bigger but there is nothing in it......

Zohar.Babin’s picture

StatusFileSize
new161 bytes

KentBye, thanks for drilling down before I had the chance :)

The service URL is taken from the kaltura_settings.php file
which unfortunately was commited with localhost as the Kaltura server (for internal development purpose)

use the attached patch to fix the settings file.
I'll push a new release as soon as possible with this fixed.

Gonen

tsavino’s picture

Worked like a charm:) thanks for the help...

Zohar.Babin’s picture

Assigned: Unassigned » Zohar.Babin
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

dennis cohn’s picture

Hello,

i've got also the error: Couldn't import partner details.
Array ( [0] => Array ( [code] => SERIALIZE_ERROR [desc] => failed to serialize server result ) ) :

How can I fix that?

tnx

pnelson’s picture

Similar error:
Couldn't import partner details.
Array ( [0] => Array ( [code] => CURL_ERROR [desc] => Couldn't resolve host 'www.kaltura.com' ) ) :

It does resolve on my server:
[root@pnfc9 modules]# host www.kaltura.com
www.kaltura.com has address 208.122.58.131

Module info

; $Id: kaltura.info,v 1.1.4.3 2009/01/14 14:14:33

; Information added by drupal.org packaging script on 2009-01-14
version = "5.x-1.3"
project = "kaltura"
datestamp = "1231944343"