- Issue created by @kdborg@gmail.com
- 🇨🇦Canada joseph.olstad
hmm, k, I'll have to take a look soon and fix this.
If you've already fixed it, let me know.
- 🇨🇦Canada arakwar
The same issues showed up when we updated from 3.0.0-beta12 to beta13. Rolling back to beta12 fix the issue.
-
joseph.olstad →
committed d8c99985 on 3.0.x
Issue #3495714 by kdborg@gmail.com, arakwar: confirmationDialog_publish...
-
joseph.olstad →
committed d8c99985 on 3.0.x
- 🇨🇦Canada joseph.olstad
Please try 3.0.0-beta14, I hope it fixes the problem.
Please let me know if this helps.
https://www.drupal.org/project/moderated_content_bulk_publish/releases/3... →
-
joseph.olstad →
committed b2e49d6d on 3.0.x
Revert "Issue #3495714 by kdborg@gmail.com, arakwar:...
-
joseph.olstad →
committed b2e49d6d on 3.0.x
- 🇨🇦Canada joseph.olstad
Should be fixed now, I've reverted the offending code.
- 🇨🇦Canada kdborg@gmail.com
When I updated the module, I now get the following error when trying to bulk archive nodes:
The website encountered an unexpected error. Try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "archive_current_revision_action" plugin does not exist. Valid plugin IDs for Drupal\Core\Action\ActionManager are: email_registration_update_username, node_save_moderated_action:block_content, node_save_moderated_action:config_pages, node_save_moderated_action:file, node_save_moderated_action:media, node_save_moderated_action:menu_link_content, node_save_moderated_action:node, node_save_moderated_action:taxonomy_term, node_save_moderated_action:user, node_assign_owner_moderated_action, publish_latest_revision_action, pin_content_action, draft_current_revision_action, unpublish_current_revision_action, unpin_content_action, node_unpromote_action, node_promote_action, node_make_sticky_action, node_make_unsticky_action, redirect_delete_action, content_bulk_export, user_cancel_user_action, user_unblock_user_action, user_block_user_action, user_remove_role_action, user_add_role_action, vbo_cancel_user_action, views_bulk_operations_delete_entity, webform_unarchive_action, webform_close_action, webform_open_action, webform_submission_make_lock_action, webform_submission_make_unsticky_action, webform_archive_action, webform_submission_make_sticky_action, webform_submission_delete_action, webform_delete_action, webform_submission_make_unlock_action, pathauto_update_alias, action_send_email_action, entity:save_action:block_content, entity:save_action:config_pages, entity:save_action:file, entity:save_action:media, entity:save_action:menu_link_content, entity:save_action:node, entity:save_action:taxonomy_term, entity:save_action:user, entity:unpublish_action:block_content, entity:unpublish_action:linkcheckerlink, entity:unpublish_action:media, entity:unpublish_action:menu_link_content, entity:unpublish_action:node, entity:unpublish_action:path_alias, entity:unpublish_action:taxonomy_term, entity:unpublish_action:paragraph, entity:publish_action:block_content, entity:publish_action:linkcheckerlink, entity:publish_action:media, entity:publish_action:menu_link_content, entity:publish_action:node, entity:publish_action:path_alias, entity:publish_action:taxonomy_term, entity:publish_action:paragraph, action_goto_action, action_message_action, entity:delete_action:media, entity:delete_action:node, entity:delete_action:webform in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('archive_current_revision_action') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('archive_current_revision_action', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('archive_current_revision_action', Array) (Line: 62)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('archive_current_revision_action') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('archive_current_revision_action') (Line: 18)
Drupal\Core\Action\ActionPluginCollection->get('archive_current_revision_action') (Line: 88)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array) (Line: 104)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('archive_current_revision_action', Array) (Line: 55)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object, 'archive_current_revision_action', Array) (Line: 114)
Drupal\system\Entity\Action->getPluginCollection() (Line: 130)
Drupal\system\Entity\Action->getPlugin() (Line: 424)
Drupal\views\Plugin\views\field\BulkForm->viewsFormSubmit(Array, Object) (Line: 192)
Drupal\views\Form\ViewsFormMainForm->submitForm(Array, Object) (Line: 190)
Drupal\views\Form\ViewsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('views_form_content_page_1', Array, Object) (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 224)
Drupal\Core\Form\FormBuilder->getForm(Object, Object, Array) (Line: 2265)
Drupal\views\Plugin\views\display\DisplayPluginBase->elementPreRender(Array)
call_user_func_array(Array, Array) (Line: 113)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725 → ', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 870)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 432)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19) - 🇨🇦Canada kdborg@gmail.com
If I try to bulk unpublish current revision, I get this error:
The website encountered an unexpected error. Try again later.
TypeError: Drupal\moderated_content_bulk_publish\AdminModeratedContent::unpublish(): Argument #3 ($currentTranslationOnly) must be of type bool, null given, called in /var/www/html/docroot/modules/contrib/moderated_content_bulk_publish/src/Plugin/Action/UnpublishCurrentRevisionAction.php on line 44 in Drupal\moderated_content_bulk_publish\AdminModeratedContent->unpublish() (line 271 of modules/contrib/moderated_content_bulk_publish/src/AdminModeratedContent.php).
Drupal\moderated_content_bulk_publish\Plugin\Action\UnpublishCurrentRevisionAction->execute(Object) (Line: 67)
Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase->executeMultiple(Array) (Line: 152)
Drupal\system\Entity\Action->execute(Array) (Line: 444)
Drupal\views\Plugin\views\field\BulkForm->viewsFormSubmit(Array, Object) (Line: 192)
Drupal\views\Form\ViewsFormMainForm->submitForm(Array, Object) (Line: 190)
Drupal\views\Form\ViewsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('views_form_content_page_1', Array, Object) (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 224)
Drupal\Core\Form\FormBuilder->getForm(Object, Object, Array) (Line: 2265)
Drupal\views\Plugin\views\display\DisplayPluginBase->elementPreRender(Array)
call_user_func_array(Array, Array) (Line: 113)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725 → ', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 870)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 432)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19) - 🇨🇦Canada joseph.olstad
ok thanks for reporting those errors, I'll try to address them in the next couple days.
- 🇨🇦Canada joseph.olstad
Would be good to get some more info as mentioned in #12
- 🇨🇦Canada kdborg@gmail.com
Drupal: 10.3.10
Views Bulk Operations: 4.3.2
Nothing broken in the default admin/content view.
- 🇨🇦Canada joseph.olstad
kdborg, the archive_current_revision_action comes from this class in
moderated_content_bulk_publish/src/Plugin/Action/ArchiveCurrentRevisionAction.php
as for the issue noted in #11, that one I can probably patch for/ fix easily and you can try that when it's ready. With that said, you should probably delete the moderated_content_bulk_publish module and do a composer install to get it fresh again.
You may have misconfigured the bulk operation field though, this I've never heard of or seen what you have described in comment #10.
- 🇨🇦Canada joseph.olstad
kdborg, have a look at my comment in #15, see if that helps.
- 🇨🇦Canada kdborg@gmail.com
Version 2.0.34 is working now for me.
Comments #10 and #11 were done using v3 beta.
Automatically closed - issue fixed for 2 weeks with no activity.