We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1829
    • 15 Posts
    Hello!

    I have MODX Revolution 2.1.5-pl (traditional), the problem is the same on the 3 different sites runinng this ModX version. Websites are located on the different VPS but on the same hoster.

    So, the chunk is:
    <!-- start Chunk -->
    [[!mySnippet? 
      &emailTpl=`emailChunkTpl`
      &emailFrom=`[email protected]`
      &emailFromName=`Sender`
      &emailSubject=`Subject`
      &emailTo=`[email protected]`
    ]]
    <!-- end Chunk -->

    On the page where this chunk is called even the comment lines are not shown. But if I remove 'emailFrom' and 'emailTo' params the snippet start working and the comments below and above the snippet call are shown.

    First I thought the problem with FormIt (forum topic). But now I can see that the problem is the same with all the snippets with @ symbol in the params.

    Any ideas?
      • 22303 MODX Staff
      • 10,725 Posts
      That definitely should not have any affect on the parsing. @ symbols are only used for parsing if they appear before the ? which identifies the start of the property string.
        • 3749
        • 24,544 Posts
        I can't duplicate this. Using your chunk and this snippet:

        <?php
        return '<pre>' . htmlentities(print_r($scriptProperties, true));
        


        I get this output:

        Array
        (
            [emailTpl] => emailChunkTpl
            [emailFrom] => [email protected]
            [emailFromName] => Sender
            [emailSubject] => Subject
            [emailTo] => [email protected]
        )


        I wonder if you might have a character set problem.
          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
          • 31246 ☆ A M B ☆
          • 428 Posts
          Encountered this problem was discussed on the forum (can not remember where).
          The solution was simple. This problem occurs when we call Formit not cached in chang. Try
          [[!$chunk]]
            Valentin Rasulov - Industrial design (Hobbies - Web Development)
            Development not standard projects on CMF MODx Revolution.
            Small sample of extensions