We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28456
    • 83 Posts
    I was playing a litlebit whit roles and permissions on the backend(Revolution). And i changed something to 1 instead of nothing. I thought i did this for a test user. But now i the admin (me) cannot login anymore to the backend. I think i changed something complete wrong for the admin.

    Can anybody tell me how to fix this problem and make (me) the admin possible to login on the backend?

    Ofcourse i have FPT acces te server

    regards
    Stefan
      • 22303 MODX Staff
      • 10,725 Posts
      If you can describe what you changed in more detail we can probably help, but it’s going to be hard to guess what you did and where.
        • 3749
        • 24,544 Posts
        The first thing to try is an upgrade install. Run Setup again with the Upgrade box selected.

        If you still can’t log in, you’ll have to modify the MODx database directly:

        Log into PhpMyAdmin through cPanel. Select the DB, then the modx_user_group_roles table, then the Browse tab.

        Make sure the Super User authority level is 0. Change it if not (by clicking on the little pencil in that row, changing the authority and clicking on the upper "go" button).

        If it was already at 0, browse the modx_access_policies table and see what the ID of the Administrator policy is (probably 2). Write it down.

        Browse the mod_access_context table and wherever the ’principal’ is 1 (that’s you), change the ’policy’ to the Administrator policy (2?) using the method you used above.
        There should be an entry for you for both the ’mgr’ and ’web’ contexts. If they’re not both there, stop there and let us know, otherwise, do the next step.

        Delete all the files in the core/cache directory (be careful not to delete the /core directory itself!).

        Then try to log in again.

        If none of that works, we’ll try some other stuff. wink
          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
          • 28456
          • 83 Posts
          @bobray Thanks

          "Make sure the Super User authority level is 0." this did the trick!
          I changed this accidentally to 1

          Regards
          Stefan
            • 3749
            • 24,544 Posts
            I’m glad it worked. Thanks for reporting back. smiley
              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