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

    after moving a site between 2 server the manager stopped working.

    When i try to login:
    - with incorrect user/pass it correctly tell me that user or pass are incorrect
    - with correct login information the site start loading and never stop until timeout.

    Frontend is working ok, even if I manually delete cache.
    I moved the site following the official guide, config seem ok and I used the setup script twice.

    What can I do?

    EDIT: Modx 2.3.3
      • 15622
      • 5 Posts
      I uploaded a MODX revo test site from scratch on the same server and cant login in this one either. So it seem a server problem.

      The server use a nginx server as a proxy with pass php request to apache+php. Can this be the problem? MODx Evolution work out of the box with this config.
        • 26681 MODX Staff
        • 123 Posts
        Kenger my VPS used to have the same "reverse proxy" thing with nginx + Apache and MODX worked just fine.

        So is this the first time you've tried to run Revo on this server? Does it meet the server requirements, including all extensions? Also check how it's handling sessions. Look at your browser cookies and see if you have a cooke called PHPSESSID. Anything funny going on there?

        Sorry I don't have an actual solution for you, without looking directly at your server...
          [sepiariver.com] (https://sepiariver.com/)
          • 15622
          • 5 Posts
          Hi Sepla,

          yes, I disabled NGINX to make a test and the same problem occurred, so its not a problem with it.

          Yes, its the first time i used MODX Revo on this server, i moved the site from my previous server to a new one in digitalocean.
          Before asking I checked the server requirements and they seem ok to me. If you want i can send you a link to the site phpinfo.

          Yes, i have the PHPSESSID cookie.

          There is some modx log to check? I dont have any php error in apache log.

          Thanks for your answer, i really appreciate it.
            • 26681 MODX Staff
            • 123 Posts
            Sure, please provide a URL to the phpinfo as well as the manager URL. If you want to keep things private you can email me at [email protected]

            Thanks
              [sepiariver.com] (https://sepiariver.com/)
              • 15622
              • 5 Posts
              After some digging in MODx source the problem seem to be related to one of the dashboard's widget. If i remove the code that load dashboard widgets the manager start working again.
                • 3749
                • 24,544 Posts
                Which widget?
                  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
                  • 15622
                  • 5 Posts
                  I have no idea and I dont know how I could test it tongue
                  I commented out the whole widgets inclusion loop.

                  At this point i assume its a problem with the server and not with a specific widget. Could a widget have problem with open_basedir?

                  PS: I learned MODx Evo years ago using your guides! Thank you.
                    • 47401
                    • 295 Posts
                    it may be that a widget is using the old unc path, ip or domain details. i have had the same before, when you move an instance of modx. If you can get access to a linux command line for your hosting you can run a command to check any hard coded paths that are showing the wrong unc path or even domain. its then just a simple case of manually changing the hard coded path, deleting core/cache contents manually, delete client cache and that should resolve your issue.
                      • 3749
                      • 24,544 Posts
                      Thanks for the kind words.

                      If disabling all the widgets fixes it, it's pretty likely that the problem is in one or more widgets. Do you have any widgets other than the ones MODX installs on a fresh install? If not, I would suspect the configuration check widget. I thought there was a System Setting to turn it off, but I can't find one.

                      It's possible to disable individual widgets in the database, though it's kind of tricky.

                      I also like comp_nerd26's idea. If you have command-line access it's worth a try. If you don't, you may still be able to search for the old domain name in the DB with PhpMyAdmin.
                        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