PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

jquery / Javascript error

  1. I just upgraded to WP 3.3.1 and Gravity Forms 1.6.3.3.4

    Now, one of my forms throws a Javascript error:
    Message: Unable to get value of the property 'length': object is null or undefined
    Line: 61
    Char: 4
    Code: 0
    URI: [hidden]/wp-content/plugins/gravityforms/js/jquery.textareaCounter.plugin.js?ver=1.6.3.3.4

    WP is using jQuery 1.7.1.

    I deactivated plugins and I still get the error.

    Any way I can make this error go away?

    Thanks,
    -Mark

    Posted 10 years ago on Tuesday March 27, 2012 | Permalink
  2. Richard Vav
    Administrator

    Since you have ruled out a plugin conflict have you tried temporarily switching to the twenty eleven theme to rule out a theme conflict, it could be one of the js files your theme is using that is conflicting with Gravity Forms.

    Posted 10 years ago on Tuesday March 27, 2012 | Permalink
  3. Thanks for replying.

    I'm using a customized theme based off of 2010 and cannot turn it off. What is this function for?
    function countByCharacters(){
    var content = container.val();
    var contentLength = content.length;

    I've commented out the call to this function and it has stopped the error for now.

    I know my theme uses the <div id=container>. Isn't that standard WP? I tried changing it to "containerTEST" and updated my css, but the error continued.

    I would like to resolve this without leaving a "hack" in the code.

    Thanks,
    -Mark

    Posted 10 years ago on Tuesday March 27, 2012 | Permalink