We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33608
    • 27 Posts
    I have a ModX install on my local machine. After changing its location from /Applications/MAMP/htdocs/ to /Applications/MAMP/htdocs/new-folder, the manager no longer displays a number of stylesheets and scripts. An inspection of the network traffic reveals that these files are being searched for at localhost:8888/manager instead of localhost:8888/new-folder/manager. Other files in the same page, like modx.component.js and login.js have the correct path and are loading fine. I've gone through the core.config files as per this article : https://rtfm.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server and updated the paths in the source code. I've also tried setting compress_js and compress_css to no in the systems settings table of the db and clearing core/cache, with no luck. Not sure what the problem is here! Any help is much appreciated.

    Thanks

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

      • 3749
      • 24,544 Posts
      Running setup in the new location might fix it (be sure you run it at /Applications/MAMP/htdocs/new-folder/setup/). If you have to create the setup directory, be sure it's from the exact same version of MODX.

      If that doesn't work, you can manually edit the core/config/config.inc.php file -- check all the values there. Also check the config.core.php files in the root, manager, and connectors directories.

      Delete all files in the core/cache directory after making any changes.

      When it works, rename the original directories and make sure everything still works before deleting them.
        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
      • discuss.answer
        • 33608
        • 27 Posts
        I must have been missing a line of code in the source, because I just couldn't get ModX to recognize the manager path. I ended up moving the install back to the htdocs directory and removing the references to /new-folder/ and now its working fine.
          • 3749
          • 24,544 Posts
          It's possible that deleting all files in the core/cache directory and clearing your browser cache and cookies would have fixed things.
            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