Skip to content

Multiple wayfinders in single resource after 2.2.0 -> 2.2.1 update #49

@BigBlockStudios

Description

@BigBlockStudios

I'm getting php errors when calling wayfinder like this in the same resource after 2.2.0 -> 2.2.1 update

[ [WayFinder?
&startId=0
&level=1
&displayStart=1
&textOfLinks=menutitle
&excludeDocs=7,8,9,10,11,12,13,16,17,18,19,29
&outerTpl=MainNavPrimaryOuterTpl
&rowTpl=MainNavPrimaryRowTpl
]]

[ [WayFinder?
&startId=0
&level=1
&displayStart=0
&textOfLinks=menutitle
&excludeDocs=1,2,3,4,5,6,16,17,18,19
&outerTpl=MainNavSecondaryOuterTpl
&rowTpl=MainNavSecondaryRowTpl
]]

he error is: Notice: Undefined index: modx.user.id in /var/www/vhosts/domain.com/httpdocs/core/components/wayfinder/wayfinder.class.php on line 340

If I remove one wayfinder call, the error goes away.

-thanks
-sean

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions