Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

FormValidation destroy function throws error


When you try to destroy any validator, an error is thrown. Has anyone ever encountered this error?

Uncaught Error: The plguin ___frameworkMessage is registered
registerPlugin https://preview.keenthemes.com/metronic8/demo1/assets/plugins/global/plugins.bundle.js:26368
install https://preview.keenthemes.com/metronic8/demo1/assets/plugins/global/plugins.bundle.js:26368
uninstall https://preview.keenthemes.com/metronic8/demo1/assets/plugins/global/plugins.bundle.js:26369
destroy https://preview.keenthemes.com/metronic8/demo1/assets/plugins/global/plugins.bundle.js:26368
destroy https://preview.keenthemes.com/metronic8/demo1/assets/plugins/global/plugins.bundle.js:26368
<anonymous> debugger eval code:1
exampleText https://preview.keenthemes.com/metronic8/demo1/assets/js/custom/documentation/forms/formvalidation/basic.js:185


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Can you please provide your code ?

May I know which build are you using? Precompiled theme assets or you build the assets using Gulp or Webpack tasks of Metronic ?

Regards.



Hi,

I use metronic precompiled theme assets.

Create any validator the call destroy function, same error should be thrown.
In fact, the error posted is from metronic online documentation (https://preview.keenthemes.com/metronic8/demo1/documentation/forms/formvalidation/basic.html). Simply put a dirty debug breakpoint in basic.js line 185, then call validator.destroy() from console.



Hi,

We just double checked it with current and its newer v1.0.9 version as well and it seems there is an issue with destroy method. We have reported the issue to the plugin's author and once we have any feedback we will update you accordingly.

We will try to upgrade to FormValidation v1.0.9 and get this issue sorted in the next update of Metronic,

Regards.



We have a reply from the plugin's author. The bug was reported and fixed in the development version here https://github.com/form-validation/form-validation/issues/64

The official fix will be released in the next update of the Form validation plugin.

If you need this fix urgently you can include it in the source:core/html/src/plugins/formvalidation/dist/js/


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(