Closed (fixed)
Project:
Kaltura
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2010 at 09:07 UTC
Updated:
9 Feb 2011 at 19:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
MichaelP commentedSorry just to clarify, this is using a Kaltura Media CCK field embedded in a node type.
Comment #2
rup3rt commentedI 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
Comment #3
evanbarter commentedWhile 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.
Comment #4
rup3rt commentedThnaks 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.
Comment #5
gonen.radai_kaltura commentedfor 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.
Comment #6
MichaelP commentedGetting 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.
Comment #7
vinmassaro commentedI 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:
This patch appears to fix the problem, and allows me to create the node without uploading anything to the Kaltura field.
Comment #8
patrickroma commentedThis worked also for me... Also for Version 6.x-2.x-dev.
Comment #9
xurizaemonGonen, 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.
Comment #10
gonen.radai_kaltura commentedindeed
indeed
Comment #11
xurizaemonThis 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.
Comment #12
xurizaemonAnd for node_kaltura_mix (this patch replaces that in #11).
Comment #13
xurizaemonPatch 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.
Comment #14
xurizaemonPatch 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.
Comment #15
gambaweb commentedComment #16
xurizaemoncommitted, thanks yaniv
Comment #17
xurizaemonThanks guys!
Comment #18
couloir007 commentedMy problem is similar to rup3rt's, and nothing here fixed it. Is this still a problem for the CCK?
Thanks!