KalturaUiConfERROR

5 replies [Last post]
oli
oli's picture
User offline. Last seen 2 years 5 weeks ago.
Joined: 03/29/2010
Points: 12
kaltura_uiconferror.jpg

Hi,

when I try to load the page "players gallery" from the examples I get the error shown in the attached image.
Why doesn't it work?

Thanks for any help.

Joined: 04/10/2010
Points: 15

I just posted today about the same issue...

seems to be related to the server root (I installed mine in the folder /kalturaCE )
need to run the script run_replace_root.php in the install folder (or the sh script run_replace_root.sh)

> php run_replace_root.php /kalturaCE

it will modify the server root in some paths in some .xml files of the uiconf files

oli
oli's picture
User offline. Last seen 2 years 5 weeks ago.
Joined: 03/29/2010
Points: 12

Thanks for the reply. But with which parameters should I execute run_replace_root.php?

When I execute it with: php run_replace_root.php /kalturaCE I get the following error message:
<?
function replace_root($file_path, $server_root)
{
if (substr_count($file_path, "kae_generic_generic.xml") > 0)
return;

if (substr_count($file_path, "kae_generic_generic_no_thumbnail.xml") > 0)
return;

if (substr_count($file_path, "kse_samplekit.xml") > 0)
return;

if (substr_count($file_path, "se_wordpress.xml") > 0)
return;

if (substr_count($file_path, "se_drupal.xml") > 0)
return;

$data = file_get_contents($file_path);
//avoid replacement of static urls
$data = str_replace("kaltura.com/content", "kaltura.com_content", $data);
// replace /content with /SERVER_ROOT/content
$data = str_replace("/content/", "$server_root/content/", $data);
// restore static urls
$data = str_replace("kaltura.com_content", "kaltura.com/content", $data);
// save file
file_put_contents($file_path, $data);
}
deleting ../content/uiconf
PHP Fatal error: Call to undefined function replace_root() in /srv/www/htdocs/kalturaCE/install/run_replace_root.php on line 33

If I try to run the script run_replace_root.sh instead with parameter /kalturaCE I get the error message (several times):
find: /kalturaCE: No such file or directory.
Because I installed kaltura in the directory /srv/www/htdocs/kalturaCE I tried with the directory path as parameter for the script. Now I get the following error message (again serveral times):
find: /srv/www/htdocs/kalturaCE/: Permission denied
Although I execute the script as root.

Joined: 12/07/2009
Points: 14

you should execute also the script to fix permissions I guess
I don't remember exactly the script name, but it's also in the install folder
then run
php run_replace_root.php /srv/www/htdocs/kalturaCE which is tour new root path

don't worry I tried many tests before finding this one was the good one....

oli
oli's picture
User offline. Last seen 2 years 5 weeks ago.
Joined: 03/29/2010
Points: 12

I executed fixperms.sh (to fix the permissions) and afterwards tried run_replace_root.sh and run_replace_root.php again. I still get the same error messages as described before.

Joined: 05/06/2009
Points: 1

exact same issue as oli