Site logo

Archived topic

Conflict with Happyforms and GenerateBlocks

12 replies · Started by Captain_J on September 20, 2021

Viewing posts 1–13 of 13

Hi. I'm experiencing an issue where Happyforms plugin forms are sending correctly, but not showing the success message. I've narrowed down the plugin conflict to GenerateBlocks (which is pretty integral to the site).

Is there anything I can do to fix without moving to a different form plugin?

Hi there,

thats odd, as i cannot see what GenerateBlocks would do that would interfere with HappyForms. GB doesn't run any Javascript that could cause that kind of issue.

Could you link me to a page where i can see the problem ?

See this page here: ***

If you click submit, I get the email through immediately, but no success message. Just greys out the form. If I disable GenerateBlocks, it works correctly.

Thank you

I notice you have some broken HTML in your site, if you Right Click and Inspect the page, and check the <body> element you will see it contains some of your google tag manager script ( and other HTML ) which it shouldn't.

This is generally caused by missing script tags or broken HTML.

If you can disable the hooked in GTAG scripts first, then i can recheck the site.

Thanks for pointing that out - think it is fixed now. Please would you take another look at the form?

Ok - can you temporarily disable the Elements module in Appearance > GeneratePress to remove any Hooked in Block Elements, so we can test the page without any GB content on the page. ( Leave GB enabled )

I disabled Elements and tested the form which had the same result. I've now re-enabled, but have excluded the test page on all of them in case you need to see.

Can you temporarily disable GenerateBlocks so i can see the differeneces.

Done

I've had to re-enable as the website breaks without the plugin. Have created a user which you could use to test (details in private info field) or happy to agree a time tomorrow to disable temporarily.

We don't want to be causing you any issues - are you able to create a staging site so we can then disable stuff without breaking things ?

I've fixed this now.

From the Happyforms dev: there's a bug in their code which is causing the conflict - this is being addressed and a fix will be issued. In the meantime there is a workaround by adding a php snippet.

add_action( 'happyforms_step', function() {
register_post_type( 'happyforms-message' );
}, 0 );

Hopefully that helps anyone with the same issue. Thank you very much for your help with this.

Glad to hear you found the issue and thanks for providing the temporary solution.

This archived topic is closed to new replies.