KalturaException: Entry id "xxxxxxxx" not found in /home/www/virtual/mysite.com/htdocs/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php on line 310

Getting this error each time a media node is created, when the save button is clicked to commit the node. The node and media are created, however.

I see this is informed at http://github.com/GiantRobot/drupal-kaltura/issues#issue/8, and buried in http://drupal.org/node/780320, but thought it might be a bit clearer to start a dedicated issue on this queue.

Comments

MichaelP’s picture

Sorry just to clarify, this is using a Kaltura Media CCK field embedded in a node type.

rup3rt’s picture

Title: KalturaException: Entry id "1_etb0v0tj" not found » Fatal -- KalturaException: Entry id not found -- KalturaClientBase.php
Priority: Normal » Critical

I have this and worse as our core node type has FOUR Kaltura CCK fields and mostly these are submitted empty

Cannot add any content to site, cannot edit any content without these errors

Fatal error: Uncaught exception 'KalturaException' with message 'Entry id "" not found' in /mnt/www/----/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php:310
Stack trace:
#0 /mnt/www/----/sites/all/modules/kaltura/kaltura_client/KalturaClient.php(3426): KalturaClientBase->throwExceptionIfError(Array)
#1 /mnt/www/----/sites/all/modules/kaltura/plugins/field_kaltura/field_kaltura.module(221): KalturaMediaService->get('')
#2 /mnt/www/----/sites/all/modules/kaltura/plugins/field_kaltura/field_kaltura.module(175): create_node_kaltura(Object(stdClass), Array, 'Kaltura_Media')
#3 /mnt/----/iwpr/sites/all/modules/cck/content.module(1253): field_kaltura_field('insert', Object(stdClass), Array, Array, NULL, NULL)
#4 /mnt/www/----/sites/all/modules/cck/content.module(288): _content_field_invoke('insert', Object(stdClass))
#5 /mnt/www/----/sites/all/modules/cck/content.module(422): content_insert(Object(stdClass), NULL, NULL)
#6 /mnt/www/----/modules/node/node.module(679): content_nodeapi(Object(stdClass), 'insert', NULL
in/mnt/www/----/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php on line 310

evanbarter’s picture

While my stack trace was slightly different to rup3rt's, I found I had a similar issue related to having a vocabulary associated with a content type containing a Kaltura Media CCK field. My solution was a little convoluted, but I managed to work around it by installing the Content Taxonomy module (http://drupal.org/project/content_taxonomy).

+1 for the elevation to critical though, there seems to be possibly a number of inter-related issues here. MichaelP stated that in his case the "node and media are created", however this was not my experience, my site simply whitescreened without anything being created.

rup3rt’s picture

Thnaks for the insight evan23

* I had content_taxonomy 6.x-1.0-rc2 enabled so not a definitive fix
* Node and media are created but much field content not created

Rollback is not painfree so test very well before upgrading

Kaltura has so much potential but it is such a car crash.

gonen.radai_kaltura’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new398 bytes

for the following exception:
Fatal error: Uncaught exception 'KalturaException' with message 'Entry id "" not found' in /mnt/www/----/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php:310
Stack trace:
#0 /mnt/www/----/sites/all/modules/kaltura/kaltura_client/KalturaClient.php(3426): KalturaClientBase->throwExceptionIfError(Array)
#1 /mnt/www/----/sites/all/modules/kaltura/plugins/field_kaltura/field_kaltura.module(221): KalturaMediaService->get('')
#2 /mnt/www/----/sites/all/modules/kaltura/plugins/field_kaltura/field_kaltura.module(175): create_node_kaltura(Object(stdClass), Array, 'Kaltura_Media')
#3 /mnt/----/iwpr/sites/all/modules/cck/content.module(1253): field_kaltura_field('insert', Object(stdClass), Array, Array, NULL, NULL)
#4 /mnt/www/----/sites/all/modules/cck/content.module(288): _content_field_invoke('insert', Object(stdClass))
#5 /mnt/www/----/sites/all/modules/cck/content.module(422): content_insert(Object(stdClass), NULL, NULL)
#6 /mnt/www/----/modules/node/node.module(679): content_nodeapi(Object(stdClass), 'insert', NULL
in/mnt/www/----/sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php on line 310

attached patch which checks if any entry was submitted to avoid API calls in case field is empty.

MichaelP’s picture

Status: Patch (to be ported) » Needs work

Getting the same error:

KalturaException: Entry id "1_jrt19g34" not found in ../sites/all/modules/kaltura/kaltura_client/KalturaClientBase.php on line 310

having applied the patch.

vinmassaro’s picture

I have a Kaltura CCK field added to a content type. When I create a new node of this content type and don't upload anything to the Kaltura field, I get:

Fatal error: Uncaught exception 'KalturaException' with message 'Entry id "" not found' in /sandbox/modules/sites/all/modules/contrib/kaltura/kaltura_client/KalturaClientBase.php:310 Stack trace: #0 /sandbox/modules/sites/all/modules/contrib/kaltura/kaltura_client/KalturaClient.php(3426): KalturaClientBase->throwExceptionIfError(Array) #1 /sandbox/modules/sites/all/modules/contrib/kaltura/plugins/field_kaltura/field_kaltura.module(221): KalturaMediaService->get('') #2 /sandbox/modules/sites/all/modules/contrib/kaltura/plugins/field_kaltura/field_kaltura.module(175): create_node_kaltura(Object(stdClass), Array, 'Kaltura_Media') #3 /sandbox/modules/sites/all/modules/contrib/cck/content.module(1253): field_kaltura_field('insert', Object(stdClass), Array, Array, NULL, NULL) #4 /sandbox/modules/sites/all/modules/contrib/cck/content.module(288): _content_field_invoke('insert', Object(stdClass)) #5 /sandbox/modules/sites/all/modules/contrib/cck/content.module(422): content_insert(Object(stdClass), NULL, NULL) #6 /sandbox/modules in /sandbox/modules/sites/all/modules/contrib/kaltura/kaltura_client/KalturaClientBase.php on line 310

This patch appears to fix the problem, and allows me to create the node without uploading anything to the Kaltura field.

patrickroma’s picture

Status: Needs work » Patch (to be ported)

This worked also for me... Also for Version 6.x-2.x-dev.

xurizaemon’s picture

Version: 6.x-1.5 » 6.x-2.x-dev
Status: Patch (to be ported) » Needs work

Gonen, I believe this patch only solves the issue if the Kaltura entryId is blank. I suspect we also need to handle the case where Kaltura fails to find a non-blank entryId in Drupal, ie where it's mismatched, incorrect or the entry has been deleted in Kaltura after being copied to Drupal. Haven't had a chance to try reproducing this yet myself so this is theory only, but hope to do so shortly.

As the patch applies to 2.x currently, I'll move this to 2.x where most development is happening, then we can backport to 1.5.

gonen.radai_kaltura’s picture

Gonen, I believe this patch only solves the issue if the Kaltura entryId is blank

indeed

I suspect we also need to handle the case where Kaltura fails to find a non-blank entryId in Drupal, ie where it's mismatched, incorrect or the entry has been deleted in Kaltura after being copied to Drupal

indeed

xurizaemon’s picture

StatusFileSize
new9.95 KB

This patch fixes several of the existing unhandled exception cases described above when Kaltura is unable to find or update the associated Kaltura media for CCK Field or Node Kaltura Entry content types.

xurizaemon’s picture

StatusFileSize
new19.56 KB

And for node_kaltura_mix (this patch replaces that in #11).

xurizaemon’s picture

Status: Needs work » Needs review

Patch above ready for testing. Prebuilt tarballs also available from https://github.com/GiantRobot/drupal-kaltura/tree/DRUPAL-6--2 if you like - the code there may contain other fixes; please be specific about which version you're using when reporting any issues with this patch.

xurizaemon’s picture

Patch in #12 was committed this morning about 12H ago, so if you use a 6.x-2.x-dev tarball since then you won't need to apply that.

We shouldn't do this validation if we're on the node create form for remix or media entry though - because the entryId won't exist remotely. This (additional) patch resolves that.

gambaweb’s picture

Status: Needs review » Reviewed & tested by the community
xurizaemon’s picture

committed, thanks yaniv

xurizaemon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks guys!

couloir007’s picture

My problem is similar to rup3rt's, and nothing here fixed it. Is this still a problem for the CCK?

Thanks!

Status: Fixed » Closed (fixed)

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