We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Sorry, my bad. It should be:

    <base href="[[++site_url]]" />


    View source should show the site URL there.


    As for the modx subdirectory thing, the solution is to copy all the MODX directories and files up one level to public_html and rerun setup there (ammoniagauge.com/setup).

    Once everything is working, you can delete the modx directory (rename it first to make sure losing it won't hurt anything).
      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
      • 40649
      • 40 Posts
      This is the html in my homepage-- is there anything in here that you can see would cause this error? I don't think it's the issue, but I want to make sure. I inherited these pages/this html from another hosting company that set it up using modx.

      
      <div id="skip">
      <a href="#side-content">Go to Navigation</a>
      <a href="#main-content">Go to Content</a></div>
      
      
      <div id="header" class="clear">
       <p id="logo"><a href="/" title="De Mar & Associates. Providing High quality products since 1953">De Mar & Associates. Providing High quality products since 1953</a></p>
       <p id="slogan">Family Owned & Operated. Call Us at 913.381.6810</p>
      </div>
      
      <div id="body" class="clear">
      <!-- End Head -->
      <div id="main-content">
      <h1>High Quality Ammonia Pressure Gauges</h1>
      <div class="float-right">
      
      <a href="/industrial.html" rel="nofollow"><img src="/assets/images/cta-01.jpg" alt="De-Mar Quality Advantage - Standard Silicon Fill, 1-Year Warrantee and Same Day Shipping on all Ammonia Gauges" title="De-Mar Quality Advantage - Standard Silicon Fill, 1-Year Warrantee and Same Day Shipping on all Ammonia Gauges"> </a>
      </div>
      
      <h2>
      Competitive Prices & Same Day Shipping
      </h2>
      <p>
      De-Mar & Associates is a premier supplier of ammonia gauge requirements for the agricultural, industrial, wholesale, OEM, and refrigeration markets. In the last 10 years we have intensified our focus on the <a href="/industrial.html">ammonia pressure gauge</a> market to bring our knowledge and customer service to an industry based on quality and service. We understand the importance of having local inventory and are based strategically in the central United States with the ability to provide <a href="/industrial.html">stock ammonia gauges</a> with 2 ½" and 4" dials to all portions of the country in a timely manner.
      </p>
      <h2>
      Our Ammonia Gauges are All Silicone Filled & are Made to Last
      </h2>
      <p>
      <img align="left" src="/assets/images/home_img_th.jpg" alt="De-Mar & Associates Ammonia Gauges are Made to Last" title="De-Mar & Associates Ammonia Gauges are Made to Last" style="padding:6px" />The De-Mar & Associates <a href="/industrial.html"> ammonia pressure gauge is all stainless steel</a> and is designed for rugged performance in the measurement of vacuum and pressure for any system or piece of equipment that is charged with ammonia. All dials are furnished standard with corresponding temperature scales, where an inner black arc indicates pressure and an outer red arc indicates the corresponding temperature. Our special welded tube and socket design provides a rugged field tested design preferred by service technicians. Each <a href="/industrial.html">stock ammonia gauge is silicone filled</a> to withstand harsh temperature environments and the physical shock of vibrations. Please call to confirm our competitive prices and our ability to ship your ammonia pressure gauge today!
      </p>
      </div>
      
      <div id="side-content">
      <ul id="main-navigation">
       <li><a href="/index.html" rel="nofollow">Home</a></li>
       <li><a href="/about.html">About Us</a></li>
       <li><a href="/industrial.html">Gauge Standard Features</a></li>
       <li><a href="/8-inch-installations.html"> 8.5" Installations</a></li>
       <li><a href="/utility-grade-installations.html">Utility Grade Installations</a></li>
       <li><a href="/agricultural.html">Agricultural Installations</a></li>
       <li><a href="/panel.html">Panel Installations</a></li>
       <li><a href="/custom.html">Custom Gauge Designs</a></li>
       <li><a href="/contact.html" rel="nofollow">Contact Us</a></li>
      </ul>
      <div>
      <a href="/contact.html" rel="nofollow"><img class="image" src="/assets/images/cta-02.jpg" alt="Receive 10-15% discount off your first order" title="You Will Receive 10-15% Off Your First Order" /></a>
      </div>
      <address>
      <p>De-Mar & Associates<br />
      4490 Indian Creek Parkway<br />
      Overland Park, KS 66207</p>
      
      <p>Phone: 913.381.6810<br />
      Fax: 913.381.9332<br />
      Hours: 8:30am - 5pm CST</p>
      <p><img src="/assets/images/overland-park.jpg" id="overland" alt="Overland Park Chamber of Commerce" /></p>
      </address>
      </div>
      
      <div id="affiliates">
      	<h3>Our Groups & Associations</h3>
      	<div id="logo-block">
      	<ul class="clear">
      	 <li><a href="http://www.NFIB.com" id="nfib" title="NFIB (National Federation of Independent Business) " rel="nofollow">nfib</a></li>
      	 <li><a href="http://www.MANAonline.org" id="mana" title="Manufacturers' Agents National Association">mana</a></li>
      	 <li><a href="http://www.ymcarockies.org" id="ymca" title="YMCA of the Rockies" rel="nofollow">ymca</a></li>
      	 <li><a href="http://www.jamidamerica.org" id="junior-achv" title="Junior Achievement of Middle America, Inc." rel="nofollow">junior-achv</a></li>
      	 <li><a href="http://www.bmtinfonet.org" id="bmt" title="Blood and Marrow Transplant Information Network" rel="nofollow">bmt</a></li>
      	</ul>
      	<ul class="clear">
      	 <li><a href="http://www.stjude.org" id="st-jude" title="St. Judes Childrens Hospital" rel="nofollow">st-jude</a></li>
      	 <li><a href="http://www.4spe.org" id="spe" title="SPE (Society of Plastics Engineers) ">spe</a></li>
      	 <li><a href="http://www.childrensmercy.org" id="chldrn-mrcy" title="Children's Mercy" rel="nofollow">chldrn-mrcy</a></li>
      	 <li><a href="http://www.kcashrae.org" id="shraea" title="ASHRAE - Kansas City Chapter " rel="nofollow">shraea</a></li>
      	 <li><a href="http://www.unmc.edu" id="nmc" title="University of Nebraska Medical Center " rel="nofollow">nmc</a></li>
      	 </ul>
      	 </div>
      </div></div>
      <div id="footer">
      <p>Copyright © 2007 De-Mar & Associates - Ammonia Gauges, All Rights Reserved <a href="/sitemap.html">Sitemap</a></p>
      </div>
      
      <script type="text/javascript">
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
      </script>
      <script type="text/javascript">
      var pageTracker = _gat._getTracker("UA-1952959-1");
      pageTracker._initData();
      pageTracker._trackPageview();
      </script>
        • 40649
        • 40 Posts
        I did all of that and then ran setup, so my core.config.php looks like this now. Do I need to change this for all of it to copy over correctly? I now can't get into my manager and am receiving an error message.

        if (!defined('MODX_CORE_PATH')) {
            $modx_core_path= '/home/demarc6/public_html/ammoniagauge/core/';
            define('MODX_CORE_PATH', $modx_core_path);
        }
        if (!defined('MODX_PROCESSORS_PATH')) {
            $modx_processors_path= '/home/demarc6/public_html/ammoniagauge/core/model/modx/processors/';
            define('MODX_PROCESSORS_PATH', $modx_processors_path);
        }
        if (!defined('MODX_CONNECTORS_PATH')) {
            $modx_connectors_path= '/home/demarc6/public_html/ammoniagauge/modx/connectors/';
            $modx_connectors_url= '/modx/connectors/';
            define('MODX_CONNECTORS_PATH', $modx_connectors_path);
            define('MODX_CONNECTORS_URL', $modx_connectors_url);
        }
        if (!defined('MODX_MANAGER_PATH')) {
            $modx_manager_path= '/home/demarc6/public_html/ammoniagauge/modx/manager/';
            $modx_manager_url= '/modx/manager/';
            define('MODX_MANAGER_PATH', $modx_manager_path);
            define('MODX_MANAGER_URL', $modx_manager_url);
        }
        if (!defined('MODX_BASE_PATH')) {
            $modx_base_path= '/home/demarc6/public_html/ammoniagauge/';
            $modx_base_url= '/';
            define('MODX_BASE_PATH', $modx_base_path);
            define('MODX_BASE_URL', $modx_base_url);
        }
        if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
            $isSecureRequest = false;
        } else {
            $isSecureRequest = ((isset ($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') || $_SERVER['SERVER_PORT'] == $https_port);
        }
        if (!defined('MODX_URL_SCHEME')) {
            $url_scheme=  $isSecureRequest ? 'https://' : 'http://';
            define('MODX_URL_SCHEME', $url_scheme);
        }
        if (!defined('MODX_HTTP_HOST')) {
            if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
                $http_host='www.ammoniagauge.com';
                define('MODX_HTTP_HOST', $http_host);
            } else {
                $http_host= $_SERVER['HTTP_HOST'];
                if ($_SERVER['SERVER_PORT'] != 80) {
                    $http_host= str_replace(':' . $_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST
                }
                $http_host .= ($_SERVER['SERVER_PORT'] == 80 || $isSecureRequest) ? '' : ':' . $_SERVER['SERVER_PORT'];
                define('MODX_HTTP_HOST', $http_host);
            }
        }
        if (!defined('MODX_SITE_URL')) {
            $site_url= $url_scheme . $http_host . MODX_BASE_URL;
            define('MODX_SITE_URL', $site_url);
        }
        if (!defined('MODX_ASSETS_PATH')) {
            $modx_assets_path= '/home/demarc6/public_html/ammoniagauge/modx/assets/';
            $modx_assets_url= '/modx/assets/';
            define('MODX_ASSETS_PATH', $modx_assets_path);
            define('MODX_ASSETS_URL', $modx_assets_url);
        }
          • 3749
          • 24,544 Posts
          I don't see anything there that would cause trouble. There are double hrefs in lines 65-85, but I'm guessing that's just the MODX forums mangling the code.

          I would take out the JavaScript at the bottom just in case, and save it somewhere, but I doubt if that's your problem.

          If you're going to move the files up to the public_html directory, you might as well do it now. If you're going to work on straightening out the paths, you might as well have them be correct for the finished site.


          Also, paste your template and make sure that all the pages are set to use that template.



          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html [ed. note: BobRay last edited this post 11 years, 8 months ago.]
            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
            • 40649
            • 40 Posts
            Excellent- thanks! I am now up on the ammoniagauge.com website. However, I am still not seeing anything except a blank brown screen. I also think I'm "live" now online since I'm no longer in a sub-folder... which brings a new sense of urgency to figuring out why my pages aren't coming up. What else can I try... I'm really stressing now. smiley
              • 40649
              • 40 Posts
              When I view the page that is supposed to be "site start" it's URL is this: http://www.ammoniagauge.com/index.php?id=25

              The URL of the page that comes up on view site is: www.ammoniagauge.com.

              There's a disconnect there, for sure, but they're both still blank, regardless.
                • 40649
                • 40 Posts
                Okay- here's the latest... I read your guide (which I've read a million times), but realized I didn't have a [[*content]] tag at the bottom of my template. So, I did that and now the "view site" in the manager is connected to www.ammoniagauge.com and is pulling the correct homepage with all the html and the right template. However, the rest of the pages are all pulling from the old host still and when I "view" my pages in the editor for that resource it still comes up with this URL with the page id attached and not the ammoniagauge.com/about.html (for example), etc.: http://www.ammoniagauge.com/index.php?id=25.
                  • 3749
                  • 24,544 Posts
                  OK, progress. wink

                  Now you see why I wanted you to paste your template (still a good idea).

                  About the links -- I'm going to guess that the page links throughout the site are hard-coded, that's why it's grabbing the old pages. They all need to be changed to look like this (where the number is the id of the page being linked to):

                  <a href ="[[~12]]">Link Text</a>



                  You could do that Manually, but using Wayfinder for the Menus will fix it for the menus. Since the site is live, you might want to fix it manually and leave and make the jump to Wayfinder later. As you change each one, you'll see the URL change to the ?id=## form. That's normal.

                  You're seeing ?id=## in the URL because you don't yet have Friendly URLs turned on, but I'd suggest that you leave them off until you get all the links fixed and working.

                  At that point, you'll want to restore the .htaccess file (the original MODX one should work) and turn the FURLs System Setting on (then clear the site cache). Everything should be presentable at that point.

                  You'll also want to uncomment the code section in the .htaccess file that forces www URLs or the section that forces non-www URLS (but not both). Make sure the index.html file is no longer there in the MODX root.



                  ------------------------------------------------------------------------------------------
                  PLEASE, PLEASE specify the version of MODX you are using.
                  MODX info for everyone: http://bobsguides.com/modx.html

                  [ed. note: BobRay last edited this post 11 years, 8 months ago.]
                    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
                    • 40649
                    • 40 Posts
                    Hi- I did everything you said and all is working fabulously now! What do you mean by this statement:
                    You'll also want to uncomment the code section in the .htaccess file that forces www URLs or the section that forces non-www URLS (but not both). Make sure the index.html file is no longer there in the MODX root.

                    Does that mean to put a */ at the beginning of one of those sections of text (I found them in the .htaccess file)? Then do I put a /* at the end? I've commented out text before in php, but want to be sure I'm on the same page before I make this change. Also- do I put the comment symbols to the left or right of the # sign?

                    Thanks for all your help!
                    • The # is the comment indicator. Remove the # to uncomment the lines. The ones Bob is referring to are commented in the original ht.access file, and thus are not active until uncommented.
                        Frogabog- MODX Websites in Portland Oregon
                        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                        Having server issues? These guys have MODX Hosting perfected - SkyToaster