We're using this module and recently upgraded our core from D9 to D10. We've installed this patch. This module currently fails for us on D10. When attempting to create or edit any node with this module enabled, we are presented with the following exception error, I will document this as a separate bug ticket as well
The website encountered an unexpected error. Please try again later.
InvalidArgumentException: Expected a scalar value as a 2nd argument to "Symfony\Component\HttpFoundation\InputBag::get()", "array" given. in Symfony\Component\HttpFoundation\InputBag->get() (line 31 of /opt/drupal/web/vendor/symfony/http-foundation/InputBag.php).
Drupal\require_on_publish\Plugin\Validation\Constraint\RequireOnPublishValidator->validate(Object, Object) (Line: 202)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateConstraints(Object, '0000000000000c940000000000000000', Array) (Line: 154)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object, Array, 1) (Line: 106)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object, NULL, NULL) (Line: 93)
Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object) (Line: 132)
Drupal\Core\TypedData\TypedData->validate() (Line: 489)
Drupal\Core\Entity\ContentEntityBase->validate() (Line: 248)
Drupal\Core\Entity\Entity\EntityFormDisplay->validateFormValues(Object, Array, Object) (Line: 2322)
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->massageFormValues(Array, Array, Object) (Line: 395)
Drupal\Core\Field\WidgetBase->extractFormValues(Object, Array, Object) (Line: 2382)
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->extractFormValues(Object, Array, Object) (Line: 237)
Drupal\Core\Entity\Entity\EntityFormDisplay->extractFormValues(Object, Array, Object) (Line: 334)
Drupal\Core\Entity\ContentEntityForm->copyFormValuesToEntity(Object, Array, Object) (Line: 293)
Drupal\Core\Entity\EntityForm->buildEntity(Array, Object) (Line: 155)
Drupal\Core\Entity\ContentEntityForm->buildEntity(Array, Object) (Line: 186)
Drupal\Core\Entity\ContentEntityForm->validateForm(Array, Object)
call_user_func_array(Array, Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 275)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'node_result_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('node_result_form', Array, Object) (Line: 591)
Drupal\Core\Form\FormBuilder->processForm('node_result_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 686)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)I believe I've resolved the issue. Created a patch below and attached a inter diff text file for review.
- Status changed to RTBC
over 1 year ago 12:45am 26 April 2023 - 🇫🇮Finland zHelmet
Had problems with this patch, i got error saying
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "status" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle()
. Found out that we need to use all instead of get from request object. - First commit to issue fork.
- 🇺🇸United States moshe weitzman Boston, MA
LGTM. How about we merge and make a D10 compatible release?
- last update
over 1 year ago Composer require failure - last update
over 1 year ago Composer require failure - Assigned to bakop
- Status changed to Active
over 1 year ago 8:33am 27 July 2023 - 🇫🇷France bakop Lille
Hi, the patch is not applicable on my side, there is an error on composer.
I'm working on new version of this patch. - @bakop opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:46am 27 July 2023 - @bakop opened merge request.
- Status changed to Active
over 1 year ago 9:06am 27 July 2023 - Status changed to Needs review
over 1 year ago 9:08am 27 July 2023 - Status changed to RTBC
over 1 year ago 12:56pm 3 August 2023 Patch applies and looks good.
Marking as RTBC so we can get a D10 compatible release soon 🤞
-
bakop →
committed 15784386 on 8.x-1.x authored by
zHelmet →
Issue #3289335: Automated Drupal 10 compatibility fixes
-
bakop →
committed 15784386 on 8.x-1.x authored by
zHelmet →
- Status changed to Fixed
about 1 year ago 2:14am 5 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.