We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    That reminds me... I need to get my current client to get himself a copy of SiteCheck. No serious site should be without it!
      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
      • 48359
      • 22 Posts
      in the db the workspaces table has 1 line:
      1 Default MODX workspace {core_path} 2014-02-10 21:34:45 1


      My config file has this:

      (i added this to streamline edits)
      $prepath='D:/xampp/htdocs/testsite/';

      if (!defined('MODX_CORE_PATH')) {
      $modx_core_path= $prepath.'docs/core/';
      define('MODX_CORE_PATH', $modx_core_path);
      }

      if (!defined('MODX_PROCESSORS_PATH')) {
      $modx_processors_path= $prepath.'docs/core/model/modx/processors/';
      define('MODX_PROCESSORS_PATH', $modx_processors_path);
      }

      if (!defined('MODX_CONNECTORS_PATH')) {
      $modx_connectors_path= $prepath.'docs/connectors/';
      $modx_connectors_url= '/connectors/';
      define('MODX_CONNECTORS_PATH', $modx_connectors_path);
      define('MODX_CONNECTORS_URL', $modx_connectors_url);
      }


      Does this look right?

      I am moving from 2.2.13 (live) to 2.2.14 (local). Ive tried the cache deleting.

      Can I disable the htacess file for now?


      And do I need htdocs/testsite/ (all the folders) OR can I have htdocs/testsite/(contents of docs only) since it seems everything important is in the docs folder?

      I understand absolute urls and relative - obviously id prefer relative! this is a real pain. I want to get going on ModX - it looks exciting for a dirty php coder like me. No restrictions smiley
        • 48359
        • 22 Posts
        plus I also dont know what template file I need to edit to change the base_url.. can anyone give me a hint here? Do I need to look for a tpl file and find the head code??
          • 39404
          • 175 Posts
          stalemate resolution associate Reply #14, 12 years, 2 months ago
          Quote from: fstarocka at Jul 19, 2014, 10:02 AM
          plus I also dont know what template file I need to edit to change the base_url.. can anyone give me a hint here? Do I need to look for a tpl file and find the head code??

          In Manager, for the page (found in resources) you're trying to load, it will either specify the template used as a property to that resource. If it is using a template, note the name of the template, then go to the Elements tab, and then go into Templates, open up the template the page uses and you should see it there. If not, you can add it using a setting or hard code it if all else fails.

          Regards,
          Tom
            • 48359
            • 22 Posts
            i cant access the manager currently. I just get a bunch of text - no css. something not working at all here..
              • 39404
              • 175 Posts
              stalemate resolution associate Reply #16, 12 years, 2 months ago
              Quote from: fstarocka at Jul 19, 2014, 10:27 AM
              i cant access the manager currently. I just get a bunch of text - no css. something not working at all here..

              If that's the case, I'd start by doing what Bob suggested: running an install on the local machine. Sometimes files get corrupted when being transferred to and from a server. Just download the proper version of MODX and get that up and running first.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                It looks like you missed the lines for setting the ASSETS_PATH, it's almost at the bottom of the config.inc.php file.

                What I do is use the search-and-replace "replace all" feature in my text editor to replace all instances of /oldpath/oldstuff/ to /newpath/newstuff/. In the sample you showed above, you don't have at least two other definitions. You need to adjust all of these:

                • $modx_core_path
                • $modx_processors_path
                • $modx_connectors_path
                • $modx_connectors_url
                • $modx_manager_path
                • $modx_manager_url
                • $modx_base_path
                • $modx_base_url
                • $modx_assets_path
                • $modx_assets_url
                  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
                  • 48359
                  • 22 Posts
                  cool ill double check, that was just a sample of my page, no everything, since it contained most of the rest. Ive actually just made a basic variable so i dont have to edit 10 lines @ a time.

                  Ill check again and get back - thanks. busy changing engine in my camaro so been busy with that :p
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    I once participated in changing the head gasket on a '65 Mustang. That was interesting. Much like changing servers...
                      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
                      • 3749
                      • 24,544 Posts
                      I once changed a head gasket on my son's Rabbit diesel. One of the head bolts broke off with about 1/8" sticking out. I filed it to a hex shape and used a box wrench on it. It spun right out and my son thought I was a genius. wink

                        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