legacy-knowledge-base
公開されました Jul. 2, 2025

7.3へのアップグレード後にbuildChildrenNavItemsマクロが見つからない。

written-by

Roberto Díaz

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • アップグレード後、 Site Navigation Menu Widget をデフォルト設定のページに追加した場合、以下のエラーが発生することがあります:
    The following has evaluated to null or missing:
    ==> buildChildrenNavItems  [in template "10114#26427#18786775" at 
    line 67, column 67]

Environment

  • Liferay DXP 7.3+

解決策

  • この問題の根本的な原因は、このマクロが portlet_display_template_navigation_menu_macro.ftl under LPS-113994 に追加されたが、このテンプレートは以前のバージョンであなたのシステムで手動でカスタマイズされていたことです。
  • この場合、システムはデフォルトの値(ftlファイル)の代わりにこのカスタム値を使用し、テンプレートがマクロを使用しようとすると(例: Site Navigation Menu Widget default template)、このエラーが表示されます。
  • それを解決するために
    • デザイン > ウィジェットテンプレートに移動します。
    • 検索バーで "マクロ" を検索してください。
    • Navigation Common Macros テンプレートに buildChildrenNavItems マクロがあるかどうかを確認する。
    • マクロが Widget Template のコードにない場合は、編集ボタンをクリックし、以下のリンクからマクロをコピー&ペーストしてください: buildChildrenNavItems マクロ
    • 保存

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base