Interactive Video Content Type - Update Times Out
Submitted by ZeppoMarx on Fri, 11/16/2018 - 14:43
Forums:
I'm running H5P (version 8.x-1.0-rc10) on a Drupal 8.5.8 site and when I go to create a new block with H5P Interactive Video, the UI shows options to UPDATE or USE. Regardless of what choice I make the UI displays a spinner and eventually times out, without successfully updating or loading the content type.
Summary:
Interactive Video Content Type - Update Times Out
Content types:
BV52
Mon, 11/19/2018 - 01:36
Permalink
Hi ZeppoMarx,In order to give
Hi ZeppoMarx,
In order to give your report the best chance of getting answered, please include the following information:
The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!
-BV52
thughes2
Mon, 11/26/2018 - 16:06
Permalink
Interactive Video Content Type - Update Times Out
thughes2
Mon, 11/26/2018 - 16:52
Permalink
Interactive Video Content Type - Update Times Out
After further work with this, I get a different error when I attempt to upload an h5p file: "The system was unable to install the Interactive Video Editor component from the package, it requires a newer version of the H5P plugin. This site is currently running version 1.15, whereas the required version is 1.19 or higher. You should consider upgrading and then try again." What does this version number reference? It's not in sync with the Drupal extension number.
otacke
Mon, 11/26/2018 - 19:50
Permalink
Hi thughes2!That's the
Hi thughes2!
That's the version number of the H5P core. It's not only used for Drupal, but for many other host systems, so it doesn't make sense to sync it with the drupal version number. H5P core V1.19 can be found in the latest release of the plugin for drupal.
Cheers,
Oliver
thughes2
Mon, 11/26/2018 - 21:42
Permalink
We're using the latest
We're using the latest release - that's where the problem lies. :-(
otacke
Mon, 11/26/2018 - 22:00
Permalink
Hi thuges2!Not sure why the
Hi thuges2!
Not sure why the message would say you're running 1.15 if you have the latest version installed.
You mentioned above that you were running 8.x-1.0-rc8, but the drupal download site lists 8.x-1.0-rc11 as the latest plugin version.
Best
Oliver
thughes2
Tue, 11/27/2018 - 17:01
Permalink
Interactive Video Failure
Thanks Oliver: I've upgraded to 8.x-1.0-rc11, but am still unable to upload an h5p file or create an interactive video. I get this gnarley error:
Notice: Undefined index: metadata in Drupal\h5p\H5PDrupal\H5PDrupal->updateContent() (line 833 of /Users/anthonyhughes/drupal-dogs/modules/h5p/src/H5PDrupal/H5PDrupal.php) #0 /Users/anthonyhughes/drupal-dogs/core/includes/bootstrap.inc(584): _drupal_error_handler_real(8, 'Undefined index...', '/Users/anthonyh...', 833, Array) #1 /Users/anthonyhughes/drupal-dogs/modules/h5p/src/H5PDrupal/H5PDrupal.php(833): _drupal_error_handler(8, 'Undefined index...', '/Users/anthonyh...', 833, Array) #2 /Users/anthonyhughes/drupal-dogs/modules/h5p/vendor/h5p/h5p-core/h5p.classes.php(1936): Drupal\h5p\H5PDrupal\H5PDrupal->updateContent(Array, NULL) #3 /Users/anthonyhughes/drupal-dogs/modules/h5p/vendor/h5p/h5p-core/h5p.classes.php(1397): H5PCore->saveContent(Array, NULL) #4 /Users/anthonyhughes/drupal-dogs/modules/h5p/src/Plugin/Field/FieldWidget/H5PUploadWidget.php(151): H5PStorage->savePackage(Array) #5 /Users/anthonyhughes/drupal-dogs/modules/h5p/src/Plugin/Field/H5PWidgetBase.php(112): Drupal\h5p\Plugin\Field\FieldWidget\H5PUploadWidget->massageFormValue(Array, 0, false) #6 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Field/WidgetBase.php(381): Drupal\h5p\Plugin\Field\H5PWidgetBase->massageFormValues(Array, Array, Object(Drupal\Core\Form\FormState)) #7 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(225): Drupal\Core\Field\WidgetBase->extractFormValues(Object(Drupal\Core\Field\FieldItemList), Array, Object(Drupal\Core\Form\FormState)) #8 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Entity/ContentEntityForm.php(338): Drupal\Core\Entity\Entity\EntityFormDisplay->extractFormValues(Object(Drupal\block_content\Entity\BlockContent), Array, Object(Drupal\Core\Form\FormState)) #9 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Entity/EntityForm.php(304): Drupal\Core\Entity\ContentEntityForm->copyFormValuesToEntity(Object(Drupal\block_content\Entity\BlockContent), Array, Object(Drupal\Core\Form\FormState)) #10 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Entity/ContentEntityForm.php(159): Drupal\Core\Entity\EntityForm->buildEntity(Array, Object(Drupal\Core\Form\FormState)) #11 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Entity/EntityForm.php(289): Drupal\Core\Entity\ContentEntityForm->buildEntity(Array, Object(Drupal\Core\Form\FormState)) #12 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Entity/ContentEntityForm.php(149): Drupal\Core\Entity\EntityForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #13 [internal function]: Drupal\Core\Entity\ContentEntityForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #14 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #15 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #16 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Form/FormBuilder.php(589): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #17 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Form/FormBuilder.php(318): Drupal\Core\Form\FormBuilder->processForm('block_content_v...', Array, Object(Drupal\Core\Form\FormState)) #18 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm('block_content_v...', Object(Drupal\Core\Form\FormState)) #19 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #20 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #21 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #22 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #23 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #24 /Users/anthonyhughes/drupal-dogs/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #25 /Users/anthonyhughes/drupal-dogs/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #26 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /Users/anthonyhughes/drupal-dogs/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /Users/anthonyhughes/drupal-dogs/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /Users/anthonyhughes/drupal-dogs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #33 /Users/anthonyhughes/drupal-dogs/core/lib/Drupal/Core/DrupalKernel.php(669): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #34 /Users/anthonyhughes/drupal-dogs/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #35 {main}.SeverityNoticeHostname127.0.0.1Operationsotacke
Tue, 11/27/2018 - 17:15
Permalink
Hi thuges2!I've never used
Hi thuges2!
I've never used Drupal 8, but if it's similar enough to Drupal 7, you may still have to run the database upgrade. "Undefined index: metadata" sounds like one of the database table might not yet have the required column for the new metadata feature.
Cheers,
Oliver