Error When trying to insert after selecting image from cloudinary dilogue box

Created on 8 September 2023, over 1 year ago
Updated 4 April 2024, 9 months ago

Problem/Motivation

hi i just test the 3-beta version released and having the below error. Any help to understand what is the problem would be welcome.

TypeError: Cloudinary\ArrayUtils::safeFilter(): Argument #1 ($input) must be of type array, bool given, called in /app/vendor/cloudinary/transformation-builder-sdk/src/Utils/ArrayUtils.php on line 553 in Cloudinary\ArrayUtils::safeFilter() (line 226 of /app/vendor/cloudinary/transformation-builder-sdk/src/Utils/ArrayUtils.php)

#0 /app/vendor/cloudinary/transformation-builder-sdk/src/Utils/ArrayUtils.php(553): Cloudinary\ArrayUtils::safeFilter(false)
#1 /app/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Qualifier/QualifiersAction.php(89): Cloudinary\ArrayUtils::mergeNonEmpty(Array, false)
#2 /app/vendor/cloudinary/transformation-builder-sdk/src/Transformation/BaseAction.php(55): Cloudinary\Transformation\QualifiersAction->addQualifiers(false)
#3 /app/vendor/cloudinary/transformation-builder-sdk/src/Transformation/CommonTransformationTrait.php(89): Cloudinary\Transformation\BaseAction->__construct(false)
#4 /app/docroot/modules/contrib/cloudinary/modules/cloudinary_stream_wrapper/src/StreamWrapper/CloudinaryStreamWrapper.php(387): Cloudinary\Asset\Image->addActionFromQualifiers(false)
#5 /app/docroot/modules/contrib/cloudinary/modules/cloudinary_stream_wrapper/src/StreamWrapper/CloudinaryStreamWrapper.php(171): Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper->getExternalUrl('cloudinary://st...')
#6 /app/docroot/modules/contrib/cloudinary/modules/cloudinary_stream_wrapper/src/StreamWrapper/CloudinaryStreamWrapper.php(230): Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper->loadResource('cloudinary://st...')
#7 /app/docroot/modules/contrib/cloudinary/modules/cloudinary_stream_wrapper/src/StreamWrapper/CloudinaryStreamWrapper.php(966): Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper->stat()
#8 [internal function]: Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper->url_stat('cloudinary://st...', 6)
#9 /app/docroot/core/modules/image/src/Entity/ImageStyle.php(273): file_exists('cloudinary://st...')
#10 /app/docroot/core/modules/image/image.module(199): Drupal\image\Entity\ImageStyle->flush('cloudinary://im...')
#11 /app/docroot/modules/contrib/crop/src/Entity/Crop.php(271): image_path_flush('cloudinary://im...')
#12 /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(597): Drupal\crop\Entity\Crop->postSave(Object(Drupal\crop\CropStorage), false)
#13 /app/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\crop\Entity\Crop), false)
#14 /app/docroot/modules/contrib/crop/src/CropStorage.php(27): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\crop\Entity\Crop), false)
#15 /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(523): Drupal\crop\CropStorage->doPostSave(Object(Drupal\crop\Entity\Crop), false)
#16 /app/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(804): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\crop\Entity\Crop))
#17 /app/docroot/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\crop\Entity\Crop))
#18 /app/docroot/modules/contrib/focal_point/src/FocalPointManager.php(100): Drupal\Core\Entity\EntityBase->save()
#19 /app/docroot/modules/contrib/focal_point/focal_point.module(99): Drupal\focal_point\FocalPointManager->saveCropEntity(50.0, 50.0, 1200, 1200, Object(Drupal\crop\Entity\Crop))
#20 /app/docroot/modules/contrib/focal_point/focal_point.module(54): focal_point_entity_update(Object(Drupal\media\Entity\Media))
#21 [internal function]: focal_point_entity_insert(Object(Drupal\media\Entity\Media))
#22 /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(426): call_user_func_array(Object(Closure), Array)
#23 /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object(Closure), 'focal_point')
#24 /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(433): Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_insert', Object(Closure))
#25 /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(251): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array)
#26 /app/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(900): Drupal\Core\Entity\EntityStorageBase->invokeHook('insert', Object(Drupal\media\Entity\Media))
#27 /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(598): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('insert', Object(Drupal\media\Entity\Media))
#28 /app/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\media\Entity\Media), false)
#29 /app/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(523): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\media\Entity\Media), false)
#30 /app/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(804): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\media\Entity\Media))
#31 /app/docroot/core/modules/media/src/MediaStorage.php(29): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\media\Entity\Media))
#32 /app/docroot/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\media\MediaStorage->save(Object(Drupal\media\Entity\Media))
#33 /app/docroot/core/modules/media_library/src/Form/AddFormBase.php(679): Drupal\Core\Entity\EntityBase->save()
#34 [internal function]: Drupal\media_library\Form\AddFormBase->submitForm(Array, Object(Drupal\Core\Form\FormState))
#35 /app/docroot/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array(Array, Array)
#36 /app/docroot/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#37 /app/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#38 /app/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm('media_library_a...', Array, Object(Drupal\Core\Form\FormState))
#39 /app/docroot/core/modules/media_library/src/MediaLibraryUiBuilder.php(313): Drupal\Core\Form\FormBuilder->buildForm('\\Drupal\\cloudin...', Object(Drupal\Core\Form\FormState))
#40 /app/docroot/core/modules/media_library/src/MediaLibraryUiBuilder.php(160): Drupal\media_library\MediaLibraryUiBuilder->buildMediaTypeAddForm(Object(Drupal\media_library\MediaLibraryState))
#41 /app/docroot/core/modules/media_library/src/MediaLibraryUiBuilder.php(126): Drupal\media_library\MediaLibraryUiBuilder->buildLibraryContent(Object(Drupal\media_library\MediaLibraryState))
#42 [internal function]: Drupal\media_library\MediaLibraryUiBuilder->buildUi(Object(Drupal\media_library\MediaLibraryState))
#43 /app/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#44 /app/docroot/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#45 /app/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#46 /app/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#47 /app/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#48 /app/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#49 /app/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /app/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /app/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /app/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#53 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#54 /app/docroot/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#55 /app/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#56 {main}

Steps to reproduce

  1. Create a Cloudinary media type with the provided storage
  2. From a node type add a Media reference to the created Media type
  3. After selecting the image from cloudinary dialogue box, clicking the save button doesn't react and above is the error i have at Drupal recent logs

🐛 Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇧🇯Benin delacosta456

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

Comments & Activities

Production build 0.71.5 2024