Error on install: Undefined constant "Drupal\cohesion_sync\Controller\ENTRY_EXISTING_ASK"

Created on 21 June 2022, over 3 years ago
Updated 24 August 2023, about 2 years ago

Problem/Motivation

I tried to install this module for the first time. While it was attempting to import config, it threw this error:
Error: Undefined constant "Drupal\cohesion_sync\Controller\ENTRY_EXISTING_ASK" in Drupal\cohesion_sync\Controller\BatchImportController::setImportBatch() (line 297 of /mnt/www/html/inspacemacanhofr6uye/docroot/modules/contrib/cohesion/modules/cohesion_sync/src/Controller/BatchImportController.php)

#0 [internal function]: Drupal\cohesion_sync\Controller\BatchImportController::setImportBatch('modules/contrib...', 'drush_sync_vali...', true, false, false, false, false, Array)
#1 /mnt/www/html/inspacemacanhofr6uye/docroot/core/includes/batch.inc(295): call_user_func_array('\\Drupal\\cohesio...', Array)
#2 /mnt/www/html/inspacemacanhofr6uye/docroot/core/includes/batch.inc(137): _batch_process()
#3 /mnt/www/html/inspacemacanhofr6uye/docroot/core/includes/batch.inc(93): _batch_do()
#4 /mnt/www/html/inspacemacanhofr6uye/docroot/core/modules/system/src/Controller/BatchController.php(55): _batch_page(Object(Symfony\Component\HttpFoundation\Request))
#5 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request))
#6 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#7 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#8 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#9 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#10 /mnt/www/html/inspacemacanhofr6uye/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /mnt/www/html/inspacemacanhofr6uye/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#12 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /mnt/www/html/inspacemacanhofr6uye/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /mnt/www/html/inspacemacanhofr6uye/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /mnt/www/html/inspacemacanhofr6uye/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /mnt/www/html/inspacemacanhofr6uye/docroot/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /mnt/www/html/inspacemacanhofr6uye/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#21 {main}

My site is running Drupal 9.3.15 on PHP 8.0.16.

Steps to reproduce

I attempted the install twice: once with Webform Node (since it's a requirement) and once without. I got the same error both times. Manually using the legacy import seemed to work, and afterwards I could use the new component.

Proposed resolution

Upgrade to the newer package container, which can include dependencies like thumbnails.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇨🇦Canada mandclu

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024