We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Quote from: warthogweb at Sep 30, 2009, 03:58 PM

    As a noob with MODx and Weblogin, I have a problem: If I add the snippet [!WebLoginPE? &type=`simple`!] to my template, I get the error below. I am running on localhost with XAMPP.
    Martin


    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: include_once(C:/Programmes/xampp/htdocs/mdx/mdx/assets/snippets/webloginpe/webloginpe.class.php) [function.include-once]: failed to open stream: No such file or directory
    Error type/ Nr.: Warning - 2
    File: C:\Programmes\xampp\htdocs\mdx\mdx\manager\includes\document.parser.class.inc.php(770) : eval()’d code
    Line: 27

    Have you installed the webloginPE snippet and uploaded all the files?
      • 31972
      • 13 Posts
      Thanks Beenyb.

      The webloginpe snippet appears in the snippet list. One post said that it may not work on localhost so I installed on the server and still the same result (below). The snippet is [!WebLoginPE? &type=`simple`!] in the sidebar.

      Does the template call the chunk or do both chunk and template need to be present?

      The live site is at
      www.search-optimizers.co.za/modx
      Manager login: admin/warthog321

      PHP error debug
      Error: include_once(/home/searchop/public_html/modx/assets/snippets/webloginpe/webloginpe.class.php) [function.include-once]: failed to open stream: No such file or directory
      Error type/ Nr.: Warning - 2
      File: /home/searchop/public_html/modx/manager/includes/document.parser.class.inc.php(770) : eval()’d code
      Line: 27
        • 36926
        • 701 Posts
        Quote from: warthogweb at Oct 03, 2009, 06:54 AM

        Thanks Beenyb.

        The webloginpe snippet appears in the snippet list. One post said that it may not work on localhost so I installed on the server and still the same result (below). The snippet is [!WebLoginPE? &type=`simple`!] in the sidebar.

        Does the template call the chunk or do both chunk and template need to be present?

        The live site is at
        www.search-optimizers.co.za/modx
        Manager login: admin/warthog321

        PHP error debug
        Error: include_once(/home/searchop/public_html/modx/assets/snippets/webloginpe/webloginpe.class.php) [function.include-once]: failed to open stream: No such file or directory
        Error type/ Nr.: Warning - 2
        File: /home/searchop/public_html/modx/manager/includes/document.parser.class.inc.php(770) : eval()’d code
        Line: 27

        Did you fix this as the login is appearing fine for me.
          • 3749
          • 24,544 Posts
          Unless that’s a sandbox site, I’d advise you to change that password ASAP. Anyone with an internet connection can delete your whole site or fill it with trash.
            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
            • 31972
            • 13 Posts
            Sandbox site but password changed anyway. BTW, the error was due to an omission in the webloginope upload that should have included the statement - obvious to everyone else apparently - ’Change the name of the folder webloginpe.v.3.1.1 (or whatever) to webloginpe’ tacked on to the instruction to ’upload your webloginpe folder’.

            Now, things work, not perfectly but that should be donkeywork from this point on.
              • 3749
              • 24,544 Posts
              Sounds like a natural mistake to make. Glad you got it sorted. smiley
                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
                • 31972
                • 13 Posts
                2 Little questions:

                How do I get the login page to redirect to a chosen page if the user is registered and to the ’register’ page if not?

                <form id="wlpeLoginForm" action="[~[*65*]~]" method="POST"> gives a ’password unknown’ error for an unregistered login, which is fine.

                If ’Register’ is clicked however, the registration form is displayed in the sidebar, not on [~[*65*]~]. View Source shows action="index.php?id=1" - where did that come from? The cache has been cleared. The site is search-optimizers.co.za/modx/.

                Which of the two tpl formats is actually used by the script - the html or the txt??

                I am using DefaultLoginFormTpl.

                Thanks, Martin