• Resolved kya0413

    (@kya0413)


    I am contacting you from Japan.
    I’m using google translate, so I’m sorry if I use incorrect English.

    When using this plugin and setting branch conditions, a javascript error occurs.
    If I stop the plugin and run with just CF7 the error goes away.

    The error text is below.
    The error count increases with each click.

    “Uncaught TypeError: Invalid attempt to spread non-iterable instance.
    In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

    nonIterableSpread.js:2

    at _nonIterableSpread (nonIterableSpread.js:2:9)
    at _toConsumableArray (toConsumableArray.js:10:95)
    at Wpcf7cfForm.form.updateSimpleDom (scripts_es6.js:111:31)
    at scripts_es6.js:426:18
    _nonIterableSpread @ nonIterableSpread.js:2
    _toConsumableArray @ toConsumableArray.js:10
    Wpcf7cfForm.form.updateSimpleDom @ scripts_es6.js:111
    (匿名) @ scripts_es6.js:426
    setTimeout(非同期)
    (匿名) @ scripts_es6.js:424
    dispatch @ jquery.js:4670
    r.handle @ jquery.js:4338”

    —–

    supplement

    ?Conditional Fields for Contact Form 7
    →ver 2.28

    ?Contact Form 7
    →ver 5.6.3

    ?WordPress
    →ver 6.0.2

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Do you have a link to your website? I suspect that your theme is using an outdated version of jQuery.

    Thread Starter kya0413

    (@kya0413)

    It was caused by an old version of JQuery.

    I have upgraded and confirmed that it is working fine.

    Thank you for your time.

    Even i am facing same issue

    Error:

    Uncaught TypeError: Invalid attempt to spread non-iterable instance.
    In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
        at _nonIterableSpread (nonIterableSpread.js:2:9)
        at _toConsumableArray (toConsumableArray.js:10:95)
        at Wpcf7cfForm.form.updateSimpleDom (scripts_es6.js:111:31)
        at scripts_es6.js:426:18

    Here is the code form:

    <label>
     Your name     [text* your-name] </label>
    
    <label>
      Your email     [email* your-email] </label>
    
    <label>
      Subject     [text* your-subject] </label>
    
     [radio contact-options use_label_element default:1 "Technical" "Sale"]
    
    [group Technical-selected] [/group]
    
      [group Technical-selected]
     <label> Message for Technical
     [textarea technical-msg] </label>
     [/group]
    
     [group Sale-selected]
    <label> Message for Sale
     [textarea sale-msg] </label>
     [/group]
    
     [submit "Submit"]

    For your reference:
    Conditional Fields for Contact Form 7
    – Version 2.2.9

    Contact Form 7
    – Version 5.6.4

    WordPress:
    – 6.0.3

    • This reply was modified 2 years, 3 months ago by magarpayal.
    • This reply was modified 2 years, 3 months ago by magarpayal.
    Plugin Author Jules Colle

    (@jules-colle)

    @magarpayal check your jQuery version and make sure you are using the latest version. If the problem remains, please open a new topic. This topic is closed and I will not read any new replies here.

    Hi @jules-colle , I am facing the same issue as above

    I tried using jquery updater and jquery version control but when i enter this (jQuery.fn.jquery) in console on the website it shows me ‘2.1.3’ this, Please help on this

    Thanks!

    • This reply was modified 2 years, 3 months ago by Yash Kumar.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught TypeError: Invalid attempt to spread non-iterable instance.’ is closed to new replies.