We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38357
    • 178 Posts
    Hello,
    Using Rev 2.2.4-pl and Login 1.8.0-pl
    I'm having problems with Login User Registration form. The problems 'seem' to have appeared since turning on Friendly URL's but I can't be certain that is the cause.

    My call is:
    [[!Register?
    
    &submitVar=`registerbtn`
    
    &activationResourceId=`64`
    
    &submittedResourceId=`63`
    
    &usergroups=`Club Members` 
    
    &activationEmailTpl=`MylgnActivateEmailTpl` 
    
    &activationEmailSubject=`Please activate your account at [[++site_name]]`
    
    ]] 
    
    [[!$MylgnRegisterForm]]


    The form appears OK but after filling the details and submitting it just returns to the empty form. The same setup on my testing server (which does not have friendly URL's set) works perfectly.
    If I view Source code in the browser on my testing server I can see the code, but on the production server viewing code in the browser appears to try and submit the form showing
    Confirm Form Resubmission
    This web page requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so, you will repeat any action that this page previously performed. Press Reload to resend that data and display this page.
    and no source code.

    How do I find where the problem lies?

    Thanks [ed. note: bobd72 last edited this post 11 years, 7 months ago.]
    • Can you post the contents of your MylgnRegisterForm chunk?
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 38357
        • 178 Posts
        Thanks for the reply benmarte. Just standard:

        <div class="register">
            <div class="registerMessage">[[+error.message]]</div>
            
            <form class="form" action="[[~[[*id]]]]" method="post">
                <input type="hidden" name="nospam:blank" value="" />
        								 <p>Please use the last six (6) digits of your Golflink number as your Username</p>
                
                <label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
                    <span class="error">[[+error.username]]</span>
                </label>
                <input type="text" name="username:required:minLength=6" id="username" value="[[+username]]" /><br />
                
                <label for="password">[[%register.password]]
                    <span class="error">[[+error.password]]</span>
                </label>
                <input type="password" name="password:required:minLength=6" id="password" value="[[+password]]" /><br />
                
                <label for="password_confirm">[[%register.password_confirm]]
                    <span class="error">[[+error.password_confirm]]</span>
                </label>
                <input type="password" name="password_confirm:password_confirm=`password`" id="password_confirm" value="[[+password_confirm]]" /><br />
                
                <label for="fullname">[[%register.fullname]]
                    <span class="error">[[+error.fullname]]</span>
                </label>
                <input type="text" name="fullname:required" id="fullname" value="[[+fullname]]" /><br />
                
                <label for="email">[[%register.email]]
                    <span class="error">[[+error.email]]</span>
                </label>
                <input type="text" name="email:email" id="email" value="[[+email]]" /><br />
                
                <br class="clear" />
        
                [[+register.recaptcha_html]]
                [[+error.recaptcha]]
        
                <div class="form-buttons">
                    <input type="submit" name="registerbtn" value="Register" />
                </div>
            </form>
        </div> 

          • 3749
          • 24,544 Posts
          Do you have this tag in the head section of all templates?

          <base href="[[++site_url]]" />



          ------------------------------------------------------------------------------------------
          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
            • 38357
            • 178 Posts
            Thanks Bob,
            Yes I do.
              • 38357
              • 178 Posts
              Firefox is allowing me to view the source code but Chromium will not. The form looks OK in the source of the register page but doesn't execute correctly
              <p><div class="register">
                  <div class="registerMessage"></div>
                  
                  <form class="form" action="7/61/register.html" method="post">
                      <input type="hidden" name="nospam:blank" value="" />
              								 <p>Please use the last six (6) digits of your Golflink number as your Username</p>
                      
                      <label for="username">Username
                          <span class="error"></span>
                      </label>
                      <input type="text" name="username:required:minLength=6" id="username" value="" /><br />
                      
                      <label for="password">Password
                          <span class="error"></span>
                      </label>
                      <input type="password" name="password:required:minLength=6" id="password" value="" /><br />
                      
                      <label for="password_confirm">Confirm Password
                          <span class="error"></span>
                      </label>
                      <input type="password" name="password_confirm:password_confirm=`password`" id="password_confirm" value="" /><br />
                      
                      <label for="fullname">Full Name
                          <span class="error"></span>
                      </label>
                      <input type="text" name="fullname:required" id="fullname" value="" /><br />
                      
                      <label for="email">Email
                          <span class="error"></span>
                      </label>
                      <input type="text" name="email:email" id="email" value="" /><br />
                      
                      <br class="clear" />
                      <div class="form-buttons">
                          <input type="submit" name="registerbtn" value="Register" />
                      </div>
                  </form>
              </div> </p>
                • 3749
                • 24,544 Posts
                That's an odd looking action. Do you really have resources with 7 and 61 as aliases?

                If you enter yoursite.com/7/61/register.html in the browser address line does it take you anywhere?


                ------------------------------------------------------------------------------------------
                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
                  • 38357
                  • 178 Posts
                  Yes - it takes me directly to the register page which is not published as it is to be available only to those who are given the link.
                  Looking at the POST process in Firebug the page seems to be posting OK but there is no GET being implemented. [ed. note: bobd72 last edited this post 11 years, 7 months ago.]
                    • 3749
                    • 24,544 Posts
                    If it's not published, the link won't take you there unless you're previewing from the Manager or logged in in the same browser. I think you want it published but hidden from menus, unless you want to give anonymous visitors view_unpublished permission, which you probably don't.


                    ------------------------------------------------------------------------------------------
                    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
                      • 38357
                      • 178 Posts
                      Ooops - yes. It is set to published and hide from menus. I have sent you a PM.