What’s in your latestPostsTpl?
Is there anything for getResources to find (ie published resources that are not containers under resource 20)? I can’t remember what you have to do wrong that triggers this issue, but it will be easily fixable (when I remember what it was!).
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
Cipa’s response rings a bell - check the case and spelling of your tpl chunk name - I think it’s the same behaviour if it can’t find the specified tpl.
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
-
MODX Staff
- 12,272 Posts
And make sure there’s no extra spaces. There’s a 99.9% chance it’s a problem with the template chunk name.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
if you’re reading this and if Ryan’s reply doesn’t fit to you, please be sure that you didn’t quick-create or quick-edit the needed template by pasting its code in the "Description" field. Yes that just happened to me. Now beat me if my post is useless
Sorry for that ⇧ , I'm no dev but I wanna try