• Resolved alejo.ep

    (@alejoep)


    Hi,

    I just added mailchimp to our website and I noticed that the form is not working properly. When submitting the information, the form should update without having the page refresh itself. You can try this out on the following link: Test page

    I believe the problem is that my theme (churhope) is loading a custom version of jQuery (possibly an older version) instead of using the core bundled version of JQuery. When I emailed the theme provider to request support they said they don’t deal with third party extension issues…. so… I’m left without a clue as to how to fix this problem.

    By looking at the developer’s console I found the following error: Uncaught SyntaxError: Unexpected token <

    To be honest, I have no idea how to fix this. Is this something someone can help us out with?

    https://www.ads-software.com/plugins/yikes-inc-easy-mailchimp-extender/

Viewing 1 replies (of 1 total)
  • Plugin Author Evan Herman

    (@eherman24)

    Hi Alejo,

    If you’re theme is in fact loading an outdated version of jQuery that is most likely the issue. When themes or plugins dequeue the default bundled version of jQuery and load its own version, you’re going to run into a lot of issues.

    From looking at the page, you’ll see that the <script> loaded on the page is getting wrapped in <p> tags which is not correct.

    </p>
    <p>		/* Blank Field Check */
    		function blankFieldCheck(formID) {
    				err	= 0;
    				msg	= '';</p>
    <p>if ($ymce('#0-4acfe05dfd-email').val() == ''){
    												msg += '
    <li>Email'+'\n</li>
    <p>';

    Something within your theme is passing the scripts through the content filter and causing issues within the script itself, thus causing the page reload.

    Without access to the theme itself, I’m going to have a hard time diagnosing the issue. If you want to email me at [email protected], we can discuss further there but I will most likely require access to the theme and site to figure out whats going on.

    I would also recommend you take a look at this stack overflow answer which is directly related to your issue as well : https://stackoverflow.com/questions/23256036/how-to-prevent-wordpress-from-wrapping-my-javascript-in-p-tags

    https://codex.www.ads-software.com/Function_Reference/wpautop#Disabling_the_filter

    Thanks,
    Evan

Viewing 1 replies (of 1 total)
  • The topic ‘Jquery conflict with Yikes Inc. Easy Mailchimp Extender’ is closed to new replies.