problem with Drupal 8

Hi,

I installed the 8.x-1.0-alpha2 module then added a field to a content type, however, when I save the field I got an error (The website encountered an unexpected error. Please try again later.)

 

I ignored the error and tried to add a content and when I press install to get a library I got an error (validating h5p package failed

Could you help me solve the problem, please?

I also have a question about the stable Drupal 8 released when it is coming? 

  • The system was unable to install the H5P Editor Range List component from the package, it requires a newer version of the H5P plugin. This site is currently running version 1.13, whereas the required version is 1.14 or higher. You should consider upgrading and then try again.
  • The system was unable to install the H5P Editor Table List component from the package, it requires a newer version of the H5P plugin. This site is currently running version 1.13, whereas the required version is 1.14 or higher. You should consider upgrading and then try again.
icc's picture

Hi, 

You must check your web server's error_log file or Drupal's 'Recent log messages' page. It will give you details about the error.

The next version of the Drupal 8 module is due to be released in September and will probably be a beta or RC. 

Thanks for the reply. I checked the error_log file but I don't really know what to do I'm new to Drupal. Here is what I got, I hope you could help me:

This is the site recent log message

TypeError: Argument 1 passed to Drupal\h5p\Plugin\Field\FieldWidget\H5PUploadWidget::massageFormValue() must be of the type array, null given, called in /home/maha/public_html/modules/h5p/src/Plugin/Field/H5PWidgetBase.php on line 102 in Drupal\h5p\Plugin\Field\FieldWidget\H5PUploadWidget->massageFormValue() (line 99 of /home/maha/public_html/modules/h5p/src/Plugin/Field/FieldWidget/H5PUploadWidget.php) #0 /home/maha/public_html/modules/h5p/src/Plugin/Field/H5PWidgetBase.php(102): Drupal\h5p\Plugin\Field\FieldWidget\H5PUploadWidget->massageFormValue(NULL, 0, false) #1 /home/maha/public_html/core/lib/Drupal/Core/Field/WidgetBase.php(368): Drupal\h5p\Plugin\Field\H5PWidgetBase->massageFormValues(Array, Array, Object(Drupal\Core\Form\FormState)) #2 /home/maha/public_html/core/lib/Drupal/Core/Field/FieldItemList.php(333): Drupal\Core\Field\WidgetBase->extractFormValues(Object(Drupal\Core\Field\FieldItemList), Array, Object(Drupal\Core\Form\FormState)) #3 /home/maha/public_html/core/modules/field_ui/src/Form/FieldConfigEditForm.php(167): Drupal\Core\Field\FieldItemList->defaultValuesFormSubmit(Array, Array, Object(Drupal\Core\Form\FormState)) #4 [internal function]: Drupal\field_ui\Form\FieldConfigEditForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #5 /home/maha/public_html/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #6 /home/maha/public_html/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #7 /home/maha/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #8 /home/maha/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('field_config_ed...', Array, Object(Drupal\Core\Form\FormState)) #9 /home/maha/public_html/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm('field_config_ed...', Object(Drupal\Core\Form\FormState)) #10 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #11 /home/maha/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #12 /home/maha/public_html/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #13 /home/mshs/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #14 /home/maha/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #15 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #16 /home/maha/public_html/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) #17 /home/maha/public_html/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #18 /home/maha/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /home/maha/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /home/maha/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /home/maha/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/maha/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/maha/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/maha/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/maha/public_html/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/maha/public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #27 {main}.

 

 

BV52's picture

Hi maha,

Thank you for the information. The first H5P conference is happening this week. The H5P core team will be busy facilitating the activities. They will try to answer your question asap or if someone in the community have some inputs feel free to post it here.

 

 

-BV52

icc's picture

Thank you for sharing details on the error. I've created an issue for investigating it: HFP-1492

Which version of Drupal 8 where you using? Any other details about your setup that would help others recreate and identify the issue? 

Thanks for following up. I use the latest version which is 8.3.7. I tried it on a clean drupal installation.

BV52's picture

Hi maha,

Thank you for the information. I appended the ticket mentioned above.

-BV52

Thanks