We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50464
    • 3 Posts
    My company has three separate MODX Revo 2.2.2 installations that live on a single SUSE server. There are three separate domain names. Over time, it appears that some links are failing to be rendered correctly. For example, after a month or so, on an arbitrary page, the top corner "home" link will be rendered on www.domainname.org as www.otherdomain.com. Clearing the cache (via Clear Cache) will rectify the issue. Anyone have any idea why this is happening? Perhaps this is a fundamental limitation of setting up the installation this way? It seems more likely that setting up a multi-context, multi-domain site in one MODX installation would potentially result in this issue and not setting it up in this three separate MODX installation fashion. Note that I wasn't responsible for setting it up this way, so don't blame me if this is a horrendous idea wink

    Any advice on how to eliminate this issue either by a simple fix or by a major server adjustment would be appreciated. I feel compelled to move to a single MODX installation with several contexts/domains since it makes more sense in my head, so anyone who has a similar setup should feel free to chime in with some pros or cons to making this switch. That may be an entirely separate issue though.

    I have full access to get anywhere and look up anything, so if you need more info, let me know. Thanks in advance. [ed. note: tylerdurden last edited this post 10 years, 6 months ago.]
      • 3749
      • 24,544 Posts
      Some of the early 2.2 versions had trouble with cache corruption (as well as serious security issues). Upgrading might (or might not) solve your problem.

      Make sure your base href statement is in all templates and is called uncached (with the exclamation point):

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


      Also, make sure you have appropriate Context Settings for all front-end contexts (e.g., site_start, http_host, etc.).
        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
        • 50464
        • 3 Posts
        BobRay, thanks for the advice. I went through all of the templates, and one of the domains had several templates that were not using the site_url. I'll keep an eye on it to see if the issue appears again and let you know.

        Thanks again for the help.