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

    I have some really strange behaviour in manager. Site is working fine, but i can not get anything done in manager. The problems in manager are random. Sometimes it is missing resources tree, sometimes buttons are not working. Sometimes it says site is undefined and so on.

    If i clear cache and delete the cache files from server and login the resource tree is there. But immediately when i start using it the strange behaviour starts.

    I read that there is other people having similar issues, but no real solution. Anyone any ideas? As my client wants to change CMS and i really would not like to do this.

    Thanks.

    This question has been answered by ilardo. See the first response.

      • 3749
      • 24,544 Posts
      It could a JavaScript conflict. When some extra loads its JS code, a function or variable could have a collision with the Manager's JS.

      Update any extras that have new versions.

      If that doesn't fix it, try looking at the site in the dev. panel of Firefox or Chrome (Ctrl-shift-i). The Console tab will show any JS errors and the NetWork tab may show files that are not being found.

        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
        • 12752
        • 28 Posts
        Hi,

        Thanks for the answer.

        I have updated all extras. And i do get many javascript errors.

        Is there any ideas what to do with these javascript problems. See attached screenshot.

        Thanks.
          • 12752
          • 28 Posts
          Hi,

          Any ideas for this. Still having same problems. Unable to update anything on the page. There is altogether 19 javascript errors. Or something.

          I have two other sites running modx in same server without any problems.

          [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (modx.config.js.php, line 0)
          [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (index.php, line 0)
          [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (index.php, line 0)
          [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (index.php, line 0)
          [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (index.php, line 0)
          [Error] TypeError: this.mask.addClass is not a function. (In 'this.mask.addClass("fade-in")', 'this.mask.addClass' is undefined)
          onShow (modx.jsgrps-min.js:4:17887)
          afterShow (ext-all.js:21:375934)
          show (ext-all.js:21:375358)
          show (ext-all.js:21:387130)
          onAjaxException (modx.js:122)
          fire (ext-all.js:21:3705)
          fireEvent (ext-all.js:21:693)
          handleFailure (ext-all.js:21:51291)
          f (ext-base.js:21:18146)
          m (ext-base.js:21:18304)
          (anonymous function) (ext-base.js:21:8610)
          [Error] TypeError: undefined is not an object (evaluating 'this.mask.el.removeClass')
          onHide (modx.jsgrps-min.js:4:18690)
          afterHide (ext-all.js:21:376876)
          hide (ext-all.js:21:376635)
          hide (ext-all.js:21:385969)
          show (ext-all.js:21:386066)
          onAjaxException (modx.js:122)
          fire (ext-all.js:21:3705)
          fireEvent (ext-all.js:21:693)
          handleFailure (ext-all.js:21:51291)
          f (ext-base.js:21:18146)
          m (ext-base.js:21:18304)
          (anonymous function) (ext-base.js:21:8610)
          [Error] TypeError: this.mask.addClass is not a function. (In 'this.mask.addClass("fade-in")', 'this.mask.addClass' is undefined)
          onShow (modx.jsgrps-min.js:4:17887)
          afterShow (ext-all.js:21:375934)
          show (ext-all.js:21:375358)
          show (ext-all.js:21:387130)
          onAjaxException (modx.js:122)
          fire (ext-all.js:21:3705)
          fireEvent (ext-all.js:21:693)
          handleFailure (ext-all.js:21:51291)
          f (ext-base.js:21:18146)
          m (ext-base.js:21:18304)
          (anonymous function) (ext-base.js:21:8610)
          [Error] TypeError: undefined is not an object (evaluating 'this.mask.el.removeClass')
          onHide (modx.jsgrps-min.js:4:18690)
          afterHide (ext-all.js:21:376876)
          hide (ext-all.js:21:376635)
          hide (ext-all.js:21:385969)
          show (ext-all.js:21:386066)
          onAjaxException (modx.js:122)
          fire (ext-all.js:21:3705)
          fireEvent (ext-all.js:21:693)
          handleFailure (ext-all.js:21:51291)
          f (ext-base.js:21:18146)
          m (ext-base.js:21:18304)
          (anonymous function) (ext-base.js:21:8610)
          [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (index.php, line 0)
          [Error] TypeError: this.mask.addClass is not a function. (In 'this.mask.addClass("fade-in")', 'this.mask.addClass' is undefined)
          onShow (modx.jsgrps-min.js:4:17887)
          afterShow (ext-all.js:21:375934)
          show (ext-all.js:21:375358)
          show (ext-all.js:21:387130)
          onAjaxException (modx.js:122)
          fire (ext-all.js:21:3705)
          fireEvent (ext-all.js:21:693)
          handleFailure (ext-all.js:21:51291)
          f (ext-base.js:21:18146)
          m (ext-base.js:21:18304)
          (anonymous function) (ext-base.js:21:8610)

          [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (modx.jsgrps-min.js.map, line 0)
            • 12752
            • 28 Posts
            Hi, For some reason your server is not taking any photos. The link is not working when i add an attachment.

              • 12752
              • 28 Posts
              Hi,

              It seems the manager is working a bit better with chrome, but not much.

              Following errors from chrome console:

              Failed to load resource: the server responded with a status of 500 (Internal Server Error)
              /connectors/index.php Failed to load resource: the server responded with a status of 500 (Internal Server Error)
              modx.jsgrps-min.js:4 Uncaught TypeError: this.mask.addClass is not a function
              at S.onShow (modx.jsgrps-min.js:4)
              at S.afterShow (ext-all.js:21)
              at S.show (ext-all.js:21)
              at Object.show (ext-all.js:21)
              at MODx.onAjaxException (modx.js?v=f2160ade:122)
              at h.Event.fire (ext-all.js:21)
              at Ext.data.Connection.fireEvent (ext-all.js:21)
              at Ext.data.Connection.handleFailure (ext-all.js:21)
              at f (ext-base.js:21)
              at m (ext-base.js:21)
              2/connectors/index.php Failed to load resource: the server responded with a status of 500 (Internal Server Error)
              modx.jsgrps-min.js:4 Uncaught TypeError: Cannot read property 'removeClass' of undefined
              at S.onHide (modx.jsgrps-min.js:4)
              at S.afterHide (ext-all.js:21)
              at S.hide (ext-all.js:21)
              at Object.hide (ext-all.js:21)
              at Object.show (ext-all.js:21)
              at MODx.onAjaxException (modx.js?v=f2160ade:122)
              at h.Event.fire (ext-all.js:21)
              at Ext.data.Connection.fireEvent (ext-all.js:21)
              at Ext.data.Connection.handleFailure (ext-all.js:21)
              at f (ext-base.js:21)
              modx.jsgrps-min.js:4 Uncaught TypeError: this.mask.addClass is not a function
              at S.onShow (modx.jsgrps-min.js:4)
              at S.afterShow (ext-all.js:21)
              at S.show (ext-all.js:21)
              at Object.show (ext-all.js:21)
              at MODx.onAjaxException (modx.js?v=f2160ade:122)
              at h.Event.fire (ext-all.js:21)
              at Ext.data.Connection.fireEvent (ext-all.js:21)
              at Ext.data.Connection.handleFailure (ext-all.js:21)
              at f (ext-base.js:21)
              at m (ext-base.js:21)
              /connectors/index.php?action=system/dashboard/widget/feed&feed=security Failed to load resource: the server responded with a status of 500 (Internal Server Error)
              modx.jsgrps-min.js:4 Uncaught TypeError: Cannot read property 'removeClass' of undefined
              at S.onHide (modx.jsgrps-min.js:4)
              at S.afterHide (ext-all.js:21)
              at S.hide (ext-all.js:21)
              at Object.hide (ext-all.js:21)
              at Object.show (ext-all.js:21)
              at MODx.onAjaxException (modx.js?v=f2160ade:122)
              at h.Event.fire (ext-all.js:21)
              at Ext.data.Connection.fireEvent (ext-all.js:21)
              at Ext.data.Connection.handleFailure (ext-all.js:21)
              at f (ext-base.js:21)
                • 3749
                • 24,544 Posts
                Check the connectors path and URL in the core/config/config.inc.php file.

                500 errors are often due to issues in the .htaccess file. Have you changed it lately, or accidentally uploaded a local version of it?
                  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
                  • 52064
                  • 120 Posts
                  the same problem occurs when I forget the www before the domain when I log in to the manager

                  http://example.com/manager -> error
                  http://www.example.com/manager -> OK
                    FerX - Developer at Eracom s.r.l.
                    • 12752
                    • 28 Posts
                    Hi,

                    I see that there is some odd lines in my .htaccess file which i have never seen before. Seem that these lines are added by my host and has something to do with cpanel.

                    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
                    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
                    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

                    I have to make some tests what happens if i comment these lines. Will inform if i am succesful with these modifications.

                    Paths in config.inc.php seems to be ok. No problems there.

                    Thanks.
                      • 12752
                      • 28 Posts
                      Hi,

                      No success unocmmenting these lines on htaccess. No success trying to write www. in the beginning.

                      Still same problems in manager.

                      Any more good ideas?

                      Thanks.