Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Submit on Contact Form Doing Nothing #1119566

    Hey,


    @Ismael
    Thanks for your reply. However, your provided code does not work at all. Now my regular contact form in the page does not work, because recaptcha is not loaded anymore.
    I looked through your provided code and does not unterstand why you scan for widgets and then look for a contact form in them. This does not make sense to me. I have a newsletter contact form in the footer area, but not as a widget. And on my contact page my contact form is in the main content.
    I think the previous original code was fine that it looks for a contact form in the page. However, in addition it should also look for one in the footer area as $post->post_content apparently does not include the footer area.
    As a workaround I reverted to the original code and removed the regex check. This means, that recaptcha is loaded on every page, but my newsletter contact form is displayed on every page anyway.
    I hope this gets a proper fix in the future.

    Regards,
    Daniel

    in reply to: Submit on Contact Form Doing Nothing #1118808

    Hey,

    I have a similar problem. I have a contact form in the footer. With Google Recaptcha enabled it doesn’t do anything after clicking the submit button.
    I traced the error a bit and came to the following insights:
    – no JavaScript errors in the console
    – the required JavaScript for Recaptcha isn’t placed in the DOM
    – if another contact form is placed in the main content of a page the footer contact form also works, because the main content contact form placed the required JavaScript
    – in the class-grecaptcha.php file line 271/272 the regex $regex = "!\[av_contact!"; preg_match( $regex, $post->post_content, $matches ); evaluates to false

    I haven’t looked any further into the problem as to why this is, but I hope this helps in any way to fix the issue for me and others.

    Regards,
    Daniel

Viewing 2 posts - 1 through 2 (of 2 total)