{"id":14155325,"date":"2021-03-09T12:38:11","date_gmt":"2021-03-09T12:38:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=14155325"},"modified":"2021-03-09T12:42:30","modified_gmt":"2021-03-09T12:42:30","slug":"java-script-error-ninja-forms","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/java-script-error-ninja-forms\/","title":{"rendered":"Java Script Error Ninja Forms"},"content":{"rendered":"<p>We are having issues with a Ninja forms form displaying on our website that we&#8217;ve identified is related to Litespeed Plugin (when we deactivate it, as we&#8217;ve had to for now, the issue goes away). The form basically doesn&#8217;t load and the space it should be in just appears blank.<\/p>\n<p>Even with all minifying and combining settings OFF and after clearing the cache, the issue persists. However, if Litespeed is deactivated, it works immediately.<\/p>\n<p>If litespeed is reactivated, the issue does not occur for a short while, but then appears after an indeterminate period of time (sometimes a day or two, sometimes an hour), the form disappears again and the following errors occur in the console.<\/p>\n<p>We have capture the following error in the dev console when the form doesn&#8217;t work display:<\/p>\n<pre><code>Uncaught \nconstructor\nmessage: &quot;An &quot;el&quot; undefined must exist in DOM&quot;\nname: &quot;Error&quot;\nstack: &quot;Error: An &quot;el&quot; undefined must exist in DOM\u21b5    at constructor._ensureElement (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/8660e.js?81934:8:13149)\u21b5    at constructor.show (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/8660e.js?81934:8:11673)\u21b5    at n.initialize (https:\/\/www.wmfs.net\/wp-content\/plugins\/ninja-forms\/assets\/js\/min\/front-end.js?ver=3.5.1:5766:20)\u21b5    at n.h.View (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/b59cd.js?1ca20:2:14148)\u21b5    at n.constructor (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/8660e.js?81934:8:17520)\u21b5    at n.constructor (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/8660e.js?81934:8:22127)\u21b5    at n.constructor (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/8660e.js?81934:8:33576)\u21b5    at new n (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/b59cd.js?1ca20:2:23460)\u21b5    at https:\/\/www.wmfs.net\/wp-content\/plugins\/ninja-forms\/assets\/js\/min\/front-end.js?ver=3.5.1:5972:23\u21b5    at Function.v.each.v.forEach (https:\/\/www.wmfs.net\/wp-content\/litespeed\/cssjs\/8878d.js?1c669:2:1685)&quot;\n__proto__: Error\ncaptureStackTrace: \u0192 ()\nconstructor: \u0192 (t,e)\ntoString: \u0192 ()\nurlRoot: &quot;http:\/\/marionettejs.com\/docs\/v2.4.2\/&quot;\n__proto__: Object<\/code><\/pre>\n<p>We would be grateful for any assistance you can provide in resolving this, as we understand Ninja forms is official supported by your plugin. We have disabled litespeed for now as the site is live so we can&#8217;t have our forms not working.<\/p>\n<p>Many thanks<\/p>\n","protected":false},"template":"","class_list":["post-14155325","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14155325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14155325\/revisions"}],"predecessor-version":[{"id":14155345,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14155325\/revisions\/14155345"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14155325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}