I needed to copy my multilanguage site to another domain, let's say copy site abc to site xyz.
These are the steps I followed:
1) clear cache on site abc
2) slqdump database site abc
3) create database xyz
4) import database abc into xyz
5) make a duplicate from webroot abc to xyz
6) make changes to settings.php for xyz
Unfortunately the home page is not comming up and I get next error:
 

Error: Call to a member function displaySubmitted() on null in template_preprocess_node() (line 582 of core/modules/node/node.module).
call_user_func_array() (Line: 285)
Drupal\Core\Theme\ThemeManager->render() (Line: 445)
Drupal\Core\Render\Renderer->doRender() (Line: 204)
Drupal\Core\Render\Renderer->render() (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 187)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

On the other hand when I enter any url on xyz the page is comming up as expected. So there is only a problem with my home page.
Under /admin/content I see the names of my home pages, but the content type is blank.
And under /admin/structure/types I  do not retrieve the content type my home page is created with. Instead here a content type named "missing" is added. And I can't manage the fields, display, permissions or delete it.
Any idea how to solve?

Comments

vm’s picture

Existing posts related to errror have you worked through?

jjgw’s picture

I followed posts on how to copy a site to another domain. There are just a few posts about the error message, they are years old and bring no solution to my problem.

vm’s picture

years old doesn't matter so long as they don't stretch back to Drupal 7.

you state that none of the results helped. Does that mean you scanned for nodes that may no longer be attached to a content type per : https://www.drupal.org/forum/support/post-installation/2018-06-22/gettin...

jjgw’s picture

Yes, I saw this post too, but I can't learn anything from it unless it has to do with a reference to an empty node.
The node exists in the source, so it should also exist in the target. Did I do something wrong in the steps I took for the transfer?
vm’s picture

steps are fine. Perhaps some corruption in the upload of database or one of the files. Have you tried again?

jjgw’s picture

Yes, I tried several times. In doing so, I noticed a difference in file size between a sqldump coming from a bash script and a sqldump via cli. In the script, the argument "--hex-blob" was used. And it was just this that caused the result of the import to fail. So everything ok then. Thanks