Closed (duplicate)
Project:
Purge
Version:
8.x-3.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2023 at 11:23 UTC
Updated:
16 Nov 2023 at 15:26 UTC
Jump to comment: Most recent
I updated the module to 3.5 and it is breaking a deployment on Acquia due to DrushQueueWorkProcessor doesn't exist.
Note that I also use acquia_purge on top of the Purge module on Acquia Cloud.
Drush 12.3.0.0
Drupal 10.1
Purge: 3.5
Acquia Purge: 1.3
PHP 8.2
Acquia Cloud
Fatal error: Uncaught Drupal\Component\Plugin\Exception\PluginException: Plugin (drush_purge_queue_work) instance class "Drupal\purge_drush\Plugin\Purge\Processor\DrushQueueWorkProcessor" does not exist. in /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php:97
Stack trace:
#0 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(17): Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass()
#1 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#2 /var/www/html/docroot/modules/contrib/purge/src/IteratingServiceBaseTrait.php(35): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#3 /var/www/html/docroot/modules/contrib/purge/src/Plugin/Purge/Processor/ProcessorsService.php(52): Drupal\purge\Plugin\Purge\Processor\ProcessorsService->initializePluginInstances()
#4 /var/www/html/docroot/modules/contrib/purge/modules/purge_processor_lateruntime/src/EventSubscriber/LateRuntimeProcessor.php(64): Drupal\purge\Plugin\Purge\Processor\ProcessorsService->get()
#5 /var/www/html/docroot/modules/contrib/purge/modules/purge_processor_lateruntime/src/EventSubscriber/LateRuntimeProcessor.php(82): Drupal\purge_processor_lateruntime\EventSubscriber\LateRuntimeProcessor->initialize()
#6 [internal function]: Drupal\purge_processor_lateruntime\EventSubscriber\LateRuntimeProcessor->onKernelTerminate()
#7 /var/www/html/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#8 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(116): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#9 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(63): Symfony\Component\HttpKernel\HttpKernel->terminate()
#10 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(688): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate()
#11 /var/www/html/vendor/drush/drush/src/Boot/DrupalBoot8.php(326): Drupal\Core\DrupalKernel->terminate()
#12 [internal function]: Drush\Boot\DrupalBoot8->terminate()
#13 {main}
thrown in /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php on line 97
Comments
Comment #2
milovan commentedComment #3
milovan commentedComment #4
bburgI ran into a similar error after updating drush and Drupal core. Clearing the cache/running database updates seems to have cleared it for me.
Comment #5
Coop920 commented#4 also worked for me. Ran into an error and then ran update.php . No updates were made, but the error did go away. Thanks!
Comment #6
nicxvan commentedI think this is related to the issue I opened that I just tagged. I think I have an idea of what is happening, I'm working on documenting it on the other ticket.
Comment #7
japerryYup definitely related.
Comment #8
japerryThe issue here is the plugins that were moved are still cached which is causing the error. The next version needs to bring back those plugins and then figure out a way to show them as deprecated so sites start using the new plugin instead.
Comment #9
baluertl@milovan, @bburg, @Coop920 please follow the updates on the related ticket: #3397227-21: Update to 3.5 replaces purge_drush but does not disable it.