We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/551">Login 1.0-beta4</a> by splittingred.

    Brief Description:
    Loads a simple login/logout form, with password retrieval functionality and a register form snippet.




    - Added the snippet Register, which allows for Registration Form processing.


    - Note: will only work properly in Revolution 2.0.0-beta4 or later.
      • 22563
      • 63 Posts
      Hi!

      1.
      On login (using the default templates):
      Fatal error: Call to a member function get() on a non-object in D:\wwwROOT\modx\core\model\modx\processors\security\login.php on line 46
      2.
      I am trying to use my own template chunk but somehow it is ignored:
      [[!Login? &tpl=`custom_login`]]
      huh
        • 28215
        • 4,149 Posts
        What version of MODx Revolution are you using?

        Also, use &loginTpl, not &tpl.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 22563
          • 63 Posts
          Hi!

          I am using beta 4.

          (&tpl is what the readme said)

          edit:
          1. &loginTpl works

          2. error appears if the user does NOT exist


            • 28215
            • 4,149 Posts
            The only way this error would occur is if your user is not found; The PHP error was a bug in beta4 that was fixed in SVN recently.
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 28708
              • 14 Posts
              Hi all! First Post to the forums and I’ll warn you, I’m a bit of a newb.

              Using Revolution SVN version from today. (I couldn’t get login to install with beta-4)

              When submitting the default registration form using the Register snippet, I get the following:

              Fatal error: Call to a member function loadValidator() on a non-object in /home/revoluti/public_html/core/model/modx/modscript.class.php(96) : eval()'d code on line 47
              

              Here’s the content of my registration page:
              [[$lgnRegisterForm]]
              [[Register]]
              


              I’m sure I’m doing something wrong...
                • 28215
                • 4,149 Posts
                Can you verify there are files in your modx/core/components/login directory?

                I’m not sure if we’ve uploaded a SVN-compatible Login snippet yet (Revo has been optimized for php5, and this breaks some of the transport package installs for older components.)
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 28708
                  • 14 Posts
                  Thanks for the quick reply!

                  My directory structure looks like: core/packages/login-1.0-beta4

                  With the following contents:

                  manifest.php
                  modCategory/
                  modLexiconLanguag
                  modLexiconTopic/
                  modNamespace/
                  modSystemSetting/
                  preserved.php
                    • 28215
                    • 4,149 Posts
                    No, can you verify there are files in core/components/login/
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 28708
                      • 14 Posts
                      Sorry. Hadn’t had my coffee yet. embarrassed

                      Turns out, I didn’t have a core/components directory (not sure how that happened). So, I created it, added write permissions, went to the package manager and reinstalled. Everything is working now.

                      Thanks for the clue!