contenta_jsonapi icon indicating copy to clipboard operation
contenta_jsonapi copied to clipboard

Base installation: missing Media Settings needed for Video Embed Media

Open alexsenatore opened this issue 6 years ago • 0 comments

Hi, the following issue occur when the Video Embed Media is enabled just after the basic installation of ContentaCMS

The website encountered an unexpected error. Please try again later. Drupal\Core\File\Exception\DirectoryNotReadyException: The specified file 'modules/contrib/video_embed_field/modules/video_embed_media/images/icons/video.png' could not be copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. in Drupal\Core\File\FileSystem->prepareDestination() (line 488 of core/lib/Drupal/Core/File/FileSystem.php). Drupal\Core\File\FileSystem->copy('modules/contrib/video_embed_field/modules/video_embed_media/images/icons/video.png', '', 2) (Line: 29) video_embed_media_install() call_user_func_array('video_embed_media_install', Array) (Line: 392) Drupal\Core\Extension\ModuleHandler->invoke('video_embed_media', 'install') (Line: 323) Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83) Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 173) Drupal\system\Form\ModulesListConfirmForm->submitForm(Array, Object) call_user_func_array(Array, Array) (Line: 112) Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52) Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 591) Drupal\Core\Form\FormBuilder->processForm('system_modules_confirm_form', Array, Object) (Line: 320) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 67) Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 57) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49) Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 694) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Looking into the code, it looks like that the icon_base_uri config is not set. Also, in the ContentaCMS config folder, there is no media.settings.yml with such configuration.

This file can be created by disabling and re-enabling again the Media module. After the creation of the file, the installation of Video Embed Media proceeds without error

alexsenatore avatar Dec 22 '19 21:12 alexsenatore