Fatal Error

Home Forums Quform PHP Fatal Error

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32406
    markko
    Participant

    Hi Ally, I’m trying to get Recaptcha v3 working but having big problems. 🙂

    I’ve decided to update the QU forms to the latest script. It is so different from my old one I’m having to restart as it writes to a database too. I’ve tried WinMerge to see the differences, but it seems every part of the process.php file has changed. Anyway, I’m persevering with this.

    My problem at the moment is I’m getting a message

    Fatal error: Class ‘Quform_Element’ not found in /home/xxxxx/qf2020/process.php on line 11

    Any ideas as to what this may be?

    The code on line 11 is;

    /* recaptcha */
    $recaptcha = new Quform_Element(‘g-recaptcha-response’, ‘reCAPTCHA’);
    $recaptcha->addValidator(‘required’);
    $recaptcha->addValidator(‘recaptcha’, array(
    ‘secretKey’ => ‘hidden-code-thank-you’,
    ‘version’ => ‘v3’,
    ‘threshold’ => 0.5
    ));
    $recaptcha->setIsHidden(true);
    $form->addElement($recaptcha);

    /* end recaptcha */

    Many thanks

    #32409
    markko
    Participant

    Hi Ally,

    Would you be able to give me a quotation to transfer/translate the old process.php to the new one.

    #32410
    markko
    Participant

    Update: I’ve now moved the recaptcha code to line 111 and I no longer get this error. The latest is that the form does noting when I press submit. All that happens is the button moves over to the left and the form is not submitted or database written to.

    #32414
    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.

Viewing 4 posts - 1 through 4 (of 4 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