Ninja Form Error Theme Conflict (I think)

Hello,

One of my implemented forms (Ninja Forms) is breaking and I have no idea why. All other NF forms on the site work properly except for this one (https://bcmedu.org/college-day/ at the bottom of the page). I get the following error message in my console: SyntaxError: Unexpected identifier 'ninja'. Expected '}' to end an object literal.

I’ve tried working with Ninja Forms support on this, but after extensive troubleshooting (disabling all plugins, using 2019 theme), we are concluding that there is some kind of conflict with my theme (Pro - child theme). The only way we can get it to work is to disable the theme. Now, I’ve done extensive customization in functions.php, but nothing that should affect Ninja Forms.

Can you give me some direction in how to troubleshoot this?

Edit: In fact, after posting this, I tried it with Pro enabled (not child), and it still gives me the same error.

Edit 2: The form works in NF preview mode, but not on the page in question (created with Pro version of Cornerstone).

Edit 3: The form however, doesn’t work when I embed it into a non-cornerstone page. Still gives the same error.

Hey Bobby,

I duplicated your form, reduced the form elements to simple form elements and inserted the shortcode in a test page but still, the issue persists. It looks like something in the form configuration that is conflicting. Regretfully, we will need your help to know what that specific setting is.

Would you mind recreating your form bit by bit to see what part is conflicting? It would also be best that we do the test in a staging copy of your site and give us WordPress Admin and FTP access so that there’s no risk of breaking your live site.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.