• Resolved wynot

    (@wynot)


    Plugins and WordPress are up to date.
    I’m getting the following error in devtools console:

    jquery.min.js?ver=3.6.0:2 jQuery.Deferred exception: strongValidation is not a constructor TypeError: strongValidation is not a constructor
        at HTMLDivElement.<anonymous> (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:125:27)
        at Function.each (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1481)
        at Object.initForm (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:124:25)
        at Object.start (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:290:23)
        at HTMLDocument.<anonymous> (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:250:27)
        at e (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)
        at t (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    fire @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    ready @ jquery.min.js?ver=3.6.0:2
    B @ jquery.min.js?ver=3.6.0:2
    jquery.min.js?ver=3.6.0:2 Uncaught TypeError: strongValidation is not a constructor
        at HTMLDivElement.<anonymous> (controller.min.js?ver=3.0.0:125:27)
        at Function.each (jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
        at Object.initForm (controller.min.js?ver=3.0.0:124:25)
        at Object.start (controller.min.js?ver=3.0.0:290:23)
        at HTMLDocument.<anonymous> (controller.min.js?ver=3.0.0:250:27)
        at e (jquery.min.js?ver=3.6.0:2:30038)
        at t (jquery.min.js?ver=3.6.0:2:30340)
    (anonymous) @ controller.min.js?ver=3.0.0:125
    each @ jquery.min.js?ver=3.6.0:2
    each @ jquery.min.js?ver=3.6.0:2
    initForm @ controller.min.js?ver=3.0.0:124
    start @ controller.min.js?ver=3.0.0:290
    (anonymous) @ controller.min.js?ver=3.0.0:250
    e @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (async)
    S.readyException @ jquery.min.js?ver=3.6.0:2
    (anonymous) @ jquery.min.js?ver=3.6.0:2
    e @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    fire @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    fire @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    ready @ jquery.min.js?ver=3.6.0:2
    B @ jquery.min.js?ver=3.6.0:2

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @wynot,

    I am not able to replicate the same error on my end.

    I recommend installing this plugin: https://ww.wp.xz.cn/plugins/health-check/
    After you install and activate the above plugin it has a Troubleshooting mode which allows you to have a vanilla WordPress session, where all plugins are disabled, and a default theme is used, but only for your user – your visitors will still see the normal website.

    Go to its troubleshoot mode and only activate this plugin and see if the same happens with a default WordPress theme (Twenty Twenty-One for example) and no other plugins.

    Please let me know how it goes and what you find!

    All the best,
    Mihaela

    Thread Starter wynot

    (@wynot)

    Ok I’ll try that and get back here.

    Thread Starter wynot

    (@wynot)

    The problem is when you go to the form page to add a testimonial:
    https://moldtestcompany.com/add-review/

    Here’s the issue:

    jquery.min.js?ver=3.6.0:2 jQuery.Deferred exception: strongValidation is not a constructor TypeError: strongValidation is not a constructor
        at HTMLDivElement.<anonymous> (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:125:27)
        at Function.each (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1481)
        at Object.initForm (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:124:25)
        at Object.start (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:290:23)
        at HTMLDocument.<anonymous> (https://moldtestcompany.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:250:27)
        at e (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)
        at t (https://moldtestcompany.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    fire @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    ready @ jquery.min.js?ver=3.6.0:2
    B @ jquery.min.js?ver=3.6.0:2

    And if you go to the code line where it’s flagged is here:

    /**
        * Initialize form validation.
        */
       initForm: function () {
        var forms = jQuery('.strong-form[data-state="idle"]');
        var messages = jQuery('.wpmtst-testimonial-success');
        if (debugit) console.log('forms found:', forms.length);
        if (debugit) console.log('messages found:', messages.length);
        if (forms.length || messages.length) {
            jQuery( forms ).each(function() {
               var eachform = new strongValidation(this); <<<<< This is the line being flagged!!!!!
            });

    Thank you!
    Can you please let me know if you have any optimization plugins installed?
    Does the same error appears when all plugins are disabled except Strong Testimonials? Please use the Health Check plugin to test this.

    Warmly,
    Mihaela

    Thread Starter wynot

    (@wynot)

    Ok, I created a stage site to test this: deactivated ALL plugins except Strong Testimonials and activated the default theme Twenty Twenty-Two and am still getting the same error on the “add Review” page:

    the staging site is here: https://wordpress-204758-1262769.cloudwaysapps.com/add-review/

    Error:

    jquery.min.js?ver=3.6.0:2 jQuery.Deferred exception: strongValidation is not a constructor TypeError: strongValidation is not a constructor
        at HTMLDivElement.<anonymous> (https://wordpress-204758-1262769.cloudwaysapps.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:125:27)
        at Function.each (https://wordpress-204758-1262769.cloudwaysapps.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (https://wordpress-204758-1262769.cloudwaysapps.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1481)
        at Object.initForm (https://wordpress-204758-1262769.cloudwaysapps.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:124:25)
        at Object.start (https://wordpress-204758-1262769.cloudwaysapps.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:290:23)
        at HTMLDocument.<anonymous> (https://wordpress-204758-1262769.cloudwaysapps.com/wp-content/plugins/strong-testimonials/public/js/controller.min.js?ver=3.0.0:250:27)
        at e (https://wordpress-204758-1262769.cloudwaysapps.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)
        at t (https://wordpress-204758-1262769.cloudwaysapps.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.0:2
    jquery.min.js?ver=3.6.0:2 
    
    Uncaught TypeError: strongValidation is not a constructor
        at HTMLDivElement.<anonymous> (controller.min.js?ver=3.0.0:125:27)
        at Function.each (jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
        at Object.initForm (controller.min.js?ver=3.0.0:124:25)
        at Object.start (controller.min.js?ver=3.0.0:290:23)
        at HTMLDocument.<anonymous> (controller.min.js?ver=3.0.0:250:27)
        at e (jquery.min.js?ver=3.6.0:2:30038)
        at t (jquery.min.js?ver=3.6.0:2:30340)

    Hello, I see this marked as resolved but I can’t seem to find the solution. I’m running into the same issue on a page I haven’t published yet, also after running through the standard plug-in troubleshooting.

    Did I overlook the solution?

    Thanks!

    Hello, running into the very same issue, please help.
    Because of the error, some other js features (which are not part of this plugin) does not load on “add testimonial” page.
    Please help.

    Mine example: https://tinyurl.com/mryk7jzy (inspect console and you can see the error). When I deactivate Strong testimonials plugin, parallax and other JS features work again.

    (ps: All plugins and WP core are updated to latest versions, all caches cleared)

    • This reply was modified 3 years, 9 months ago by acamilicko.

    Hello,

    We managed to recreate the problem and an update is on the way to solve this.

    Warmly,
    Razvan

    Thread Starter wynot

    (@wynot)

    Great! Thank YOU!!!!!

    Hello,

    Version 3.0.1 of plugin should fix this issue.

    Warmly,
    Razvan

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Uncaught TypeError: strongValidation is not a constructor’ is closed to new replies.