Hi @melaleuca5,
And line 44 of /home/ubuntu/Kaltura-Library-Export-Excel/entries.php reads?
The thread you referred to contains two scripts and a lot of posts besides:)
It would therefore be best if you attached the exact code you’re running.
If line 44 is:
$cat = $client->category->get($cat_id);
Then the reason is relatively obvious:) To wit: if an entry is not associated with any categories,
$cat_entry->objects[0]->categoryId;
will be undefined, which in turn means $cat_id will also be undefined and so:
$cat = $client->category->get($cat_id);
Will fail with:
PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Missing parameter “id”’
You should check whether $cat_entry->objects[0]->categoryId is defined before trying to obtain the category name, like so:
if (isset($cat_entry->objects[0]->categoryId)){
$cat_id=$cat_entry->objects[0]->categoryId;
$cat = $client->category->get($cat_id);
}else{
$cat = "N/A"
}