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.

  • 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>
    

    (warning) 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

    (info) You must copy the whole settings and replace <modified_settings> with.

     UPDATE bandana SET bandanavalue = '<modified_settings>' WHERE bandanakey = 'atlassian.confluence.settings';
  • Confluence を起動します。
最終更新日: 2016 年 2 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.