Home › Forums › Quform PHP › Fatal error: Uncaught exception
- This topic has 6 replies, 2 voices, and was last updated 8 years, 9 months ago by manucora.
- AuthorPosts
- February 29, 2016 at 5:22 pm #18324manucoraParticipant
There was a problem
Hello!
Please help me!Fatal error: Uncaught exception ‘Exception’ with message ‘reCAPTCHA private key is required’ in /mnt/webw/d1/56/52366656/htdocs/quform/lib/Quform/Validator/Recaptcha.php:56
Stack trace:
#0 /mnt/webw/d1/56/52366656/htdocs/quform/lib/Quform/Element.php(607): Quform_Validator_Recaptcha->isValid(’03AHJ_Vuuhl1dhQ…’, Array)
#1 /mnt/webw/d1/56/52366656/htdocs/quform/lib/Quform.php(69): Quform_Element->isValid(’03AHJ_Vuuhl1dhQ…’, Array)
#2 /mnt/webw/d1/56/52366656/htdocs/quform/process.php(244): Quform->isValid(Array)
#3 /mnt/webw/d1/56/52366656/htdocs/quform/process.php(436): process(Object(Quform), Array)
#4 {main}
thrown in /mnt/webw/d1/56/52366656/htdocs/quform/lib/Quform/Validator/Recaptcha.php on line 56February 29, 2016 at 5:34 pm #18326AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 29, 2016 at 5:37 pm #18327manucoraParticipantPlease i want use the new reCAPTCHA.
Thanks!Now i have this:
/* ReCaptcha*/
$recaptcha = new Quform_Element(‘g-recaptcha-response’, ‘reCAPTCHA’);
$recaptcha->addValidator(‘required’);
$recaptcha->addValidator(‘recaptcha’, array(‘secretKey’ => ‘PRIVATE KEY’));
$recaptcha->setIsHidden(true);
$form->addElement($recaptcha);- This reply was modified 8 years, 9 months ago by manucora.
February 29, 2016 at 6:42 pm #18335AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 29, 2016 at 6:52 pm #18336manucoraParticipantI’ve made the changes and now I get another error.
There was a problem
Fatal error: Uncaught exception ‘phpmailerException’ with message ‘SMTP Error: Could not connect to SMTP host.’ in /mnt/webw/d1/56/52366656/htdocs/quform/lib/class.phpmailer.php:1093
Stack trace:
#0 /mnt/webw/d1/56/52366656/htdocs/quform/lib/class.phpmailer.php(971): PHPMailer->SmtpConnect()
#1 /mnt/webw/d1/56/52366656/htdocs/quform/lib/class.phpmailer.php(845): PHPMailer->SmtpSend(‘Date: Mon, 29 F…’, ‘–b1_6b16b08196…’)
#2 /mnt/webw/d1/56/52366656/htdocs/quform/lib/class.phpmailer.php(763): PHPMailer->PostSend()
#3 /mnt/webw/d1/56/52366656/htdocs/quform/process.php(382): PHPMailer->Send()
#4 /mnt/webw/d1/56/52366656/htdocs/quform/process.php(436): process(Object(Quform), Array)
#5 {main}
thrown in /mnt/webw/d1/56/52366656/htdocs/quform/lib/class.phpmailer.php on line 1093February 29, 2016 at 6:55 pm #18337AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 29, 2016 at 8:20 pm #18343manucoraParticipantsolved 🙂
I needed to add this ssl
‘Encryption’ => ‘ssl’Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.