We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6470
    • 69 Posts
    already mentioned here
    http://modxcms.com/forums/index.php/topic,43151.0.html

    every time i use manager, or front end i have this error
    -------------
    Quick Manager+ - Plugin - System Events
    Error

    Event Id: 1 Source: Quick Manager+ - Plugin

    Date: 08-12-2009 10:34:50 User: daniel


    Undefined variable: disabled

    nt document $sql= "SELECT id FROM {$table} WHERE document = {$docID} AND document_group IN ({$docGroup})"; $result= $this->modx->db->query($sql); $rowCount = $this->modx->recordCount($result); if ($rowCount >= 1) $access = TRUE; } else $access = FALSE; } else $access = TRUE; } return $access; } } } ?>
      • 16610
      • 634 Posts
      I have never seen this error before.

      Have you recently upgraded to MODx 1.0.2 or is this a clean install?

      Try replacing all QM+ files from default MODx package in case there is a corrupted file.
        Mikko Lammi, Owner at Maagit
        • 6470
        • 69 Posts
        it’s new install/ reinstalled twice then
        qm files replaced many times

        no + effect
          • 16610
          • 634 Posts
          What is your PHP and MySQL versions?
            Mikko Lammi, Owner at Maagit
            • 6470
            • 69 Posts
            If you dont mind look for anything you need
            marinca.ru
            ------------------------
            test
            111111111
              • 16610
              • 634 Posts
              Try this:

              Copy/paste this to QM+ plugin source code (Elements > Plugins > Quickmanager+)

              $show = TRUE;
              
              if ($disabled  != '') {
                  $arr = explode(",", $disabled );
                  if (in_array($modx->documentIdentifier, $arr)) {
                      $show = FALSE;
                  }
              }
              
              if ($show) {
                  include_once($modx->config['base_path'].'assets/plugins/qm/qm.inc.php');
                  $qm = new Qm($modx, $jqpath, $loadmanagerjq, $loadfrontendjq, $noconflictjq, $loadtb, $tbwidth, $tbheight, $hidefields, $hidetabs, $hidesections, $addbutton, $tpltype, $tplid, $custombutton, $managerbutton, $logout);
              }
              
                Mikko Lammi, Owner at Maagit
                • 6470
                • 69 Posts
                i have exactly the same code already in qm plugin
                have a look

                <code>


                $show = TRUE;

                if ($disabled != ’’) {
                $arr = explode(",", $disabled );
                if (in_array($modx->documentIdentifier, $arr)) {
                $show = FALSE;
                }
                }

                if ($show) {
                include_once($modx->config[’base_path’].’assets/plugins/qm/qm.inc.php’);
                $qm = new Qm($modx, $jqpath, $loadmanagerjq, $loadfrontendjq, $noconflictjq, $loadtb, $tbwidth, $tbheight, $hidefields, $hidetabs, $hidesections, $addbutton, $tpltype, $tplid, $custombutton, $managerbutton, $logout, $disabled);
                }
                <code>
                  • 4041
                  • 788 Posts
                  Actually, there is a difference in your code and the code above: look at the end of $qm = newQM() and yours has $disabled added, which is likely causing the error you originally posted. Remove that and see what happens.
                    xforum
                    http://frsbuilders.net (under construction) forum for evolution
                    • 6470
                    • 69 Posts
                    yea you are right
                    but again no result

                    I’ve just changed the code.
                    still have
                    --------------Quick Manager+ - Plugin - System Events
                    Error

                    Event Id: 1 Source: Quick Manager+ - Plugin

                    Date: 09-12-2009 03:07:15 User: daniel


                    Undefined variable: custombutton

                    nt document $sql= "SELECT id FROM {$table} WHERE document = {$docID} AND document_group IN ({$docGroup})"; $result= $this->modx->db->query($sql); $rowCount = $this->modx->recordCount($result); if ($rowCount >= 1) $access = TRUE; } else $access = FALSE; } else $access = TRUE; } return $access; } } } ?>
                      • 16610
                      • 634 Posts
                      Your PHP configuration seems to be very picky about empty values.

                      To narrow down the problem try adding something (for example -) to custom button parameter (again from Elements > Plugins > QuickManager+).
                        Mikko Lammi, Owner at Maagit