- Status changed to Needs review
over 1 year ago 8:42am 19 January 2023
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)
Needs review
1.0
Core
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.