When opening the preview modal, I get the following fatal error (excuse the ugly formatting of backtrace):
TypeError: Argument 2 passed to Drupal\paragraphs_previewer\Controller\ParagraphsPreviewController::onForm() must be of the type array, string given in Drupal\paragraphs_previewer\Controller\ParagraphsPreviewController->onForm() (line 39 of /app/drupal/web/modules/contrib/paragraphs_previewer/src/Controller/ParagraphsPreviewController.php) #0 [internal function]: Drupal\paragraphs_previewer\Controller\ParagraphsPreviewController->onForm('form-02le2KqO7R...', 'field_paragraph...') #1 /app/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #2 /app/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #3 /app/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext)
This happens when upgrading to 1.3. Reverting to 1.2 resolves the error.
Comments
Comment #2
recrit commented@jsst nice catch!
Cause:
Regression of #3008256: Coding standard.
Commit: https://cgit.drupalcode.org/paragraphs_previewer/commit/?id=a223392
Fix:
Update the onForm arguments to correctly represent the route args.
Comment #4
recrit commentedFixed in https://cgit.drupalcode.org/paragraphs_previewer/commit/?id=7e9dd57
Release 1.4 is snapped, it'll take a few minutes to show up on the project page.
Comment #5
jsst commentedConfirmed, 1.4 fixes the issue. Thanks!