We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25902
    • 27 Posts
    Hi all.

    I’ve created a page called Web User Manager with the following call:
    [!WebLoginPE? &type=`user` &usersList=`webgroup(Registered Users):default:default:username:ASC:||usersList=`webgroup(Site Admins):default:default:username:ASC:` &usersTpl=`UserManager`!]

    as well as a default call:
    [!WebLoginPE? &type=`user`!]

    But all I’m getting for both calls is an empty page.


    And when I tried using this:
    [!WebLoginPE? &type=`manager`!]

    I get « PHP Parse Error »

    PHP error debug
    Error: Missing argument 4 for WebLoginPE::ViewAllUsers()

    What am I doing wrong?
    And also, my apologies if it seems as if I’m spamming this board with more posts but it is a different problem that I’m encountering this time and if need be, just delete this post and I’ll merge it with my other post.

    Thanks.
      • 25902
      • 27 Posts
      Still having problems with this, I get an error caling user or manager. ([!WebLoginPE? &type=`manager`!])

      My profile, register pages work well, just unable to get user list to work.
      Can anyone show me an example of how you make your manager/user call?

      As in:
      1) Where and how the call is made
      2) The user/manager page - what it contains

      Thanks
        • 27442
        • 103 Posts
        Have you made any modifications to the php files? A basic call like
        [!WebLoginPE? &type=`manager`!]

        works fine for me as well as more complex calls. If you use it on a page with a blank template and no other content does it work?
          • 25902
          • 27 Posts
          Heyas, aye.. I just tried putting it on a blank page, with no template just using [!WebLoginPE? &type=`manager`!] and it returned a parse error.
          Shown below:

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

          PHP error debug
          Error: Missing argument 4 for WebLoginPE::ViewAllUsers(), called in /home/xxx/public_html/modx/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 261 and defined
          Error type/ Nr.: Warning - 2
          File: /home/xxx/public_html/modx/assets/snippets/webloginpe/webloginpe.class.php
          Line: 1038
          Line 1038 source: function ViewAllUsers($userTemplate, $outerTemplate, $listUsers, $instance)

          And no, I’ve not changed the php files.
            • 27442
            • 103 Posts
            I would upload the entire snippet again, being sure to include all the files including the Default Forms folder. I suspect that you’re missing a file.
              • 25902
              • 27 Posts
              Thanks a lot! I just re-uploaded everything except the userimages folder and also the snippet and the manager call works. Although using &type=`user` still produces a blank page, I’m just glad this thing ([!WebLoginPE? &type=`manager`!]) finally works for me.

              Once again, thank you so much sjh. I tried all sort of things but it never occurred to me to reinstall webloginpe grin