-
AuthorPosts
-
June 12, 2023 at 3:42 pm #1410356
in framework/php/class-form-generator.php at Line 1294
if( 'empty_line' == $element['type'] ) { if( ! ( isset( $element['element_display'] ) && 'frontend' == $element['element_display'] ) ) { $new_post[ $key ] = 'xxx'; } } if( 'headline' == $element['type'] ) { if( ! ( isset( $element['element_display'] ) && 'frontend' == $element['element_display'] ) ) { $new_post[ $key ] = $element['label']; } } if( ! empty( $new_post[ $key ] ) ) { if( $element['type'] != 'hidden' && $element['type'] != 'decoy' )
should be:
if(isset( $element['type'] ) && 'empty_line' == $element['type'] ) { if( ! ( isset( $element['element_display'] ) && 'frontend' == $element['element_display'] ) ) { $new_post[ $key ] = 'xxx'; } } if(isset( $element['type'] ) && 'headline' == $element['type'] ) { if( ! ( isset( $element['element_display'] ) && 'frontend' == $element['element_display'] ) ) { $new_post[ $key ] = $element['label']; } } if( ! empty( $new_post[ $key ] ) ) { if(isset( $element['type'] ) && $element['type'] != 'hidden' && $element['type'] != 'decoy' )
seams that when submitting with Captcha v2 the $element is no array, its a string… And that makes an error and the form is not submitted.
Please check beforehand, if its set then there is no error and the form is correctly submitted.June 17, 2023 at 3:18 pm #1410964Hey BlutVampir,
Thanks for sharing your code, but when I test with Captcha v2 my emails are submitted correctly and recived, are you using v5.6.2?
When you say makes an error and the form is not submitted do you mean that you are not getting the frontend submition response Your message has been sent! and you are not reciving the emails?
What browser are you using?Best regards,
MikeJune 19, 2023 at 9:27 am #1411041I’m not getting the mails at all. The message on the site is shown.
With the fix, I get the mails. Many sites have the same issue from me and I didnt change anything. Perhaps its not related to recaptcha… I donno. I only did that fix and its working again.
Needed to update the file on all my sites + customers
- This reply was modified 1 year, 5 months ago by BlutVampir.
June 19, 2023 at 12:08 pm #1411056 -
AuthorPosts
- You must be logged in to reply to this topic.