We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    Hi,
    I have a new usergroup that i want to give access to the manager with a custom ACL.
    Now when i select the usergroup an choose to update the context access under the permissions TAB. I get a modal with a dropdown menu where i have to choose the proper context.
    But both options in the dropdown read NULL huh is the a bug in 2.6.1-PL ?
    Or am i doing it wrong? see attached screenshot
    Tnx
    RDG

    This question has been answered by BobRay. See the first response.

      • 3749
      • 24,544 Posts
      If you haven't already, try clearing the cache and flushing all sessions (log out all users). Then test it in multiple browsers to see if it's still a problem.

      Also, try with Dev. tools turned on in Chrome or Firefox (Ctrl-shift-i). Reload the page and check the console for JavaScript errors.
        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
        • 24629
        • 370 Posts
        Hi
        I cleared the cache logged out and in. checked the Devtools...nothing. The contexts just won't show up.
        • discuss.answer
          • 3749
          • 24,544 Posts
          Here's a thought: Does the modx_context column in the DB have a 'name' field, and if so, is there anything in it?

          What do you see when you right-click on the context in the tree and select "Edit Context"?
            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
            • 24629
            • 370 Posts
            Yes you are right. The name filed is empty on both contexts. but how is that even possible?
            RDG
              • 3749
              • 24,544 Posts
              That may come from making too big a jump when upgrading. It's important to upgrade to the major releases (the ones ending in .0) when upgrading. If you jump over one, you may miss database upgrades. The modContext table didn't used to have a name field. If you skipped the major release where that happened, you may have gotten the field later, but missed the code that copied the key into it.

              I would have assumed that MODX would use the 'key' field if the 'name' field was empty, but maybe not.
                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