We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43746
    • 10 Posts
    Hi There,

    I recently upgraded our MODx from 2.1.9 to 2.2.0pl and migrated it to a new server. Everything works except for any template that I've converted from a dynamic to a static resource.

    If I specify an absolute path to the static resource then the instances of the template work perfectly. But if I select "filesystem" as a Media Source - then I get a white screen, as if it cant find the template file. When file system is selected, the relative path to the static file is: "/assets/templates/test-template.html"

    I'm sure that there is a configuration setting is wrong, but I'm not sure where to look. Has anyone else experienced this problem? Which configuration setting should I check?


    Thanks for your help.
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      How is your Media Source defined? (Under the Tools menu).
        • 3749
        • 24,544 Posts
        If there is a leading slash on the path and/or url setting in the Filesystem Media Source properties, you might try removing it.
          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
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You need a trailing slash, but if the path and URL are relative, no leading slash.
            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
            • 43746
            • 10 Posts
            Well as it turns out it was actually something glaringly obvious - the MODX_BASE_PATH constant was wrong - doh!

            Thanks for your advice, it definitely helped me find the problem.