We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46449
    • 3 Posts
    Hey All, I've been using modx flawlessly for quite a while, today I go to login and I am presented with:

    The username or password you entered is incorrect. Please check the username, re-type the password, and try again.

    • I try my usual user/pass. I cleared cache/flushed dns, tried again. invalid.
    • I then reset my pass using the Forgot Your Login? link, still says invalid.
    • I use myphpadmin, and reset the pass (had to unblock myself at this point as well due to too many incorrect I assume?) and changed my pass to 123456 per-faq instructions (e10adc3949ba59abbe56e057f20f883e) and still says invalid.
    • I've tried other users/pass's I distributed to end-users and they all say invalid.
    • I've tried on various devices, browsers, and IPs, and still says invalid.
    • I then decided to try an update to 2.2.11-pl (my version was relatively new, one below this) and after update, still no difference.

    Any help would be greatly appreciated!
      • 3749
      • 24,544 Posts
        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
        • 46449
        • 3 Posts
        Thank you for your response, however I believe I've tried everything listed there already as my original post indicates. I've tried both automatically, and manually resetting the password. I have been able to unblock myself, etc. The issue is that I still receieve

        The username or password you entered is incorrect. Please check the username, re-type the password, and try again.

        Even though I've reset the password manually and automatically.
          • 3749
          • 24,544 Posts
          When you manually set the password, did you change the hashing method? The instructions you read may have been for the old MD5 passwords.

          At any rate, it sounds like you did not try the "last resort" method describe in the article. It involves creating a new install of the same version of MODX somewhere and cutting and pasting all fields for the admin user in the DB from the new site to the troubled one.
            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
          • You might also want to check the status of the user database tables to see if any of them needs to be repaired.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 46449
              • 3 Posts
              You sir were correct, I indeed had not tried the 'ugly method' which actually worked. I greatly appreciate the assistance!. I'm quite frustrated and eager to understand why exactly that worked, when I essentially did the same exact thing I'd already done. I'm starting to believe it's the 'salt' and will investigate this further!.

              Thank you again!!
                • 29151
                • 12 Posts
                I have similar problem with fresh install 2.2.11 - there is no username value in modx_users table.

                some info from log
                [2014-02-05 12:19:08] (ERROR @ /setup/index.php) modUser: Attempt to set NOT NULL field username to NULL
                [2014-02-05 12:19:08] (ERROR @ /setup/index.php) modUserProfile: Attempt to set NOT NULL field email to NULL
                [2014-02-05 12:19:08] (ERROR @ /setup/index.php) modSystemSetting: Attempt to set NOT NULL field value to NULL
                


                full log https://gist.github.com/t0mpre/8821635

                another instance, modx 2.2.10, on that same machine/config works well

                ubuntu 13.10, nginx, phpfpm, mariadb
                  • 54285
                  • 2 Posts
                  I'm answering an old problem but it happened to me today (yup in 2018)

                  After an update on Modx, if you cannot log in and you tried everything including the ugly method from Bob's Guide (thx btw), check if your table modx_users in the corrupt site have the same numbers of columns than the one in your new installation.

                  For me, after an update from modx revolution 2.5.7 to 2.6.3, the column "createdon" was missing. And that prevent me from log in to the manager.

                  Good luck
                    • 3749
                    • 24,544 Posts
                    Thanks for the tip. It maybe have happened because you skipped over the x.x.0 version where the new field was added to the DB.
                      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
                      • 46886
                      • 1,154 Posts
                      Right, I thought that createdon wasn't there before, got quite a shock when it was there and thought my memory was faulty. But it was added recently and my brain isn't as addled as I feared