- Status changed to Fixed
about 2 years ago 6:57pm 18 January 2023 Automatically closed - issue fixed for 2 weeks with no activity.
When using PHP 8.1, the static callback will cause deprecated warning.
Deprecated function: Calling static trait method Drupal\content_moderation_bypass\ContentModerationBypassTrait::permissionForWorkflow is deprecated, it should only be called on a class using the trait in Drupal\content_moderation_bypass\Plugin\WorkflowType\ContentModerationBypass->getTransitionsForState() (line 63 of /var/www/html/docroot/modules/contrib/content_moderation_bypass/src/Plugin/WorkflowType/ContentModerationBypass.php) [7851867d-9b9b-4e0a-9d19-056c71927a47]
#0 /var/www/html/docroot/modules/contrib/content_moderation_bypass/src/Plugin/WorkflowType/ContentModerationBypass.php(63): Drupal\error_page\ErrorPageErrorHandler::handleError(8192, 'Calling static ...', '/var/www/html/d...', 63)
#1 /var/www/html/docroot/core/modules/workflows/src/State.php(99): Drupal\content_moderation_bypass\Plugin\WorkflowType\ContentModerationBypass->getTransitionsForState('published')
#2 /var/www/html/docroot/core/modules/content_moderation/src/ContentModerationState.php(111): Drupal\workflows\State->getTransitions()
#3 /var/www/html/docroot/modules/contrib/content_moderation_bypass/src/ContentModerationBypass/ContentModerationBypassStateTransitionValidation.php(28): Drupal\content_moderation\ContentModerationState->getTransitions()
#4 /var/www/html/docroot/core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php(143): Drupal\content_moderation_bypass\ContentModerationBypass\ContentModerationBypassStateTransitionValidation->getValidTransitions(Object(Drupal\node\Entity\Node), Object(Drupal\Core\Session\AccountProxy))
#5 /var/www/html/docroot/core/lib/Drupal/Core/Field/WidgetBase.php(353): Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget->formElement(Object(Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList), 0, Array, Array, Object(Drupal\Core\Form\FormState))
#6 /var/www/html/docroot/core/lib/Drupal/Core/Field/WidgetBase.php(220): Drupal\Core\Field\WidgetBase->formSingleElement(Object(Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList), 0, Array, Array, Object(Drupal\Core\Form\FormState))
#7 /var/www/html/docroot/core/lib/Drupal/Core/Field/WidgetBase.php(111): Drupal\Core\Field\WidgetBase->formMultipleElements(Object(Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList), Array, Object(Drupal\Core\Form\FormState))
#8 /var/www/html/docroot/core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php(112): Drupal\Core\Field\WidgetBase->form(Object(Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList), Array, Object(Drupal\Core\Form\FormState), NULL)
#9 /var/www/html/docroot/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(181): Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget->form(Object(Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList), Array, Object(Drupal\Core\Form\FormState))
#10 /var/www/html/docroot/core/lib/Drupal/Core/Entity/ContentEntityForm.php(121): Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object(Drupal\node\Entity\Node), Array, Object(Drupal\Core\Form\FormState))
#11 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityForm.php(106): Drupal\Core\Entity\ContentEntityForm->form(Array, Object(Drupal\Core\Form\FormState))
#12 /var/www/html/docroot/core/modules/layout_builder/src/Form/OverridesEntityForm.php(99): Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#13 [internal function]: Drupal\layout_builder\Form\OverridesEntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState), Object(Drupal\layout_builder_at\Plugin\SectionStorage\TranslatableOverridesSectionStorage))
#14 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(531): call_user_func_array(Array, Array)
#15 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm('node_landing_pa...', Object(Drupal\Core\Form\FormState))
#16 /var/www/html/docroot/modules/contrib/autosave_form/src/Form/AutosaveFormBuilder.php(97): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\layout_builder\Form\OverridesEntityForm), Object(Drupal\Core\Form\FormState))
#17 /var/www/html/docroot/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\autosave_form\Form\AutosaveFormBuilder->buildForm(Object(Drupal\layout_builder\Form\OverridesEntityForm), Object(Drupal\Core\Form\FormState))
#18 /var/www/html/docroot/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#19 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#20 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#21 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#23 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#24 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(159): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#25 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#26 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /var/www/html/docroot/modules/contrib/error_page/src/StackMiddleware/StackMiddlewareErrorPage.php(43): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\error_page\StackMiddleware\StackMiddlewareErrorPage->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.