Skip to content

Issue with "show_overview" parameter in Structure. #4493

@runningwithscissors

Description

@runningwithscissors

Description of the problem

When using the show_overview="yes" parameter within Structure, I get the following Error in my local Herd environment: I was also able to replicate this on a separate unrelated server as well.

How To Reproduce

  1. Create a template in the CP and copy in the Structure Basic Nav markup from the following page:
    https://eeharbor.com/structure/documentation/navigation

  2. Add the following Structure Nav parameter so that your Nav tag is as follows:
    {exp:structure:nav_basic show_depth="4" show_overview="yes"}

  3. view rendered page in browser.

Error Messages

Deprecated
Automatic conversion of false to array is deprecated
ee/ExpressionEngine/Addons/structure/sql.structure.php, line 454
Severity: E_DEPRECATED

Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)
ee/ExpressionEngine/Boot/boot.common.php, line 478
Severity: E_WARNING

Screenshots / Videos / Template Code

<ul class="menu-item-list fw-500 p-0">
{exp:structure:nav_basic show_depth="2" show_overview="yes"}
  <li class="menu-item">
    <a href="{root:page_url}" class="inner-link nav-link">{root:title}</a>
        {if root:has_children}
        <span class="menu-toggle" role="button" data-bs-toggle="collapse" data-bs-target="#sub-menu-{root:count}" aria-expanded="false" aria-label="button"></span>
        <ul class="sub-menu2 collapse" id="sub-menu-{root:count}">
          {root:children}
          <li>
            <a href="{child:page_url}">{child:title}</a>
          </li>
          {/root:children}
        </ul>
        {/if}
  </li>
{/exp:structure:nav_basic}
</ul>

Environment Details:

  • EE Version: 7.4.11
  • PHP Version 8.3
  • MySQL Version 8.0.36
  • OS: MacOS 15
  • Web Server: Herd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions