I installed a new instance of Confluence 3.5.13 on a new box and pointed it to a new Postgres database. Everything worked perfectly.
I stopped the new instance and migrated all of my data from another Confluence instance. All tables copied perfectly.
When I brought the new Confluence version up, all I got was a white page with this error:
Error occurred during template rendering: Invocation of method 'getLogoForGlobalcontext' in class $Proxy45 threw exception org.springframework.orm.hibernate.HibernateObjectRetrievalFailureException: No row with the given identifier exists: 0, of class: com.atlassian.confluence.core.ContentEntityObject; nested exception is net.sf.hibernate.UnresolvableObjectException: No row with the given identifier exists: 0, of class: com.atlassian.confluence.core.ContentEntityObject at template/includes/macros.vm line 1651, column 43 . Contact your administrator for assistance.
I assume this is related to the migration, but everything migrated perfectly with no errors so I am unsure what I did to cause this error.