• Resolved webmasteral

    (@webmasteral)


    Fresh installed vr 2.5.6

    Error message saying plugin disabled because something does not exist (Same error others are reporting from 2.5.5)

    Animation does not happen and now I am getting the following error when triggered

    Uncaught TypeError: jQuery(...) is not iterable
    updateSimpleDom https://www.example.com/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.5.6:111
    wpcf7cf_timeout https://www.example.com/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.5.6:410
    setTimeout handler*Wpcf7cfForm.prototype.updateEventListeners/< https://www.example.com/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.5.6:408
    jQuery 2
    dispatch
    h
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Please follow these steps: https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/does-not-work-with-a-third-party-theme-or-plugin/

    Let me know what you find as the cause of the problem

    Thread Starter webmasteral

    (@webmasteral)

    So I was able to solve the problem by updating the following code in js\scripts.js

    const buttonEntries = [ ... jQuery('button', form.$form).get() ].map(entry => [entry.name, entry.value]);
    //const buttonEntries = [ ... jQuery('button', form.$form) ].map(entry => [entry.name, entry.value]);

    ---- and ----


    /*Wpcf7cfForm.prototype.updateGroups = function() {
    const form = this;
    form.$groups = form.$form.find('[data-class="wpcf7cf_group"]');
    form.$groups.height('auto');
    form.conditions = window.wpcf7cf.get_nested_conditions(form);

    };*/
    Wpcf7cfForm.prototype.updateGroups = function() {
    const form = this;
    // Find the groups and make sure they are safely iterable
    form.$groups = form.$form.find('[data-class="wpcf7cf_group"]');
    // Set the height to 'auto' for each group
    form.$groups.height('auto');
    // Convert jQuery object to an array for iterable functionality
    const groupsArray = form.$groups.toArray();
    // Optionally, you can now loop over each group using forEach or another method
    groupsArray.forEach(function(group) {
    // Handle each group here if necessary
    // Example: console.log(group);
    });
    // Now fetch conditions and assign them
    form.conditions = window.wpcf7cf.get_nested_conditions(form);
    };


    I hope this information is helpful to you
    Plugin Author Jules Colle

    (@jules-colle)

    Very helpful thank you. I will consider adding it to the next update. I added it to my github issues: https://github.com/pwkip/contact-form-7-conditional-fields/issues/130

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

The topic ‘Error with 2.5.6’ is closed to new replies.