We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    I have version 1.3.1 of WebLoginPE doing what I want, with the exception of pagination. So I pulled the v1.3.2beta version from code.google.com and installed it. When I tested my WebLoginPE call with &type=`manager` (which was working), I get the following error :

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

    It looks like $id is related to multiple-instance calls of the snippet, but that is not what I am doing here.

    Judging from some of the messages I saw from a Google search, it seems too that the different branches of the code on code.google.com aren’t necessarily in sync. So can anyone tell me if there is a fix to what I’m noting above or point out if I am calling something incorrectly?

    Thanks in advance...
    MattC
      • 1169
      • 312 Posts
      Hi mconsidine

      What you are doing is not incorrect.
      I found same problem with code.

      If you need quick fix.
      function ViewAllUsers($userTemplate, $outerTemplate, $listUsers, $id='')

      at line 1259

      fix supplied by vhollo

      The v 1.3.2 Beta code still has some bugs created by merging different trees.

      I am still working on same.

      Will post on this board when completed.

      Regards
      Allan
        DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
        • 18913
        • 654 Posts
        Hi,
        Thanks for the reply. I’ll wait to see a post from you before using v1.3.2beta code. I also may have an an early version of the beta snippet, so I’m not sure where the problem lies at the moment. The version I had installed (not the latest beta) had paging set up, so at the moment I think I’m okay.

        I also took a quick look at the pagination code that loopdbchunk works with, but couldn’t see a quick way of integrating it. That might yield more style-able links and if I get that to work I’ll let you know.
        Thanks for your help,
        MattC
          • 1169
          • 312 Posts
          I am pritty new to all this.
          Just been working working on finishing XHTML validation errors what I started out to do before I found out all the problems wont bore you with details.

          Should be finished soon.

          If you could test pagination I would be gratefull as I would like to release this in about 2 to 3 months depending on problems found.

          Regards
          Allan
            DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
            • 18913
            • 654 Posts
            The pagination as it exists now, though not pretty, seems to work fine. Correcting the sort order within paginated pages is something I just posted about here
            http://modxcms.com/forums/index.php/topic,47534.msg279724.html#msg279724

            As written it’s a limited fix (and has limited testing!) but I hope a slightly more general solution will be forthcoming.
            MattC
              • 1169
              • 312 Posts
              Thanks for the info will keep it in mind.
                DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31