Not sure what has happened here but when I compare the formit-1.6.7-pl with the 2.0.0 version is see this code missing from the core/components/formit/model/formit/formit.class.php file. Don’t know if this is intentional or mistake. When I add the code back in then all seems to work fine.
The code was originally at line 143, I put it at line 208 in the new class, just after the public function getStoreKey().
/**
* Load the reCaptcha service class
*
* @param array $config An array of configuration parameters for the
* reCaptcha class
* @return reCaptcha An instance of the reCaptcha class
*/
public function loadReCaptcha(array $config = array()) {
if (empty($this->recaptcha)) {
if ($this->modx->loadClass('recaptcha.FormItReCaptcha',$this->config['modelPath'],true,true)) {
$this->recaptcha = new FormItReCaptcha($this->modx,$config);
} else {
$this->modx->log(modX::LOG_LEVEL_ERROR,'[FormIt] '.$this->modx->lexicon('formit.recaptcha_err_load'));
return false;
}
}
return $this->recaptcha;
}
Hope this helps anyone.
Cheers,
Dex