Ask your WordPress questions! Pay money and get answers fast! (more info)

Need help debugging Java Script WordPress

  • SOLVED

I've got a site with a form in the footer that's powered by a plugin from Plugin Planet called SES Pro.

The form hangs on submissions, and Plugin Planet says I have a java script error.

I've tried disabling and re-enabling plugins, but not getting anywhere.

Site URL: http://www.scentsiblythriving.com

If you need login info let me know. I'll only give that out to people I've worked with on here.

Thanks!

Answers (2)

2015-09-04

Tache Madalin answers:

It looks like the error is at line 42. Let me see.


Tache Madalin comments:

Are you using some sort of minifier on your site ? Can you try disabling it ?


Tache Madalin comments:

Also, i think the problem is this:

<noscript><style type="text/css">#soliloquy-container-167{opacity:1}#soliloquy-container-167 li>.soliloquy-caption{display:none}#soliloquy-container-167 li:first-child>.soliloquy-caption{display:block}</style><div class="soliloquy-no-js" style="display:none;visibility:hidden;height:0;line-height:0;opacity:0;"><img data-no-lazy="1" class="soliloquy-image soliloquy-no-js-image" src="http://www.scentsiblythriving.com/wp-content/uploads/slider-tea.jpg" alt="slider-tea" /><img data-no-lazy="1" class="soliloquy-image soliloquy-no-js-image" src="http://www.scentsiblythriving.com/wp-content/uploads/slider-einkorn.jpg" alt="slider-einkorn" /><img data-no-lazy="1" class="soliloquy-image soliloquy-no-js-image" src="http://www.scentsiblythriving.com/wp-content/uploads/slider-tree-farm.jpg" alt="slider-tree-farm" /><img data-no-lazy="1" class="soliloquy-image soliloquy-no-js-image" src="http://www.scentsiblythriving.com/wp-content/uploads/slider-melissa-harvest.jpg" alt="slider-melissa-harvest" /></div></noscript>


Tache Madalin comments:

Ok, now i'm 100% sure the problem is related to WordFence. As the error is actually related to this line:

var addEvent = function(evt, handler) {
if (window.addEventListener) {
document.addEventListener(evt, handler, false);
} else if (window.attachEvent) {
document.attachEvent('on' + evt, handler);
}
}

2015-09-05

Arnav Joy answers:

I think problem is at ok_sent_ok on contact form