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

    We have recovered from the hack, and I have been able to upgrade the site and get the front-end working. But the Manager is all unstyled and not running. I can log in but nothing else, the login screen is unstyled too.

    I have upgraded 3 times and even re downloaded and re uploaded once (the third try).

    Any ideas?

    See the screenshot...

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

      • 17301
      • 932 Posts
      It sounds like the paths in the config files for the manager aren't setup correctly so double check that. Also try clearing cache and also try inspecting the source code of the manager and look at where it's trying to find the .css file, and then check what the actual path should be, to help you diagnose the issue.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 36467
        • 73 Posts
        check your paths in core/config/config.inc.php file
          • 46235
          • 15 Posts
          I would recommend clearing your /core/cache/* folder to ensure it's not cached some bad URLS for files after the upgrades.

          Also have you performed the Modx hardening for the website?
            • 38783
            • 571 Posts
            Can you try logging in to the manager using Chrome in Incognito mode?
              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
              • 6491
              • 70 Posts
              Hi all,

              Here's what I have tried ...
              - Re-Upgraded Modx 3 times. Following Bob's guide (https://bobsguides.com/modx-upgrade-faq.html)
              - Turned off CSS and JS compression with PHPMyAdmin.
              - Deleted all the files in the /core/cache/ folder, then I cleared the Sucuri cache. (100 times)
              - Installed a new Modx install, in a subdirectory. It works fine.
              - Compared paths (from working Modx) in config.core.php, /core/config/config.inc.php and /manager/config.core.php. They are correct. Here they are ...
              -- $modx_processors_path= '/home/kg4i1kpk3e3t/public_html/core/model/modx/processors/';
              -- $modx_connectors_path= '/home/kg4i1kpk3e3t/public_html/connectors/';
              -- $modx_manager_path= '/home/kg4i1kpk3e3t/public_html/manager/'; <-- this one doesn't work
              -- $modx_base_path= '/home/kg4i1kpk3e3t/public_html/';
              -- $modx_assets_path= '/home/kg4i1kpk3e3t/public_html/assets/';
              - Tried loging in from different browsers, including Chrome Ingonito mode.

              The Manager and Login pages are still not getting the proper paths to the CSS and JS files. When viewing the source code from the manager or login page the paths to the CSS and JS read like this ...
              <link rel="stylesheet" type="text/css" href="/assets/ext3/resources/css/ext-all-notheme-min.css" />
              ... it should look like this ...
              <link rel="stylesheet" type="text/css" href="/manager/assets/ext3/resources/css/ext-all-notheme-min.css" />
              ... /manager/ is missing from the links.

              The front end works perfectly. [ed. note: DanLoffler last edited this post 8 years, 1 month ago.]
                • 36467
                • 73 Posts
                opening "www.yourdomain.com/assets/ext3/resources/css/ext-all-notheme-min.css" this path gives 404 ?
                  • 6491
                  • 70 Posts
                  Quote from: amitpatil at Aug 09, 2018, 02:48 PM
                  opening "www.yourdomain.com/assets/ext3/resources/css/ext-all-notheme-min.css" this path gives 404 ?
                  I know, that's the problem. I can't get the manager paths corrected.

                  It should go to "www.yourdomain.com/manager/assets/ext3/resources/css/ext-all-notheme-min.css"
                  • discuss.answer
                    • 17301
                    • 932 Posts
                    if (!defined('MODX_MANAGER_PATH')) {
                        $modx_manager_path= '/home/kg4i1kpk3e3t/public_html/manager/';
                        $modx_manager_url= '/manager/';
                        define('MODX_MANAGER_PATH', $modx_manager_path);
                        define('MODX_MANAGER_URL', $modx_manager_url);
                    }
                    if (!defined('MODX_BASE_PATH')) {
                        $modx_base_path= '/home/kg4i1kpk3e3t/public_html/';
                        $modx_base_url= '/';
                        define('MODX_BASE_PATH', $modx_base_path);
                        define('MODX_BASE_URL', $modx_base_url);
                    }
                    
                    ...
                    
                    if (!defined('MODX_ASSETS_PATH')) {
                        $modx_assets_path= '/home/kg4i1kpk3e3t/public_html/assets/';
                        $modx_assets_url= '/assets/';
                        define('MODX_ASSETS_PATH', $modx_assets_path);
                        define('MODX_ASSETS_URL', $modx_assets_url);
                    }
                    


                    Do you have this in your core config?
                      ■ email: [email protected] | ■ website: https://alienbuild.uk

                      The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                      • 6491
                      • 70 Posts
                      Quote from: lkfranklin at Aug 09, 2018, 04:36 PM
                      if (!defined('MODX_MANAGER_PATH')) {
                          $modx_manager_path= '/home/kg4i1kpk3e3t/public_html/manager/';
                          $modx_manager_url= '/manager/';
                          define('MODX_MANAGER_PATH', $modx_manager_path);
                          define('MODX_MANAGER_URL', $modx_manager_url);
                      }
                      if (!defined('MODX_BASE_PATH')) {
                          $modx_base_path= '/home/kg4i1kpk3e3t/public_html/';
                          $modx_base_url= '/';
                          define('MODX_BASE_PATH', $modx_base_path);
                          define('MODX_BASE_URL', $modx_base_url);
                      }
                      
                      ...
                      
                      if (!defined('MODX_ASSETS_PATH')) {
                          $modx_assets_path= '/home/kg4i1kpk3e3t/public_html/assets/';
                          $modx_assets_url= '/assets/';
                          define('MODX_ASSETS_PATH', $modx_assets_path);
                          define('MODX_ASSETS_URL', $modx_assets_url);
                      }
                      


                      Do you have this in your core config?

                      That was it. Thank you soooo much Alienbuild. I just needed to add change this ...
                      $modx_manager_url= '/'; ... to this ... $modx_manager_url= '/manager/';.

                      I should have spotted that and figured it out myself.

                      Mystery solved.

                      Thanks again.

                      Dan