[2013-07-02 20:06:09] (ERROR @ /index.php) [FormIt] Could not find hook "`spam` ". [2013-07-02 20:06:09] (ERROR @ /index.php) [FormIt] Could not find hook "`email` ".
[[!FormIt? &hooks=`spam,email` &emailTpl=`sentEmailTpl` &emailSubject=`Message from CamWright.` &emailTo=`[email protected]` &validate=`contact_email:email:required`]] <form id="contactForm" class="cmxform" action="[[~[[*id]]]]" method="post"> <strong>Please use the form below to send us an email:</strong> <div> <label for="contact_name">Name </label><em>(required, at least 2 characters)</em> <span class="error">[[!+fi.error.contact_name]]</span><br /> <input id="contact_name" class="required" type="text" name="contact_name" value="[[!+fi.contact_name]]" size="30" /> </div> <div> <label for="contact_email">E-Mail </label><em>(required)</em> <span class="error">[[!+fi.error.contact_email]]</span><br /> <input id="contact_email" class="required email" type="text" name="contact_email" value="[[!+fi.contact_email]]" size="30" /> </div> <div> <label for="contact_phone">Phone </label><em>(optional)</em> <br /> <input id="contact_phone_NA_format" class="phone" type="text" name="contact_phone_NA_format" value="[[!+fi.contact_phone_NA_format]]" size="14" maxlength="14" /> <label for="contact_ext">ext. </label> <input id="contact_ext_NA_format" class="ext" type="text" name="contact_ext_NA_format" value="[[!+fi.contact_ext_NA_format]]" size="5" maxlength="5" /> </div> <div> <label for="contact_message">Your comment </label><em>(required)</em> <span class="error">[[!+fi.error.contact_message]]</span><br /> <textarea id="contact_message" class="required" name="contact_message" rows="7" cols="70">[[!+fi.contact_message]]</textarea> </div> <div> <input class="submit" type="submit" name="submit" value="Submit" /> </div> </form>
&validate=`contact_email:email:required`
&validate=`contact_email:required`
<input id="contact_email" class="required email" type="text" name="contact_email" value="[[!+fi.contact_email]]" size="30" />
Make your validator match the name of your input. i.e.
&validate=`contact_email:email:required`
Should be:
&validate=`contact_email:required`
seen here:
<input id="contact_email" class="required email" type="text" name="contact_email" value="[[!+fi.contact_email]]" size="30">
Also, the most likely reason your cache doesn't completely clear is because you're doing it from the manager, and thus recreating cache files simply by using the manager. Clear your core/cache files through FTP (SLOW! - not recommended) or via your server's file manager instead.
You're right, it is valid. I probably should have said try it without and see if it helps.
OK, so now if the hook isn't being found, consider that files could be missing or corrupt. How did you install MODX? If you unpacked it locally, and FTP the files to the server, this is entirely possible. This is not to say it's not possible if you didn't use FTP, but just more possible.
It's safe to re-install MODX any time, it can't hurt and often helps. So go ahead and run a reinstall, making sure to load a fresh copy of the zip file to the server itself, and unpack it there (as opposed to FTP). Follow the directions for upgrading MODX at http://rtfm.modx.com/display/revolution20/Upgrading+MODx
Log out, clear the core/cache files, re-run setup.
Instead of having it send an email change it to display a success message I think it might be working the problem is that you don't have a working email server on your localhost and it's giving you these bogus error messages because it can't send the email.
[2013-07-03 10:00:01] (ERROR @ /index.php) ``2` ` is not a valid integer and may not be passed to makeUrl() [2013-07-03 10:03:08] (ERROR @ /index.php) ``/success.html` ` is not a valid integer and may not be passed to makeUrl() [2013-07-03 10:08:04] (ERROR @ /index.php) ``0` ` is not a valid integer and may not be passed to makeUrl() [2013-07-03 10:11:47] (ERROR @ /index.php) ``1` ` is not a valid integer and may not be passed to makeUrl() [2013-07-03 10:12:59] (ERROR @ /index.php) `` 1` ` is not a valid integer and may not be passed to makeUrl() [2013-07-03 10:16:43] (ERROR @ /index.php) ``2` ` is not a valid integer and may not be passed to makeUrl()
[[!FormIt? &hooks=`redirect` &redirectTo=`2` ]]
It's entirely possible that IIS is the key word here. Have you tried all this on an Apache server? Could install XAMPP real quick, install MODX and attempt the same form. There are some round these parts that do know IIS and the possible troubles/fixes so maybe do some searching for formIt and IIS posts.
Seems I've forgotten to ask one of the most important first questions when issues arise which is, "Tell us about your environment please?"