This template works fine on PHP 5.3.x:
{exp:stash:set parse_tags="yes" conditionals="yes"}
{stash:st_content}
{exp:channel:entries
channel="people"
url_title="{segment_3}"
dynamic="no"
disable="categories|member_data|pagination|trackbacks"
}
{exp:playa:parents
channel="projects"
disable="member_data|pagination|trackbacks"
}
…
{/exp:playa:parents}
{/exp:channel:entries}
{/stash:st_content}
{/exp:stash:set}
but after upgrading to PHP 5.4.x, each project instead outputs the name of the people entry and no other content.
Anyone know why?
EDIT:
It seems that Stash isn't actually to blame here because if I remove Stash tags I get the same thing.
My expected output at a URL like /project/by/persons-name/ would be
- Project A
- Project B
etc. with only projects assigned to that person via the Playa field.
Instead, what I'm getting is
- Person's Name
- Person's Name
etc. for every entry in the projects channel.
The updated template with Stash taken out looks like:
{exp:channel:entries
channel="people"
url_title="{segment_3}"
dynamic="no"
disable="categories|member_data|pagination|trackbacks"
}
{exp:playa:parents
channel="projects"
disable="member_data|pagination|trackbacks"
}
…
{/exp:playa:parents}
{/exp:channel:entries}