We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3186 ☆ A M B ☆
    • 279 Posts
    Hi all,

    I’m want to create a multi-page form to register a new user on the front-end. This could be easily done with FormIt and the ’store’ option, either when on the last step of the form I would like to register the user as new member of the website. I would like to do this with the Login-Register snippet;

    I thought that putting the Login-Register snippet as hook on the last step of the FormIt call should work, but when I do so I’ll get a ’call to a member function validateFields() of a non-object’ error. After some debugging I’ll figured out that the modelPath in the $config array is set to ’formit’ instead of the ’login’. This comes from the array_merge() in the login.class.php

    Does anyone has experiance with this or does anyone have an idea how to fix this?

    Regards, Bert
      MODX Ambassador (NL) & Professional MODX developer
      Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
      MODX e-commerce solution SimpleCart
      • 6228
      • 249 Posts
      I don’t see the problem you’re describing with my Login config settings.

      Are you using a current version? I’m using Login 1.4.0-rc1.
        lo9on.com

        MODx Evolution/Revolution | Remote Desktop Training | Development
        • 3186 ☆ A M B ☆
        • 279 Posts
        Yes I’m using the newest version of the Login snippets... Do you also have used FormIt with the ’store’ option and on the last step uses the Register snippet as hook of formit? (to create the user?)
          MODX Ambassador (NL) & Professional MODX developer
          Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
          MODX e-commerce solution SimpleCart