Home › Forums › Quform PHP › Fatal Error
- This topic has 3 replies, 2 voices, and was last updated 3 years, 11 months ago by Ally.
- AuthorPosts
- December 22, 2020 at 11:25 am #32406markkoParticipant
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
December 22, 2020 at 11:50 am #32409markkoParticipantHi Ally,
Would you be able to give me a quotation to transfer/translate the old process.php to the new one.
December 22, 2020 at 12:17 pm #32410markkoParticipantUpdate: 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.
December 22, 2020 at 12:35 pm #32414AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.