Confluence DC editor is blank after Upgrading
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After upgrading from Confluence 3.5, the editor comes up blank for all upgraded pages and only the page title is shown. Newly created pages are not affected
Diagnosis
The following appears in the atlassian-confluence.log
(also thrown when re-indexing):
1
java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('Page Title') was 'WIKI' but was expected to be 'XHTML'
or
1
java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('Page Title') was 'BodyType:WIKI' but was expected to be 'BodyType:XHTML'
Cause
Confluence was not able to complete the content migration from WIKI to XHTML during the upgrade. This can often be due to plugins which are now incompatible with your version of Confluence.
Solution
Resolution
Go to General Configuration > Manage Add-ons
Update all plugins which have an update available
If any plugins are listed as Incompatible, remove them
Re-run the content migration following instruction here.
Search your atlassian-confluence.log for '
Wiki to XHTML Exception Report
'Go through the pages that are listed in the report output and remove the unknown macros from them. If the macros come from a plugin that is no longer compatible with your version of Confluence and does not have an update available, uninstall it.
If these are user macros, upgrade them to XHTML.
Re-run the content migration again
Was this helpful?