We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • my call is:
    [[!FormIt? &hooks=`recaptcha,spam,email,redirect` &emailTpl=`MyEmailChunk` &emailTo=`[email protected]` &emailSubject=`hello` &redirectTo=`1`]]


    first i have no recaptcha in my page, but in my form i have:
    [[+formit.recaptcha_html]]
    [[!+fi.error.recaptcha]]

    and second when i send my form i get:

    Fatal error: Call to undefined method FormIt::loadReCaptcha() in /home/isaholi/public_html/core/components/formit/model/formit/fihooks.class.php on line 549


    my Revo is 2.1.3
      palma non sine pulvere
      • 13373
      • 70 Posts
      I’ve just got this message today as well!

      Hope someone can help smiley

      Cheers,
      Jacob
      • Quote from: TasDeveloper at Aug 05, 2011, 01:53 AM

        I’ve just got this message today as well!

        Hope someone can help smiley

        Cheers,
        Jacob

        versions?
          palma non sine pulvere
          • 13373
          • 70 Posts
          Same as you, FormIt 2.0.0 and MODX 2.1.3.
            • 28215
            • 4,149 Posts
            Fix here: https://github.com/splittingred/FormIt/commit/00036633c4cb976e38a13ecc5f6cf89f03216bc7

            I’ll have 2.0.0-rc2 out later today to address the issue.
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 7235
              • 0 Posts
              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
              • Quote from: splittingred at Aug 05, 2011, 01:13 PM

                Fix here: https://github.com/splittingred/FormIt/commit/00036633c4cb976e38a13ecc5f6cf89f03216bc7

                I’ll have 2.0.0-rc2 out later today to address the issue.

                i have no result after update with new files

                after delete all files in core/cache i get in my source:

                <script type="text/javascript">var RecaptchaOptions = {"theme":"clean","width":500,"height":300,"lang":"en"};</script><script type="text/javascript" src="https://api-secure.recaptcha.net/challenge?k=6LfN3MYSAAAAAFTiqIIIgkhaqLey3-4U0860OZwJ"></script>
                <noscript>
                        <iframe src="https://api-secure.recaptcha.net/noscript?k=6LfN3MYSAAAAAFTiqIIIgkhaqLey3-4U0860OZwJ" height="300" width="500" frameborder="0" style="width: 500px; height: 300px;"></iframe><br />
                        <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
                        <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
                </noscript>


                but in page i have no form for reCaptcha - i make some test is not problem with styles/css
                  palma non sine pulvere
                  • 28215
                  • 4,149 Posts
                  Try clearing your browser cache.
                    shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • Quote from: splittingred at Aug 06, 2011, 05:21 PM

                    Try clearing your browser cache.

                    (when use https) now with IE 8 i get:



                    interesting is with FF 5 - i have no result smiley

                    (without https) now i thing is work...thanks Shaun
                      palma non sine pulvere