We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36426
    • 197 Posts
    Hi if anyone can please help me. I’ve set up an online shop, user registration appears to work and a verification email is sent out but on clicking the confirmregister link in the email I just get a blank page on my website. It’s the correct resource and I have the correct snippet in place:

    [[!ConfirmRegister &authenticate=`1` &redirectTo=`22`]]


    But for some reason it doesn’t activate the user and redirect them to the page with the "success" message on there. Can anyone please help me?

    If someone could try registering and help me fix this? My website is at http://www.katesflowers.co.uk

    Thanks for any help on this. smiley
      Yorkshire UK based hosting provider: https://www.simulant.uk
      • 3109 ☆ A M B ☆
      • 894 Posts
      I am also having this issue, ConfirmRegister will not redirect the user to the page specified, whats weird is if you use &errorPage it redirects to the specified page perfectly.

      I checked my error logs and found this:

      
       [2011-08-07 04:01:59] (ERROR @ /MODx2.1.2/index.php) modUserProfile: Attempt to set NOT NULL field internalKey to NULL
      [2011-08-07 04:53:29] (ERROR @ /MODx2.1.2/index.php) modUserProfile: Attempt to set NOT NULL field internalKey to NULL
      [2011-08-07 04:58:16] (ERROR @ /MODx2.1.2/connectors/security/user.php) Could not get table class for class: modAccess
      [2011-08-07 04:58:16] (ERROR @ /MODx2.1.2/connectors/security/user.php) Could not get table name for class: modAccess
      [2011-08-07 04:58:16] (ERROR @ /MODx2.1.2/connectors/security/user.php) Error 42000 executing statement: 
      Array
      (
          [0] => 42000
          [1] => 1064
          [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 17' at line 1
      )
      
      


      And this is my ConfirmRegistration call:

      
      [[!ConfirmRegister? &redirectTo=`13` &errorPage=`7`]]
      
      


      I’ve also tried:

      
      [[!ConfirmRegister? &redirectTo=`13` &authenticate=`1` &errorPage=`7`]]
      
      


      Same problem is never redirects and always goes straight to the error page every time.

      Any ideas?

      Thanks.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 36426
        • 197 Posts
        I’ve tried adding the errorpage also in my snippet call, but I still just get the blank confirm page and it doesn’t activate or redirect to the error page...
          Yorkshire UK based hosting provider: https://www.simulant.uk
          • 36426
          • 197 Posts
          Hi just posting to bump this a little to see if anyone can help? I’m hoping to get the Registration and online sales working this week but at a dead end if users can’t activate accounts. Can anyone please help?

          Thanks.
            Yorkshire UK based hosting provider: https://www.simulant.uk
            • 28215
            • 4,149 Posts
            This happens after you get the confirm email, and on the *first* time you load the page?
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 36426
              • 197 Posts
              Quote from: splittingred at Aug 09, 2011, 08:34 AM

              This happens after you get the confirm email, and on the *first* time you load the page?

              Hi thanks for helping me out. Yes it just gives a blank page instead of activating and then giving the success message or error. It just sticks on the confirmation page...
                Yorkshire UK based hosting provider: https://www.simulant.uk
                • 28215
                • 4,149 Posts
                Can you post your Register snippet call, and the form? Also, your server environment.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 36426
                  • 197 Posts
                  Quote from: splittingred at Aug 09, 2011, 09:50 AM

                  Can you post your Register snippet call, and the form? Also, your server environment.

                  ok thanks, my Register snippet call is:

                  [[!Register?
                      &submitVar=`registerbtn`
                      &activationResourceId=`20`
                      &activationEmailTpl=`myActivationEmailTpl`
                      &activationEmailSubject=`Thanks for Registering!`
                      &submittedResourceId=`18`
                      &usergroups=`Customers`
                      &validate=`nospam:blank,
                    username:required:minLength=^6^,
                    password:required:minLength=^6^,
                    password_confirm:password_confirm=^password^,
                    fullname:required,
                    email:required:email`
                      &placeholderPrefix=`reg.`
                  ]]
                   
                  <div class="register">
                      <div class="registerMessage">[[!+reg.error.message]]</div>
                   
                      <form class="form" action="[[~[[*id]]]]" method="post">
                          <input type="hidden" name="nospam" value="[[!+reg.nospam]]" />
                   
                          <p><label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
                              <span class="error">[[!+reg.error.username]]</span>
                          </label>
                          <input type="text" name="username" id="username" value="[[!+reg.username]]" /></p>
                   
                          <p><label for="password">[[%register.password]]
                              <span class="error">[[!+reg.error.password]]</span>
                          </label>
                          <input type="password" name="password" id="password" value="[[!+reg.password]]" /></p>
                   
                          <p><label for="password_confirm">[[%register.password_confirm]]
                              <span class="error">[[!+reg.error.password_confirm]]</span>
                          </label>
                          <input type="password" name="password_confirm" id="password_confirm" value="[[!+reg.password_confirm]]" /></p>
                   
                          <p><label for="fullname">[[%register.fullname]]
                              <span class="error">[[!+reg.error.fullname]]</span>
                          </label>
                          <input type="text" name="fullname" id="fullname" value="[[!+reg.fullname]]" /></p>
                   
                          <p><label for="email">[[%register.email]]
                              <span class="error">[[!+reg.error.email]]</span>
                          </label>
                          <input type="text" name="email" id="email" value="[[!+reg.email]]" /></p>
                   
                          <br class="clear" />
                   
                          <div class="form-buttons">
                              <input type="submit" name="registerbtn" value="Register" />
                          </div>
                      </form>
                  </div>


                  This then redirects to resource number 18 which is just a page saying "check your email and follow the link to activate". Clicking the email link received redirects me back to the correct activate resource with this call in it:

                  [[!ConfirmRegister &authenticate=`1` &redirectTo=`22` &errorPage=`27`]]


                  but this is the page that gets stuck and just shows a blank...

                  Server environment is linux:

                  Apache version 2.2.17
                  PHP version 5.2.17
                  MySQL version 5.0.92-community-log
                  Architecture x86_64
                  Operating system linux
                  Perl version 5.8.8
                  Kernel version 2.6.18-194.32.1.el5

                  not sure what else to post but I can find out for you if you need to know anything else?

                    Yorkshire UK based hosting provider: https://www.simulant.uk
                    • 28215
                    • 4,149 Posts
                    Your ConfirmRegister call should be:

                    [[!ConfirmRegister? &authenticate=`1` &redirectTo=`22` &errorPage=`27`]]
                    


                    Note the ?
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 36426
                      • 197 Posts
                      haha I can’t believe it! No wonder I couldn’t fathem out what was wrong, I didn’t even see the typo! Thanks it’s working ok now.
                        Yorkshire UK based hosting provider: https://www.simulant.uk