Legacy Knowledge Base
Published Jul. 2, 2025

macro buildChildrenNavItems not found after an upgrade to 7.3

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • After an upgrade if a Site Navigation Menu Widget is added to a page with its default configuration you could see the following error:
    The following has evaluated to null or missing:
    ==> buildChildrenNavItems  [in template "10114#26427#18786775" at 
    line 67, column 67]

Environment

  • Liferay DXP 7.3+

Resolution

  • The root cause of this problem is that this macro was added to the file portlet_display_template_navigation_menu_macro.ftl under LPS-113994 but this template was customized manually in your system in previous versions.
  • In this case the system will use this custom value instead of the default one (the ftl file) and if a template tries to use the macro (for example, Site Navigation Menu Widget default template) this error appears.
  • To solve it:
    • Go to Design > Widget Templates
    • Search for "macro" in the search bar
    • Check if the Navigation Common Macros template has the buildChildrenNavItems macro.
    • If the macro is not in the Widget Template code, click on edit button and copy and paste the macro from this link: buildChildrenNavItems macro
    • Save

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base