• Hello,
    I have this js error on create or edit a form.

    Uncaught TypeError: Cannot read property 'update' of undefined
    tag-generator.js:21 Uncaught TypeError: Cannot read property 'normalize' of undefined
    tag-generator.js:28 Uncaught TypeError: Cannot read property 'insert' of undefined

    In this way i can’t create or edit a form…any idea?
    Thank you!

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What version of WordPress and Contact Form 7 do you use?

    I also have exactly the same issue.
    Using latest CF7 4.2 and WP4.2.2

    Already switched to default theme and disabled all plugins.

    The issue appeard after the update to CF7 4.2

    Thread Starter thieffolo

    (@thieffolo)

    wp version 4.2.2 and plugin version 4.2

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Which browser did you use? Do you see the error with other browsers?

    I did used Chrome and Tested with FireFox (both last versions)

    Thread Starter thieffolo

    (@thieffolo)

    Hello Takayuki, firefox and safari too are full of JS error like: TypeError: _wpcf7.taggen is undefined

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    thieffolo, can you tell me precisely when do you see the error? Is it when you click the contact form name in Contact > Contact Forms menu? Or, when you click on a tag-generator button?

    Also, how is the error displayed? In a JavaScript alert popup?

    Thread Starter thieffolo

    (@thieffolo)

    This first error is showed on edit the post (form)
    tag-generator.js?ver=4.2:11 Uncaught TypeError: Cannot read property 'update' of undefined

    The modal window opens correctly but on pressing on Insert Tag button:
    tag-generator.js?ver=4.2:28 Uncaught TypeError: Cannot read property 'insert' of undefined

    All errors are printed in the console.

    Hope it helps…thank you

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thank you. What other plugins and theme do you use?

    Thread Starter thieffolo

    (@thieffolo)

    It’s a custom theme (a very simple theme).
    Installed plugins are WooCommerce and Query Monitor for debugging but the error is still here even with all plugins deactivated.

    thank you

    I am having the same error “_wpcf7.taggen is undefined” when clicking the “Insert Tag” button in the generator, or ticking any of the checkboxes.

    Plugin 4.2
    WP 4.1
    List of plugins (pastebin)

    I can create a form by adding tags manually and save with no issue.
    Sorry, if you would like me to start another thread I will.

    Chrome:
    Uncaught TypeError: Cannot read property ‘insert’ of undefined(anonymous function) @ tag-generator.js?ver=4.2:28m.event.dispatch @ jquery.min.js:3r.handle @ jquery.min.js:3

    Firebug:
    TypeError: _wpcf7.taggen is undefined
    _wpcf7.taggen.insert(tag);
    /plugins/contact-form-7/admin/js/tag-generator.js?ver=4.2
    Line 28, Col 2

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    thieffolo, thanks. can I see the site?

    The problem occurs when you have ‘SCRIPT_DEBUG’ constant defined in wp-config.php. I hope it will help you to track down those bugs.

    Thread Starter thieffolo

    (@thieffolo)

    Yes! Thank you pawdat your answer is right…I’m on a development environment so all debugging constant are true and SCRIPT_DEBUG was one of them…

    thanks to all…

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thanks for the info. I’m dealing with it.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Tag generator js errors’ is closed to new replies.