Could not find root node

Sounds similar to these threads Changing type of Homepage-node causes Footer to throw an exception or How do I fix "Unable to find a valid document up in the document tree" without access to the backend?.