Fatal Error with FormIt

Summary

Since I upgraded MODX to 3.0.1, I have an issue with a form that return a fatal error:

Fatal error: Uncaught Error: Call to a member function getConnection() on null in /home/www/ebersheim-3/core/components/formit/src/FormIt/Service/StopForumSpam.php:111 Stack trace: #0 /home/www/ebersheim-3/core/components/formit/src/FormIt/Service/StopForumSpam.php(89): Sterc\FormIt\Service\StopForumSpam->getClient() #1 /home/www/ebersheim-3/core/components/formit/src/FormIt/Service/StopForumSpam.php(65): Sterc\FormIt\Service\StopForumSpam->request(Array) #2 /home/www/ebersheim-3/core/components/formit/src/FormIt/Hook/Spam.php(67): Sterc\FormIt\Service\StopForumSpam->check('', 'contact@atom...') #3 /home/www/ebersheim-3/core/components/formit/src/FormIt/Hook.php(140): Sterc\FormIt\Hook\Spam->process(Array) #4 /home/www/ebersheim-3/core/components/formit/src/FormIt/Hook.php(106): Sterc\FormIt\Hook->load('spam', Array, Array) #5 /home/www/ebersheim-3/core/components/formit/src/FormIt/Request.php(401): Sterc\FormIt\Hook->loadMultiple(Array, Array) #6 /home/www/ebersheim-3/core/components/formit/src/FormIt/Request.php(344) in /home/www/ebersheim-3/core/components/formit/src/FormIt/Service/StopForumSpam.php on line 111

Help!

Environment

MODX 3.0.1 and FormIt 4.2.7

Remove the spam hook - that’s not really done anything in a long time.

1 Like

Thanks @markh
So simple :man_facepalming:

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.