We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4707
    • 73 Posts
    looks like the placeholders are not getting replaced in the report chunk. here is the html source of the email i’ve got:
    To: [email protected]
    Subject: Questions
    From: Cassiel <[email protected]>
    X-Priority: 3
    X-Mailer: PHPMailer [version 1.72]
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="iso-8859-1"
    Date: Wed, 11 Oct 2006 19:28:23 -0400
    
    <p>This is a message sent by <a href="mailto:[+contact_email+]?subject=RE: [+subject+]">[+contact_name+]</a> using the Contact form. The details of the message follow below:</p>
    <table>
    <tr valign="top"><td>Name:</td><td>[+contact_name+]</td></tr>
    <tr valign="top"><td>Email:</td><td>[+contact_email+]</td></tr>
    <tr valign="top"><td>Subject:</td><td>[+subject+]</td></tr>
    <tr valign="top"><td>Message:</td><td>[+message+]</td></tr>
    </table>
    


    the placeholders are working great in the snippet call though.

    edit:
    found the problem. the eform.inc.php file should have a line like:
    $report		=  formMerge($report,$fields);

    after line 283.

      • 4707
      • 73 Posts
      last one for now...

      the eform attribute doesn’t get unset in the rendered html page.
      <p><label for="contact_name">Your Name</label><br />
      	<input type="text" id="contact_name"name="contact_name" size="40" maxlength="60" eform=":string:1" /></p>
        • 30223
        • 1,010 Posts
        Thanks Cassiel,

        I’ll rectify this in the morning (midnight here). Just been at it for nearly 26 hours straight. Can’t see code through the keywords any..zzzzzz,...
          • 4707
          • 73 Posts
          no problem. glad i could help smiley
            • 30223
            • 1,010 Posts
            Updated the zip file with fixes to the above errors and added raymond’s suggestion. See top post for changes.
              • 11214
              • 225 Posts
              Hello,

              I try to install the version 1.3 on a beta version MODx 0.9.5 3 (rev on 1533).

              When I try to create the snippet, he says to me:

              Not Acceptable
              An appropriate representation of the requested resource /manager/index.php could not be found on this server.


              A problem of rights on directories?

              I try with the version 1.4, but I am worried...
                Verum Index sui et falsi
                • 11214
                • 225 Posts
                Yes, i’have exactly the same problem with the 1.4 snippet....

                An idea to solve this ?
                  Verum Index sui et falsi
                  • 10487 MODX Staff
                  • 1,535 Posts
                  Nothing to do with rights as far as I can know.

                  I’m guessing that this is mod_security issue with your host ... this has been discussed before on the forums but I don’t have any links to the discussions, a search should give you some pointers on what to do.

                  Hope that helps,
                  Garry

                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Usually there is some variable or something like $cc, which your host will not allow to be uploaded. One solution is to create an empty snippet, then manually add the snippet code to the database in the appropriate field using phpMyAdmin or whatever database management tool your host provides.
                      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
                      • 11214
                      • 225 Posts
                      Thank you very much for your answer. I thus brought in manually the snippet having created its name in the base.

                      But I have now an another problem (I consider independent but from big beginner):

                      When I place the call of the snippet into my page of feedback, like this :

                      [[eForm?
                      &formid=`feedbackForm`
                      &to=`[email protected],[email protected],[email protected]`
                      &tpl=`eFeedBackForm`
                      &report=`eFeedbackReport`
                      &thankyou=`eFeedbackThanks`
                      &mailselector=`department`
                      &vericode=`1`
                      &subject="Web site feedback"
                      ]]


                      this one is not interpreted. it shows not the result (the form) but the code itself.

                      I indeed clarify on that the snippet has obviously the same spelling (eForm) and that all the chunk was created (in fact copy/Past since the manual)

                      Sorry I begin and imagine that it is not a problem with eForm..but nevertheless my other calls of snippet in the same page work.

                      Have you an idea where from it can come?

                      Thank you for your help
                        Verum Index sui et falsi