We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6949 ☆ A M B ☆
    • 19 Posts
    Hi MODXers, having a weird problem. I've got a getResources call in context web like this:

    [[getResources? &parents=`5,128` &tpl=`gr.splash_event_li` &includeTVs=`1` &processTVs=`1` &includeContent=`1`]]
    


    and it dumps out a getResources array of the results rather than populating the tpl and displaying it. The two parents (5, 128 ) are in two other contexts. Here is the tpl being called:

    			..removed..
    


    I've tried replacing the chunk contents with just a string of text with no success. I'm using MODX 2.2, gR 1.4.2, and I've defined context-specific settings in the other two contexts:

    base_url
    filemanager_path
    http_host
    site_start
    site_url
    


    Can anyone see anything weird? Do I need to get my classes checked again?

    Thanks!

    Scott

    PS: The anchor tag in the chunk appears to be gobbled by the code RTE -- shouldn't be important, anyway.
    PPS: Server Information:
    Web Server:
    ..removed..
    
    MODx:
    * 2.2.0pl
    * Context changes above
    * I`ve got phpthumbof, getResources, tinymce, and autofiximagesize installed
    
    [ed. note: deezine.ca last edited this post 14 years, 7 months ago.]
      • 6949 ☆ A M B ☆
      • 19 Posts
      Hmm, a possible lead -- looks like when I turn off category ACL permissions it works. Looks like an ACL policy issue, folks smiley
        • 3749
        • 24,544 Posts
        Was one of the category ACL entries for a category that getResources or the Tpl chunk was in?


        ---------------------------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
        MODX info for everyone: http://bobsguides.com/modx.html
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 6949 ☆ A M B ☆
          • 19 Posts
          Hi Bob,

          You are correct! I was working on a site from when I was learning ACL -- apparently, I hadn't learned it well enough at the time when I was building the site. In hindsight, it is actually pretty strange that as much of the site was visible based on the permissions smiley

          Thanks for the follow-up! Mystery solved. Whenever I feel like one of my sites is haunted, it's always ACLs.

          Scott