We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19833
    • 25 Posts
    With a default installation, I tried to create a user account. Each time, I get the error "Please enter a username" but the username field is already filled! No matter what I do, I keep getting that error even if all the fields are filled correctly.
      • 25663 MODX Staff
      • 12,272 Posts
      Please provide more information about your server, MODx version, etc. See my signature (help us help you) for more details.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 19833
        • 25 Posts
        Sorry about that, still kinda new here.

        Web Server: Apache
        PHP version and how it’s running (suexec, mod_php, CGI, etc.): 5.2.5, mod_php
        Operating System and version: centOS 5
        Database:
        MySQL 5.0.54
        List of any tables over 1MB in size
        MODx:
        0.9.6.1
        Any changes you’ve made: none
        Any snippets you’re running on the page that is not working properly: none
        Any plugins you’re running: none
        Browser/Client:Safari 3
        Operating System and version: Mac OSX Leopard
          • 25663 MODX Staff
          • 12,272 Posts
          How are you trying to create the user account?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 19833
            • 25 Posts
            I’m trying to create it using this:

            http://shuve.com/modx/request-an-account.html

            Does it work for you? I’ve tried on Safari and Firefox but I get the same error.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Are you sure that you have the right name for the input field as the value being checked for input? If you look at the source code for websignup.inc.php, it’s looking for
                  $username = $modx->db->escape($modx->stripTags($_POST['username']));
              ...
                  if($username=="") {
                      $output = webLoginAlert("Missing username. Please enter a user name.").$tpl;
                      return;
                  }
              ...
              

              In your form, you have wsu_username.
                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
                • 19833
                • 25 Posts
                Thanks, it works now. I had to remove wsu_ from username, email and password. Just as a note, this was a clean install of MODx, I did no changes. In other words, it came like that so the devs might want to take a look into that.
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Thanks for pointing that out... should be addressed for 0962
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 21239
                    • 1 Posts
                    Thanks for the confirmation, I was having the same issue (clean install no changes). Tossed the wsu_ and everything works well now.
                      • 25663 MODX Staff
                      • 12,272 Posts
                      Committed #3346
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me