We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12372
    • 44 Posts
    Hi all,

    So I have three GetResources on a page. Each churning out a list from a different section.

    The call:

    [[getResources? &parents=`858` &depth=`1` &tpl=`Episode list` &limit=`30` &sortby=`menuindex` &sortdir=`asc` &includeTVs=`1` &processTVs=`1`]]

    I can get away with 2 on a page, but 3+ and it topples over. Chrome reckons 500 error, but Firefox seems to just display a blank page.

    There’s only 22 resources in each container, so not talking about a lot! The tpl chunk is just showing the page name and URL (I want to include TV information, hence that at the end).

    Similarly if I output the entire tree it also topples over.

    Any thoughts?

    My PHP memory_limit is 2048M.
      • 12372
      • 44 Posts
      Okay, kinda answering my own question - it was a script execution time limit. Upped that in PHP and everything it was fine albeit slow.

      I’m curious... could it be that I have a lot of template variables? Even if I’m not necessarily including them in the chunk, would that make it harder work for GetResources?

      Thanks all.
        • 12236
        • 48 Posts
        Digital Butter - MODX Premiere Partners Reply #3, 15 years, 2 months ago
        Quote from: hostile17 at Jul 30, 2011, 09:28 AM

        Okay, kinda answering my own question - it was a script execution time limit. Upped that in PHP and everything it was fine albeit slow.

        I’m curious... could it be that I have a lot of template variables? Even if I’m not necessarily including them in the chunk, would that make it harder work for GetResources?

        Thanks all.

        What’s in the chunk? Sometimes if you have placeholders that don’t exist, you can send the parser a bit screwy.
          • 12372
          • 44 Posts
          Hello,

          This is the chunk:

          <li><a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a>

          Trailing li missing it seems, not that that’d cause any issues.

          Thanks