Unable to use Confluence upon adding some customizations in "Custom HTML"
A blank page is displayed when Confluence is accessed through the browser right after adding customizations within Confluence Admin > Custom HTML.
Please try to access the Confluence Admin page using the URL below. If you do not receive a blank screen, remove the customizations, otherwise proceed to the resolution.
- http://<Confluence URL>/admin/viewcustomhtml.action
If you are able to access the link above, please read the KB article: Customized HTML Breaks the 'Edit Custom HTML' Page
One of the many causes that makes Confluence to present a blank screen is when a <script> tag in your Custom HTML is open and not properly closed.
As the Confluence UI is not usable, the customizations in "custom HTML" need to be removed through the Confluence database directly. Before proceeding, please ensure that you have a full backup of your Confluence database.
- Shutdown Confluence
Run the following SQL query against your database:
SELECT bandanavalue FROM bandana WHERE bandanakey = 'atlassian.confluence.settings';
- You can copy the result into a text editor, and locate <customHtmlSettings>...</customHtmlSettings> tag as it contains the customizations added to Custom HTML.
To reset this, you need to remove the customizations added, and your customHtmlSettings should look like:
<customHtmlSettings> <beforeHeadEnd></beforeHeadEnd> <afterBodyStart></afterBodyStart> <beforeBodyEnd></beforeBodyEnd> </customHtmlSettings>
Make sure all the tags are complete and properly enclosed, and you have only removed the added codes.
After that you need to update your Confluence database with the modified settings. To do that you can run the following query
You must copy the whole settings and replace <modified_settings> with.
UPDATE bandana SET bandanavalue = '<modified_settings>' WHERE bandanakey = 'atlassian.confluence.settings';
- Start Confluence