Hi FormIt guru’s
I’ve just installed this great little package on Revolution (thanks Shaun McCormick!), and it was working beautifully on my localhost environment - the form output was correct and emails were sending fine.
However since I moved the site across to a live environment FormIt no longer works and is outputting code where it should be outputting plain text, e.g below or
see the attached screenshot.
name[[+fi.error.name]]
[[+fi.name]]
email[[+fi.error.email]]
[[+fi.email]]
message[[+fi.error.text]]
[[+fi.text]]
Instead of...
name (please enter your name)
__________________________________
email (please enter a valid email)
__________________________________
message (please enter your message)
__________________________________
Things I’ve tried so far:
- Uninstalling and removing FormIt and reinstalling from the modx package server
- Removing the ! cache command (with limited success)
- Trying out the exact example on
http://rtfm.modx.com/display/ADDON/FormIt.Examples.Simple+Contact+Page with ! cache enabled, and disabled. The same problems occur.
My template code
[[FormIt?
&hooks=`email,redirect`
&emailTpl=`sent_email_template`
&emailTo=`[email protected]`
&emailSubject=`Enquiry via website`
&redirectTo=`25`
&validate=`name:required,
email:email,
text:required`
]]
[[+fi.error.error_message:notempty=`<p class="error">[[+fi.error.error_message]]</p>`]]
<form action="[[~[[*id]]]]" method="post" id="contact-form">
<label for="name" >Name<span class="error">[[+fi.error.name]]</span></label>
<input type="text" name="name" maxlength="60" value="[[+fi.name]]" />
<label for="email" >Email<span class="error">[[+fi.error.email]]</span></label>
<input type="text" name="email" size="40" maxlength="40" value="[[+fi.email]]" />
<input type="hidden" name="phone" value="" />
<label for="text">Message<span class="error">[[+fi.error.text]]</span></label>
<textarea cols="40" rows="7" name="text" value="[[+fi.text]]">[[+fi.text]]</textarea>
<input type="image" name="submit" class="submit" alt="Send" src="assets/images/global/send.png" />
</form>
Chunk - sent_email_template
<div style="font-family: Arial; font-size: 12px;" />
<p>The following message was sent via the website.</p>
<p><strong>[[+name]]</strong> at <strong>[[+email]]</strong> wrote:</p>
<p>[[+text]]</p>
<p>You can reply to <strong>[[+name]]</strong> at <strong>[[+email]]</strong></p>
</div>
Here’s my current specs on the live environment:
modx Revolution 2.0.7-pl (traditional)
PHP version 5.2.14
Note - My localhost PHP version is 5.3.1
MySQL version 5.0.91 (?)
PDO support - enabled
No opcode caching in use that I know of
Any help you can give me would be very greatly appreciated!
Thanks
Harmony