TypeError: Drupal\cloudinary_media_library_widget\Form\CloudinaryUploadForm::__construct(): Argument #2 ($library_ui_builder) must be of type Drupal\media_library\MediaLibraryUiBuilderInterface, Drupal\media_library\MediaLibraryUiBuilder @cloudinary 3.0.0

Created on 18 March 2024, 8 months ago
Updated 22 April 2024, 7 months ago

Problem/Motivation

TypeError: Drupal\cloudinary_media_library_widget\Form\CloudinaryUploadForm::__construct(): Argument #2 ($library_ui_builder) must be of type Drupal\media_library\MediaLibraryUiBuilderInterface, Drupal\media_library\MediaLibraryUiBuilder given, called in /var/www/html/docroot/modules/contrib/cloudinary/modules/cloudinary_media_library_widget/src/Form/CloudinaryUploadForm.php on line 51 in Drupal\cloudinary_media_library_widget\Form\CloudinaryUploadForm->__construct() (line 37 of /var/www/html/docroot/modules/contrib/cloudinary/modules/cloudinary_media_library_widget/src/Form/CloudinaryUploadForm.php)
#0 /var/www/html/docroot/modules/contrib/cloudinary/modules/cloudinary_media_library_widget/src/Form/CloudinaryUploadForm.php(51): Drupal\cloudinary_media_library_widget\Form\CloudinaryUploadForm->__construct()
#1 /var/www/html/docroot/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\cloudinary_media_library_widget\Form\CloudinaryUploadForm::create()
#2 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(195): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()
#3 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(232): Drupal\Core\Form\FormBuilder->getFormId()
#4 /var/www/html/docroot/core/modules/media_library/src/MediaLibraryUiBuilder.php(313): Drupal\Core\Form\FormBuilder->buildForm()
#5 /var/www/html/docroot/core/modules/media_library/src/MediaLibraryUiBuilder.php(160): Drupal\media_library\MediaLibraryUiBuilder->buildMediaTypeAddForm()
#6 /var/www/html/docroot/core/modules/media_library/src/MediaLibraryUiBuilder.php(126): Drupal\media_library\MediaLibraryUiBuilder->buildLibraryContent()
#7 /var/www/html/docroot/core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php(822): Drupal\media_library\MediaLibraryUiBuilder->buildUi()
#8 [internal function]: Drupal\media_library\Plugin\Field\FieldWidget\MediaLibraryWidget::openMediaLibrary()
#9 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#10 /var/www/html/docroot/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(112): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#11 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#12 /var/www/html/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#13 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(239): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#14 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#15 /var/www/html/docroot/modules/contrib/force_password_change/src/Service/ForcePasswordChangeRedirectMiddleware.php(43): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Drupal\force_password_change\Service\ForcePasswordChangeRedirectMiddleware->handle()
#17 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#18 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#19 /var/www/html/docroot/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#20 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#21 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#22 /var/www/html/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle()
#23 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle()
#24 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#25 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#26 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#27 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#28 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
#29 {main}

Steps to reproduce

Create Media Entity using Media Field on Content Type or Taxonomy.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States suthagar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024