Score:0

Error: Call to a member function getTranslation() on null

cn flag
Rob

I'm trying to migrate/rebuild my Drupal 7 site in Drupal 9. Started with an empty Drupal 9 site set to minimal rather than standard installation and used Migrate / Migrate Drupal / Migrate Drupal UI to upgrade the site. On the new, drupal 9 site, it looks like the content and content types came over (though I have not figured out/rebuilt Views, Contexts, or Taxonomies yet).

If I click on 'create new' for any of the content types, however, I receive the error message: The website encountered an unexpected error. Please try again later. Error: Call to a member function getTranslation() on null in Drupal\node\NodeViewBuilder::renderLinks() (line 100 of core/modules/node/src/NodeViewBuilder.php). This error happens with all content types, whether standard articles, basic pages, or any custom content types.

(not sure if this is related, but if I click 'create a new content type', I can create a new content type that shows up in list of content types, but when I click Save and Manage fields, it just shows me the Body field and never gives me the opportunity to add additional fields)

I do have composer and drush setup in PuTTY if those can help fix or troubleshoot. Would welcome any advice.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.