3.6.10 bug – Ninja Forms not loading
-
So, we use Ninja Forms on landing pages. We have a Ninja Form at the top and another before the footer. And with the new release neither form is loading.
The bug/problem is with the JavaScript method getCookie in: /wp-content/plugins/ninja-forms/assets/js/min/front-end-deps.js?ver=3.6.10:1
There is a const setting getCookie and there are no checks around if “front-end-deps.js” already exists or is loaded. The super quick but nasty fix for this is to change the const to var and let it set twice. However, it would be better to do some kind of check around if it exists already.
e.g.
(typeof getCookie === ‘function’)I’m not yet sure how to replicate the issue but I’m guessing it could be a namespace collision from another plugin that is setting getCookie since it’s a pretty generic method name. I will start digging deeper and reply back.
- The topic ‘3.6.10 bug – Ninja Forms not loading’ is closed to new replies.