We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38787
    • 74 Posts
    Edit: See Yama's reply for a Core patch/hotfix.

    I'm not sure if 1.0.9 has a new parsing engine, but the following code no longer works:

    [[Ditto? &config=`@FILE {{template-path}}config/ditto/myconfig.php`]]


    In previous version of MODX, the chunk {{template-path}} would be evaluated first, and then passed to the Snippet as a parameter.

    In version 1.0.9, it seems that the raw value {{template-path}} is passed through, which causes Ditto to try to include() a file with a totally incorrect path like this:

    /var/www/mysite/{{template-path}}config/ditto/myconfig.php


    when it really should look like this:

    /var/www/mysite/correct/template/path/config/ditto/myconfig.php


    I can easily fix Ditto to first parse the &config parameter, but that's a core change I would prefer not to do.

    My only workaround is to completely avoid using a chunk in the snippet parameter.

    Can anyone shed light on this issue? [ed. note: atmmarketing last edited this post 10 years, 11 months ago.]
    • Please try this patch overwrite into manager/includes/
        • 38787
        • 74 Posts
        Well whaddaya know, that patched file fixes the problem.

        Yama, can you debrief us on the cause and fix? I'm actually interested.

        Also, do you need me to submit this as an issue to Tracker?
        • Quote from: atmmarketing at Apr 18, 2013, 03:50 AM

          Yama, can you debrief us on the cause and fix? I'm actually interested.
          Also, do you need me to submit this as an issue to Tracker?
          Thanks. Could you submit this issue to tracker?
            • 38787
            • 74 Posts
            Yama, this has been submitted to Tracker: http://tracker.modx.com/issues/9845

            And thanks for such a fast fix!