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.
-
☆ A M B ☆
- 2,475 Posts
How is your Media Source defined? (Under the Tools menu).
If there is a leading slash on the path and/or url setting in the Filesystem Media Source properties, you might try removing it.
-
☆ A M B ☆
- 24,524 Posts
You need a trailing slash, but if the path and URL are relative, no leading slash.
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.