We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    How did you fix the problem? I’m having problems, too, on one of my web sites.
      • 42681
      • 64 Posts
      We very often get the error:

      Could not connect to provider at: http://www.stopforumspam.com/


      This is a big problem because in times modx can however not connect to http://www.stopforumspam.com formit doesn´t send any emails and maybe saves no data into the database (if the hook 'formit2db' is processed after the hook 'spam') because the processing of the hooks stop when not being able to run the hook 'spam' properly.

      Is there any chance to make formit go on in cases stopforumspam is not reachable by modx?

      Unfortunately this is a big problem ...
        • 42681
        • 64 Posts
        Unfortunately this problem still exists:

        If stopforumspam ist not available by the 'spam'-hook formit doesn´t send emails.

        Is it possible to make formit sending emails without spamcheck if stopforumspam cannot be connected by formit?
          • 3749
          • 24,544 Posts
          I think this might do it (be sure to back up the file first):

          Change this line (line 58 in my version) of the core\components\formit\model\stopforumspam\stopforumspam.class.php file

          from

          $xml = $this->request($params);


          to

          $xml = $this->request($params);
          if ($xml === true) {
             return array();
          }


          And this line in the same file (around line 85):

          $responseXml = $response->toXml();


          to this:

          if ($response->isError()) {
              return true;
          }
          $responseXml = $response->toXml();


          Your changes will be overwritten if you upgrade FormIt, so you might want to back up the corrected file for future use (assuming that this works).
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 42681
            • 64 Posts
            Hi Bob,
            thanks a lot for your help!!!
              • 3749
              • 24,544 Posts
              Did that work?
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting