We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42302
    • 2 Posts
    I just moved a site on Revo 2.2.4 to a new host and worked out all the kinks (frontend works perfectly, friendly urls work, etc) except my manager looks like this:

    http://i.imgur.com/bTB2s.jpg

    The login page itself looks similar, as if there's no styles, but login works and takes me to the page above. None of the links inside work.

    What I already did:
    - Updated paths in /core/config/, /manager/, /connectors/ and the root config file
    - Updated htaccess
    - Cleared cache and history more times than I can count
    - Downloaded a fresh modx install, uploaded the setup folder to the new server and ran setup. No errors, except in the end it took me to sitename.com/manager/ instead of sitename.com/ekr/manager, which is where the manager is actually located on the new server.
    - Set compress_js and compress_css to 0 via phpmyadmin

    Now I'm stumped sad Please help! [ed. note: alleji last edited this post 11 years, 5 months ago.]
      • 40092
      • 265 Posts
      Have you checked with for instance firebug or by looking in the source if and where the path to your CSS file goes?
      Could be that the path is broken, or maybe .htacces is rewriting the path to it.

      Edit: do check your console (in chrome by pressing F12) and see if anything comes up.
        • 42302
        • 2 Posts
        You are right, the paths were broken.

        I haven't finished fixing everything yet - TinyMCE doesn't work for example, but I'm sure I'll figure it out now that I got a working manager, thanks! smiley

        Turns out I only added the subfolder to the second line in config here when I actually needed to add it to BOTH second and third lines.

        if (!defined('MODX_CONNECTORS_PATH')) {
            $modx_connectors_path= '/blahblah/subfolder/connectors/';
            $modx_connectors_url= '/subfolder/connectors/';
            define('MODX_CONNECTORS_PATH', $modx_connectors_path);
            define('MODX_CONNECTORS_URL', $modx_connectors_url);
        }
        if (!defined('MODX_MANAGER_PATH')) {
            $modx_manager_path= '/blahblah/subfolder/manager/';
            $modx_manager_url= '/subfolder/manager/';
            define('MODX_MANAGER_PATH', $modx_manager_path);
            define('MODX_MANAGER_URL', $modx_manager_url);
          • 40045
          • 534 Posts
          Did you do all the stuff mentioned here: http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server

          maybe workspace paths in databse?
          or try to re-run setup?
            • 42513
            • 6 Posts
            I'm having the same issue after copying a site to a subdirectory to reskin it. I'm stuck at the spot where the original poster left off.
            I've got the manager working, etc, but haven't moved past the missing css, images and links not going anywhere from the homepage.
            I have done everything here: http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server

            but it is possible that I don't have the .htaccess file set up correctly. I have done this with 80+ sites in the past, so I have no idea what is wrong this time. I've changed the config files, and the manager is operational; but all the paths for images, etc. have the subdirectories stripped out. The server is different this time though; grid server.

            Suggestions?
            Thanks in advance
            • Sounds like you need to check the config.inc.php file again and check the assets_path setting.

              if (!defined('MODX_ASSETS_PATH')) {
                  $modx_assets_path= '/Users/sottwell/Desktop/Working/htdocs/revo226/assets/';
                  $modx_assets_url= '/revo226/assets/';
                  define('MODX_ASSETS_PATH', $modx_assets_path);
                  define('MODX_ASSETS_URL', $modx_assets_url);
              }
              


              Or possibly also check your templates to make sure the <bas href=... isn't hard-coded.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 42513
                • 6 Posts
                Thanks sottwell, I did double check and it's set up the same as the manager path that's working.
                Since clicking on the links on the home page brings up a forbidden error (403?), I think it's because I have it installed in this sort of directory:
                mysub.domain.com/subdirectory/

                So really, it's in a subfolder of a subdomain. I thought it would work because you can install into subdirectories for other languages/versions I believe, and I got no errors on install, but I think it's the server setup and modx. I'm getting the sort of problems that are apparently typical for not having a dns entry on the server. The subdomain I'm working on has a dns entry, so I thought it would work.

                I think I'm going to have to give up and create a new domain, or at least a completely separate subdomain, which I was trying to avoid having the client pay for.
                  • 42513
                  • 6 Posts
                  Oh, but to give a bit more info, the paths to the assets are being output with the subdirectory stripped out.
                  They should be this:
                  http://mysub.domain.com/subdirectory/assets/images/image.jpg

                  but they are:
                  http://mysub.domain.com/assets/images/image.jpg

                  So yeah. That's a whole separate issue from the broken links I think. I do have it as /subdirectory/assets/ in the assets url and path in the config file.
                  • Now that sounds more like an .htaccess issue; I ran across that just the other day myself, and while I thought I had fixed the RewriteBase line I had accidentally edited the wrong .htaccess file! Not to say that's what your problem is, but I can definitely say that it's one reason that it can happen.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 42513
                      • 6 Posts
                      Yeah! That's what it seems like to me. I edited it to be like this:

                      RewriteBase /subdirectory

                      but all that does is redirect everything to where the index.php is and reload it. Doesn't fix any broken paths. I'm sure there's something I'm missing. I have no idea beyond basics of what to do in the .htaccess file.

                      Thanks again for your help. I'm going to have to attack this tomorrow with a fresh brain. [ed. note: lisadmarie last edited this post 11 years, 4 months ago.]