500 Error on Error: Call to a member function getSiteResolver() on null in Drupal\next\Controller\SitePreviewController->nodePreview() (line 71

Created on 7 September 2022, almost 2 years ago
Updated 13 March 2023, over 1 year ago

Steps -

Setup ACMS headless mode site
Visit the site home page
Click on "Preview" tab
Error is triggering because of SitePreviewController::nodePreview() line - $sites = $next_entity_type_config->getSiteResolver()->getSitesForEntity($revision);

As there is no nextjs site is configured (and also as per definition of getSiteResolver()), getSiteResolver() return NULL and thus the error.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇮🇳India joshi.rohit100 Delhi, India

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.

Production build 0.69.0 2024