TypeError when attempting to preview content in review

Created on 20 June 2018, almost 6 years ago
Updated 19 January 2023, over 1 year ago

Receiving the following error when attempting to preview a node that is currently in "Review" status.

Previewing menu links and taxonomy terms work correctly. The nodes throwing this error are built using Paragraphs.

Provider: tmgmt_acclaro

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\tmgmt_content\Controller\ContentTranslationPreviewController::makePreview() must implement interface Drupal\Core\Entity\ContentEntityInterface, string given, called in /var/www/aaa/docroot/modules/contrib/tmgmt/sources/content/src/Controller/ContentTranslationPreviewController.php on line 144 in Drupal\tmgmt_content\Controller\ContentTranslationPreviewController->makePreview() (line 115 of modules/contrib/tmgmt/sources/content/src/Controller/ContentTranslationPreviewController.php).
Drupal\tmgmt_content\Controller\ContentTranslationPreviewController->makePreview('3299', Array, 'ja') (Line: 144)
Drupal\tmgmt_content\Controller\ContentTranslationPreviewController->makePreview(Object, Array, 'ja') (Line: 68)
Drupal\tmgmt_content\Controller\ContentTranslationPreviewController->preview(Object, 'full')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 57)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Core

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Needs review over 1 year ago
Production build 0.69.0 2024