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

    I’m having a few problems with the eForm snippet. Every time a form is submitted I’m getting an Internal Server Error 500. Funny thing is, the report email is sent fine, just can’t get to a "thank you" page after the form is sent. Here is the error log:

    [Tue Jan 11 10:23:07 2011] [error] [client 80.175.159.225] malformed header from script. Bad header=/home/sites/annuitiesadvice.co: index.php, referer: http://www.annuitiesadvice.co.uk/

    Here’s my form chunk:
    <form method="post" action="[~[*id*]~]" name="contactform" onSubmit="javascript:populateHiddenFields(this);" id="rc_form">

    (I’ve also tried just setting the form action to a static page where the form chunk is included, such as about-us.html).

    Here’s the snippet call:
    [!eForm? &formid=`rc_form` &to=`[email protected], [email protected], [email protected]` &subject=`Quick Annuity Quote Submitted ` &tpl=`rc_form` &report=`rc_form_report` &gotoid=`55` &eFormOnBeforeFormMerge=`ref` &eFormOnBeforeMailSent=`form_user_ok`!]

    MODx 1.02

    Any idea what could cause this?
      • 25663 MODX Staff
      • 12,272 Posts
      Have you upgraded eForm over the one that shipped with 1.0.2? If not you should, and honestly you should upgrade to the latest RC as well for 1.0.5 ... you’re missing out on some very important security enhancements in 1.0.3-5.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me