We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40151
    • 20 Posts
    Issue comes up when trying to restrict access to the Filesystem section of the File Tree. I.e. Tools > Media Sources > then update Filesystem media source > Add User Group.

    User Group and Minimum Role options are visible on drop downs. Nothing can be selected under Policy and settings cannot be saved.

    Running Revo 2.2.4-pl (traditional) upgraded from fresh install of 2.2.3 approx two weeks ago.

    Have reported this as a bug #8157
      • 40151
      • 20 Posts
      Does anyone else have this problem? It's almost two months since my initial post above and I don't have a solution...
        • 22303 MODX Staff
        • 10,725 Posts
        I have attempted to reproduce this but am unable to in the latest release-2.2 branch in git. Did you change any of the MODX-installed Policies before upgrading? Do you have any errors in the logs or are you seeing any Javascript errors on the page?
          • 40151
          • 20 Posts
          I don't recall changing any of the MODX-installed Policies. However I have added several policies of my own.

          Error log pasted below:


          [2012-06-19 12:09:57] (ERROR @ /connectors/element/propertyset.php) Error caching lexicon topic lexicon/en/core/element
          [2012-06-19 16:10:21] (ERROR @ /connectors/resource/index.php) Error caching lexicon topic lexicon/en/core/resource
          [2012-06-19 17:00:34] (ERROR @ /connectors/system/settings.php) Error caching action map mgr/actions
          [2012-06-21 13:20:22] (ERROR @ /connectors/lang.js.php) Error caching lexicon topic lexicon/en/core/resource
          [2012-06-22 14:18:20] (ERROR @ /connectors/security/user.php) Could not get table class for class: modAccess
          [2012-06-22 14:18:20] (ERROR @ /connectors/security/user.php) Could not get table name for class: modAccess
          [2012-06-22 14:18:20] (ERROR @ /connectors/security/user.php) Error 42000 executing statement:
          Array
          (
          [0] => 42000
          [1] => 1064
          [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 2' at line 1
          )

          [2012-06-22 14:28:47] (ERROR @ /connectors/security/user.php) modUserProfile: Attempt to set NOT NULL field internalKey to NULL
          [2012-06-22 14:28:53] (ERROR @ /connectors/security/user.php) Could not get table class for class: modAccess
          [2012-06-22 14:28:53] (ERROR @ /connectors/security/user.php) Could not get table name for class: modAccess
          [2012-06-22 14:28:53] (ERROR @ /connectors/security/user.php) Error 42000 executing statement:
          Array
          (
          [0] => 42000
          [1] => 1064
          [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 4' at line 1
          )

          [2012-06-22 14:47:36] (ERROR @ /connectors/workspace/packages.php) Error caching lexicon topic lexicon/en/core/default
          [2012-06-22 16:10:58] (ERROR @ /connectors/element/tv/renders.php) Error caching lexicon topic lexicon/en/core/tv_input_types
          [2012-06-23 16:48:21] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-23 16:48:21] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-23 16:48:21] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-23 16:48:21] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-23 17:18:33] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-23 17:18:33] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-23 17:18:33] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-23 17:18:33] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-26 07:36:36] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-26 07:36:36] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-26 07:36:36] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-26 07:36:36] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-26 20:50:19] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-26 20:50:19] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-26 20:50:19] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-26 20:50:19] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-27 07:47:10] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-27 07:47:10] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-27 07:47:10] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-27 07:47:10] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-06-29 15:32:31] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-02 09:29:32] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) Could not load class: unknown from mysql.unknown.
          [2012-07-04 15:33:06] (ERROR @ /connectors/system/log.php) unknown::load() is not a valid static method.
          [2012-07-09 16:16:16] (ERROR @ /connectors/element/propertyset.php) Error caching lexicon topic lexicon/en/core/default
            • 3749
            • 24,544 Posts
            Try turning off the compress_js and compress_css System Settings and clearing the site cache.

            You could also have a missing or corrupted file in your install, especially if you used FTP to transfer the files individually.



            ------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using.
            MODX info for everyone: http://bobsguides.com/modx.html
              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
              • 40151
              • 20 Posts
              Hi Bob, I've tried your suggestion but no joy.

              I'm also having exactly the same problem on another site, also running 2.2.4-pl (traditional)
                • 40151
                • 20 Posts
                Screen shot attached showing inaccesible Policy drop-down. Nothing happens when this is clicked – no options are available.
                  • 4264
                  • 20 Posts
                  Hi,
                  I encounter exactly the same error, running 2.2.5-pl (upgraded from 2.2.4).
                  The error log is empty after trying to set a policy.
                  Here's the Chrome Element Inspector HTML for the input field:

                  <div class="x-form-item " tabindex="-1" id="ext-gen230"><label for="modx-cactxext-gen194-policy" style="width:auto;" class="x-form-item-label" id="ext-gen231">Policy</label>
                   <div class="x-form-element" id="x-form-el-modx-cactxext-gen194-policy" style="padding-left:0;">
                    <div class="x-form-field-wrap x-form-field-trigger-wrap x-trigger-wrap-focus" id="ext-gen232" style="width: 320px; ">
                     <input type="hidden" name="policy" id="ext-gen234" value="">
                     <input type="text" size="24" autocomplete="off" id="modx-cactxext-gen194-policy" class=" x-form-text x-form-field modx-combo x-trigger-noedit x-form-focus" style="width: 278px; " readonly="">
                       <img src="/manager/assets/ext3/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-arrow-trigger" id="ext-gen233" style="">
                     </div>
                    </div>
                   <div class="x-form-clear-left">
                   </div>
                   </div>


                  In other areas of the manager it is possible to select a policy (e.g. update user group)
                  Is this a bug?
                    • 10208 ☆ A M B ☆
                    • 1,780 Posts
                    use the media source user policy template to create a new media source administrator policy. Check all 7 policies. The user should only have 4 checked iirc.

                      Frogabog- MODX Websites in Portland Oregon
                      "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                      Having server issues? These guys have MODX Hosting perfected - SkyToaster
                      • 4264
                      • 20 Posts
                      Alas, this doesn't change the behavior. Still no policy to select.
                      One observation though: The standard Media Source admin policy is empty, as well als the Media Source admin template it is based upon.
                      I manually created a new template and an policy based on this template, but without the desired effect in the Media Source manager.