I used in Drupal 8 and with version 8.x-2.6 this syntax to debug a pdf-print of a view with arguments:
mydrupal.de/print/view/pdf///debug?view_args[0]=
After Upgrade to Drupal 10 with version 8.x-2.11 I get this error:
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "view_args" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 81 of /path/vendor/symfony/http-kernel/HttpKernel.php).
How can i debug entity print pdf view with arguments?
This link for exampel gives me the right debug-view:
mydrupal.de/print/view/pdf/print/view/pdf/content/page_1/debug
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3352429.patch | 664 bytes | larowlan |
Comments
Comment #2
lissy commentedComment #3
larowlanPlease try the attached patch and report back.
Thanks!
Comment #4
lissy commentedHI @larowlan
Thanks for the patch, but the code
is already in the version 8.x-2.11.
Comment #5
larowlanI don't think so, check the line numbers, the patch is a diff against 8.x-2.11
Comment #6
kaszarobertI can confirm the patch fixes the issue. You have to use a URL like that:
If you try otherwise with the patch, you get
UnexpectedValueException: Unexpected value for parameter "view_args": expecting "array", got "string". in Drupal\Core\Http\InputBag->all() (line 31 of core/lib/Drupal/Core/Http/InputBag.php).Comment #7
gerzenstl commentedI can confirm patch from #3 works.
I tested in:
* Drupal 10.2.1
* Entity print 8.x-2.13
Comment #8
trickfun commentedPatch #3 works fine.
Thank you
Comment #9
jannakha commentedComment #10
vladimirausThanks everyone. Credits are granted as part of #3487001: "A client error happened" on views HTML debug page when the view has arguments in query params.