Fatal error: Uncaught exception

Home Forums Quform PHP Fatal error: Uncaught exception

This topic is: resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18324
    manucora
    Participant

    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 56

    #18326
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18327
    manucora
    Participant

    Please 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.
    #18335
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18336
    manucora
    Participant

    I’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 1093

    #18337
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18343
    manucora
    Participant

    solved 🙂
    I needed to add this ssl
    ‘Encryption’ => ‘ssl’

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy