Publishing Warningsクイック アクションにおけるエラーについて


説明

コンテンツ エディターのクイック アクション バーで「Publishing Warnings」を有効にした場合、エラー アイコンとともに「クイック アクションPublishingWarningsのレンダリングに失敗しました」メッセージが表示される場合があります。この事象は、現在のコンテンツ言語において、選択されたアイテムのすべてのバージョンが非表示・パブリッシュ不可になっている場合に発生する可能性があります。

同時に、下記の例外がログ ファイルに出力されます:
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Sitecore.Kernel
at Sitecore.Shell.Applications.ContentEditor.Gutters.PublishingWarnings.GetTooltip(Item item)
at Sitecore.Shell.Applications.ContentEditor.Gutters.PublishingWarnings.GetIconDescriptor(Item item)
at Sitecore.Shell.Applications.ContentEditor.Gutters.GutterRenderer.Render(HtmlTextWriter output, Item item)

解決策

  1. /binフォルダーにSitecore.Support.318916.dllを配置します。
  2. Sitecoreクライアントをデスクトップ表示で開きます。
  3. データベースを「core」に切り替えます。
  4. コンテンツ エディターを開き、下記のアイテムに移動します:
    /sitecore/content/Applications/Content Editor/Gutters/Publishing Warnings
  5. タイプ フィールドの内容を下記の値に置き換え、変更を保存します:
    Sitecore.Support.Shell.Applications.ContentEditor.Gutters.PublishingWarnings,Sitecore.Support.318916