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.

Uncaught TypeError: Object [object Object] has no method 'prop'

  1. Hello,

    I created a form using the gravity forms plugin. However the form does not show up due to a display:none css setting for a parent div. The form can be viewed at http://test.ishausa.org/ebc-donation-form/. When I look at the javascript console it tells me that there are script errors:

    Uncaught SyntaxError: Unexpected token ILLEGAL
    Uncaught TypeError: Object [object Object] has no method 'prop'

    I am using the Headway 2.0.13 theme. Please help.

    Thanks,
    Aish

    Posted 11 years ago on Friday September 7, 2012 | Permalink
  2. I see at least 3 JavaScript errors on your site.

    Timestamp: 9/8/2012 9:14:09 AM
    Error: SyntaxError: unterminated string literal
    Source File: http://test.ishausa.org/ebc-donation-form/
    Line: 390, Column: 36
    Source Code:
       var scr = document.createElement(" 
    
    Timestamp: 9/8/2012 9:14:09 AM
    Error: downloadable font: table 'GPOS': OpenType layout data discarded (font-family: "Cabin" style:normal weight:normal stretch:normal src index:2)
    source: https://themes.googleusercontent.com/static/fonts/cabin/v4/JEgmtEDzc-IH8jBshQXrYA.woff
    Source File: https://fonts.googleapis.com/css?family=Cabin:400
    Line: 0
    Source Code:
    @font-face {   font-family: "Cabin";   font-style: normal;   font-weight: 400;   src: local("Cabin Regular"), local("Cabin-Regular"), url("https://themes.googleusercontent.com/static/fonts/cabin/v4/JEgmtEDzc-IH8jBshQXrYA.woff") format("woff"); }
    
    Timestamp: 9/8/2012 9:14:09 AM
    Error: TypeError: input.prop is not a function
    Source File: http://test.ishausa.org/wp-content/plugins/gravityforms/js/gravityforms.js?ver=1.6.5.1
    Line: 814

    Please begin troubleshooting by following these instructions to check for theme and plugin conflicts http://rkt.gs/testing

    The form will not display until the JavaScript errors are resolved. Gravity Forms uses jQuery to unhide the form.

    Please also upgrade to the latest version of Gravity Forms (1.6.7).

    Posted 11 years ago on Saturday September 8, 2012 | Permalink
  3. This was actually because the site was loading 2 versions of jQuery at the same time and eventually jQuery version 1.5 was getting picked up. Version 1.6 onwards only has the prop method. I removed the line of the code from the offending plugin (Nivo slider) which explicitly loads jQuery version 1.5.

    Posted 11 years ago on Thursday October 4, 2012 | Permalink
  4. Thank you for the update.

    Posted 11 years ago on Thursday October 4, 2012 | Permalink

This topic has been resolved and has been closed to new replies.