I keep getting this error and I’m not sure why Exactly.
[2011-05-12 22:23:35] (ERROR @ /index.php) [FormIt] Could not find hook "redirect`
".
[[!FormIt?
&hooks=`recaptcha,spam,email,redirect`
&emailTpl=`ccl-contact`
&emailTo=`[email protected]`
&redirectTo=`2`
&validate=`name:required,
email:email:required,
subject:required,
text:required:stripTags`
]]
[[!+fi.error_message:notempty=`
<p>[[!+fi.error_message]]</p>
`]]
<form class="form" action="[[~[[*id]]]]" method="post">
<fieldset class="s_column">
<input name="nospam:blank" type="hidden" />
<div>
<label for="name">
Name:
<span class="error">[[!+fi.error.name]]</span>
</label>
<input id="name" name="name" type="text" value="[[!+fi.name]]" />
</div>
<div>
<label for="email">
Email:
<span class="error">[[!+fi.error.email]]</span>
</label>
<input id="email" name="email" type="text" value="[[!+fi.email]]" />
</div>
<div>
<label for="subject">
Subject:
<span class="error">[[!+fi.error.subject]]</span>
</label>
<input id="subject" name="subject" type="text" value="[[!+fi.subject]]" />
</div>
<div>
<label for="text">
Message:
<span class="error">[[!+fi.error.text]]</span>
</label>
<textarea id="text" cols="50" rows="7" name="text">[[!+fi.text]]</textarea>
<br class="clear" />
</div>
[[!+formit.recaptcha_html]]
[[!+fi.error.recaptcha]]
<br class="clear" />
<div class="form-buttons">
<input type="submit" value="Send Contact Inquiry" />
</div>
</fieldset>
</form>
Sorry about all the divs were for formatting purposes. I’ve tried changing the ` to ’ but that doesn’t help. And, it doesn’t send the email but I’m guess that’s because it doesn’t finish processing once it finds a hook is missing. And, it’s not just the redirect it’s whatever the last hook is.