We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1441
    • 61 Posts
    Hi. I seem to have created a frightful problem for myself. Probably.

    The situation: while editing content in my site, I go back and forth from the live (public side) of the site to the manager, making changes, seeing how they look etc. Today, I went to another browser (one into which I was not logged in) and the site was bad. Really bad. Two cases came through:

    Case One ===
    The page loads - but all instances of 'getResources' belch out the whole var array. (usually trashing the page)

    Case Two ===
    The page loads - but only dumps the contents of *content.

    I assume this is a permissions problem, because when I login to the manager, everything, once reloaded, is fine - but I can't for the life of me what I nicked. (when creating permissions for a group of users, I even duped the template and made my own with the edits so as not do disturb the distro versions.)

    Any Suggestions? (Please?)

    Thanks!!!
      • 3749
      • 24,544 Posts
      getResources will dump the array if it can't find the specified &tpl (or the user doesn't have access to it).

      Do you have any Element Category Access ACL entries? That's the most likely culprit for both problems.


      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      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
        • 1441
        • 61 Posts
        Yes. I do, but only specified for one user group, but its only specified for the mgr context.

        I'm using this to remove the minutiae for general users, because they do not need to be often edited. (Probably Never by the user)

        Is there a better way to to that than with permissions?

        (Thanks for the reply!!)
          • 3749
          • 24,544 Posts
          It won't affect the front-end if the context is 'mgr'. I can only think of one thing that would cause your symptoms (unless you have multiple front-end contexts): an Element Category Access ACL entry with a context of 'web' that protects the category containing the getResources Tpl chunk and the template.

          If you don't have one, I'm stumped.

          It might tell us something if you take the getResource Tpl chunk and the template out of any category (edit them, select 'none' for the category, and save them) and see if that fixes things (after clearing the cache and your browser cache).


          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          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