HTML Export Only Displays $rendererBean.exportWikiToXHtml($page) as The Content

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

Symptoms

After exporting Page or Space to HTML, the content of the pages displayed nothing but:

$rendererBean.exportWikiToXHtml($page)

(Auto-migrated image: description temporarily unavailable)

Cause

There is a custom or incompatible Export Layout either in the Global level or in the affected Spaces level.

Resolution

  1. Run the following SQL query to detect the culprit:

    SELECT DECORATORID, SPACEKEY FROM DECORATOR WHERE BODY LIKE '%$rendererBean.exportWikiToXHtml($page)%';

    Note down the DECORATORID from the result.

  2. Backup Confluence database or just simply backup the custom layout in the above result if necessary

  3. Delete them by running this query:

    DELETE FROM DECORATOR WHERE DECORATORID = Decorator-ID-From-The-Above-Result;
  4. Restart Confluence

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.