[2018-08-20 15:17:16] (ERROR @ /home/username/public_html/core/components/formit/src/FormIt/Request.php : 87) [FormIt] Could not load FormItReCaptcha service class. [2018-08-20 15:17:20] (ERROR @ /home/username/public_html/core/components/formit/src/FormIt/Request.php : 87) [FormIt] Could not load FormItReCaptcha service class. [2018-08-20 15:17:20] (ERROR @ /home/username/public_html/core/components/formit/src/FormIt/Request.php : 87) [FormIt] Could not load FormItReCaptcha service class. [2018-08-20 15:17:31] (ERROR @ /home/username/public_html/core/components/formit/src/FormIt/Request.php : 87) [FormIt] Could not load FormItReCaptcha service class.
[2018-08-20 15:15:03] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:15:08] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:15:15] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:15:20] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:15:24] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:16:08] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:16:18] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit. [2018-08-20 15:16:29] (ERROR @ /home/username/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: FormIt from formit.
[[!FormIt? &hooks=`recaptchav2,spam,FormSave,email,emailUser-contact,redirect` &submitVar=`contact_page` &emailSubject=`Submission Through The Whatever Contact Page` &emailTpl=`contact_page_EmailChunk` &emailTo=`[email protected],[email protected]` &emailFrom=`[[+email-contact]]` &redirectTo=`10` &fsFormTopic=`Contact Page` &fsFormFields=`firstName-contact,lastName-contact,telephone-contact,email-contact,subject-contact,text-contact` ]] [[!+fi.error.error_message:notempty=` <p>[[!+fi.error.error_message]]</p> `]] <div class="col-md-12"> <form class="form" action="[[~[[*id]]]]" method="post" id="contactForm" > <div class="row"> <div class="form-group"> <div class="col-md-6"> <label for="firstName-contact">First Name * <span class="error">[[+fi.error.firstName-contact]]</span></label> <input type="text" value="[[+fi.firstName-contact]]" maxlength="100" class="form-control" name="firstName-contact" id="firstName-contact" required> <input name="nospam:blank" type="hidden" /> </div> <div class="col-md-6"> <label for="lastName-contact">Last Name *<span class="error">[[+fi.error.lastName-contact]]</span></label> <input type="text" value="[[+fi.lastName-contact]]" maxlength="100" class="form-control" name="lastName-contact" id="lastName-contact" required> </div> </div> </div> <div class="row"> <div class="form-group"> <div class="col-md-6"> <label for="email-contact">Email * <span class="error">[[+fi.error.email-contact]]</span></label> <input type="text" value="[[+fi.email-contact]]" maxlength="100" class="form-control" name="email-contact" id="email-contact" required> </div> <div class="col-md-6"> <label for="telephone-contact">Telephone *<span class="error">[[+fi.error.telephone-contact]]</span></label> <input type="text" value="[[+fi.telephone-contact]]" maxlength="100" class="form-control" name="telephone-contact" id="telephone-contact" required> </div> </div> </div> <div class="row"> <div class="form-group"> <div class="col-md-12"> <label for="subject-contact">Subject</label> <input type="text" value="[[+fi.subject-contact]]" maxlength="100" class="form-control" name="subject-contact" id="subject-contact"> </div> </div> </div> <div class="row"> <div class="form-group"> <div class="col-md-12"> <label for="text-contact">Message</label> <textarea maxlength="5000" rows="10" class="form-control" name="text-contact" id="text-contact">[[+fi.text-contact]]</textarea> </div> </div> </div> <div class="row"> <div class="form-group"> <div class="col-md-12"> [[!recaptchav2_render]]<span style="color: #ff0000; font-size: 1.2em; font-weight: bold;">[[!+fi.error.recaptchav2_error]]</span> </div> </div> </div> <div class="row"> <div class="col-md-12"> <input type="hidden" name="subject" id="subject" value="Submission Through The Whatever Website Contact Page" /> <input type="submit" value="Submit" class="btn btn-primary btn-lg" name="contact_page" > </div> </div> </form> </div> <div style="clear: both;"></div>
This question has been answered by waizen. See the first response.
On the original error, there should be a property called &modelPath in the FormIt tag (or the FormIt snippet properties).
My wild guess is that the property is missing or has an incorrect value.
I believe it's supposed to hold the path to core/components/formit/model/
[[!FormIt? &hooks=`recaptchav2,spam,FormSave,email,emailUser-contact,redirect` &submitVar=`contact_page` &emailSubject=`Submission Through The Whatever Contact Page` &emailTpl=`contact_page_EmailChunk` &emailTo=`[email protected],[email protected]` &emailFrom=`[[+email-contact]]` &redirectTo=`10` &fsFormTopic=`Contact Page` &fsFormFields=`firstName-contact,lastName-contact,telephone-contact,email-contact,subject-contact,text-contact` ]]
$modelPath = $modx->getOption( 'formit.core_path', null, $modx->getOption('core_path', null, MODX_CORE_PATH) . 'components/formit/' ) . 'model/formit/'; $modx->loadClass('FormIt', $modelPath, true, true);
...You could look to see if the formit.class.php file is at that location.
https://modx.com/extras/package/captcha
[2018-08-20 15:17:31] (ERROR @ /home/username/public_html/core/components/formit/src/FormIt/Request.php : 87) [FormIt] Could not load FormItReCaptcha service class.
[2018-08-30 13:44:46] (ERROR @ /home/username/public_html/core/cache/includes/elements/modsnippet/20.include.cache.php : 29) An error occurred while trying to send the email: