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

    So I upgraded from 2.2.0 to 2.2.2. However I soon found out the Gateway Plugin doesn't work on that version and my websites weren't working as a result.

    So I rolled back to 2.2.0, file system and database.

    Oddly, even though it should have just been a restore, I can't login to my manager now. I get:

    Fatal error: Call to a member function get() on a non-object in /var/www/www.mysite.com/core/model/modx/modmanagerresponse.class.php on line 41

    Tried different browsers and computers same result. I *can* however login via a direct URL like:

    http://www.mysite.com/manager/?a=62

    But not
    http://www.mysite.com/manager/

    Tried clearing the cache once in there too, but no joy.

    Any thoughts?

    Thanks
      • 39079
      • 13 Posts
      Hello,

      Does anyone have any thoughts on this please? I'm a bit stuck.

      Thanks.
        • 3749
        • 24,544 Posts
        It's almost certainly a path issue of some kind. The message just means that the $modx object wasn't successfully initialized.

        See if anything here helps: http://bobsguides.com/modx-troubleshooting.html.



        ------------------------------------------------------------------------------------------
        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
          • 39079
          • 13 Posts
          Thanks for the reply. I did try all those with no luck, but have subsequently found I did not backup my database properly the first time. So effectively I'm using the 2.2 code base with a 2.2.2 database.

          I can't upgrade to 2.2.2 because the Gateway Manager doesn't work with that version, but cannot access the manager at all now - so I'm in a bit of a pickle!

          I'll need to find some way around the gateway manager so that I can upgrade properly.

          Thanks.
            • 3749
            • 24,544 Posts
            You could try going into PhpMyAdmin and disabling the Gateway Manager plugin. In modx_site_plugins, find that plugin and change the disabled field from 0 to 1. Then delete all files in the core/cache directory.


            ------------------------------------------------------------------------------------------
            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
              • 13501
              • 15 Posts
              Im facing the same issue,
              with no upgrade in the process or what so ever migration..
              it was a new site, when i access
              url/manager/
              it shows
              Call to a member function get() on a non-object
              Fatal error: Call to a member function get() on a non-object in [rootpath...]\core\model\modx\modmanagerresponse.class.php on line 41

              but when access with
              url/manager/?a=62, login form works..

              anyone could help?

              p/s: im facing lots of problem on windows machine now that i nearly want to give up on modx...
                • 3749
                • 24,544 Posts
                Are you using IIS or something else as a server (XAMPP?).

                I can't think of any reason why adding a query string would affect things unless Friendly URLs are turned on and there's no .htaccess file.

                If you're using XAMPP, make sure that mod_rewrite is enabled. It's off by default.
                  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
                  • 33982 ☆ A M B ☆
                  • 476 Posts
                  My client just run into this same problem this morning. They're running MODX on a Windows server. When you click on any of the MODX documents in the Manager under the Resources tab, the documents load fine. But if you go into the Elements or Files and try and open any Templates, T.V.'s, Chunks, etc., you get this error:

                  Fatal error: Call to a member function get() on a non-object in D:\PORTAL-DATA\Websites\domain-name.com\core\cache\includes\elements\modsnippet\1.include.cache.php on line 107


                  Anyone figure out a solution to this yet? [ed. note: flinx777 last edited this post 13 years, 7 months ago.]
                    Precision Web Development ... SmashStack.com
                    • 3749
                    • 24,544 Posts
                    What's the snippet with the ID of 1?

                    The problem is around line 100 of that snippet.
                      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
                      • 33982 ☆ A M B ☆
                      • 476 Posts
                      Hey Bob,

                      getResources has an ID of 1.

                      http://screencast.com/t/2WqAuVsf1jF
                      [ed. note: flinx777 last edited this post 13 years, 7 months ago.]
                        Precision Web Development ... SmashStack.com