We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi all - in the process of recovering a hacked 2.1.11 site - and had to manually replace all hijacked php/js files across the site... site now loads in front end but when I try and view the manager I get a server 500 error - tried manual empty of core/cache folder - ran setup - even replaced all core folders from original 2.1.11 build but still it wont appear....

    Looking in core/cache/logs - I get this error > (ERROR @ /public_html/core/model/modx/modmanagerresponse.class.php : 114) PHP warning: Parameter 1 to modManagerController::getInstance() expected to be a reference, value given

    Any ideas on a fix so I can get the manager back, and then upgrade to latest version?

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

      • 3749
      • 24,544 Posts
      It could be a problem with one of the dashboard widgets or (less likely) a CMP.

      For starters, I would empty this table (but don't delete the table itself):

      modx_dashboard_widget_placement

      That shouldn't delete any widgets, it will just remove them from any dashboards.

      Delete all files in the core/cache directory before trying to log in.
        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
        • 8168
        • 1,118 Posts
        Quote from: BobRay at Jul 26, 2018, 04:59 AM
        It could be a problem with one of the dashboard widgets or (less likely) a CMP.

        For starters, I would empty this table (but don't delete the table itself):

        modx_dashboard_widget_placement

        That shouldn't delete any widgets, it will just remove them from any dashboards.

        Delete all files in the core/cache directory before trying to log in.

        Afraid that didn't work....
          • 38783
          • 571 Posts
          I am sure you did this, but after following Bobs suggestion did you manually empty the core/cache folder again?
            If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

            email: [email protected] | website: https://andytough.com
          • What does your PHP/Apache error log have to say about the 500 error?
              Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

              Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
              • 8168
              • 1,118 Posts
              Quote from: andytough at Jul 26, 2018, 09:15 AM
              I am sure you did this, but after following Bobs suggestion did you manually empty the core/cache folder again?

              yes I did wink
                • 8168
                • 1,118 Posts
                Quote from: markh at Jul 26, 2018, 10:30 AM
                What does your PHP/Apache error log have to say about the 500 error?

                Nothing Mark...

                I would think this issue is due to the fact the site had all its JS files overwritten with injected code - so I went through and replaced them with original file contents.. but for some JS files that had been infected I didnt have an original copy from a backup of this site so I used from other sites... I guess I have broken it that way... but would think the fact I have replaced all the folders on the server with ones from fresh install (albeit an old version) it should work? I've run setup in upgrade mode and reported no errors??
                  • 3749
                  • 24,544 Posts
                  I just learned that the security and new feed System Settings are set to http, rather then https. That could crash things if you're site is https and the feeds are enabled. Try going into the modx_system_settings and correcting the URLs for feed_modx_security and feed_modx_news. I would also disable them for now by setting feed_modx_news_enabled and feed_modx_security_enabled to 0.

                  Be sure to manually delete the cache files before logging in.


                  [ed. note: BobRay last edited this post 5 years, 8 months ago.]
                    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
                    • 37031
                    • 93 Posts
                    Quote from: BobRay at Jul 26, 2018, 04:59 AM
                    It could be a problem with one of the dashboard widgets or (less likely) a CMP.

                    For starters, I would empty this table (but don't delete the table itself):

                    modx_dashboard_widget_placement

                    That shouldn't delete any widgets, it will just remove them from any dashboards.

                    Delete all files in the core/cache directory before trying to log in.

                    Thank you thank you thank you Bob! This solved my issue along with changing the http feeds to https.

                    Dubbs, did you figure out what was causing the issue?

                    Note: I am over my head with literally 13 site upgrades. All right before my vacation... my wife is not happy :'(
                      • 3749
                      • 24,544 Posts
                      As a home-improvement contractor once told me, "If the wife's not happy, nobody's happy." wink

                      You do have the UpgradeMODX extra, right?

                        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