WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms + Custom Post Types
gfcpt_tag_inputs is not defined (8 posts)

  1. Jonathan Idica
    Member
    Posted 1 year ago #

    I am getting a "gfcpt_tag_inputs is not defined" javascript error which prevents my gravity form from showing up. I am on version 3.5.1 of wordpress, 1.6.11 for Gravity Forms, and 3.0.1 for GFCPT. Any help would be appreciated.

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

  2. shamai
    Member
    Posted 10 months ago #

    i get this also and my jquery is already loaded and so is everything else...
    inf fact this is the last script loade don the page so what gives?

  3. shamai
    Member
    Posted 10 months ago #

    ok so it works somewhat when the form is embedded in a post not if the form is in your theme.
    so we need to fix that...
    next its using an old jquery.ui and looking for curCss which is depracated but the plugin seems to load its own jquery.ui.... so i dunno
    so we need to fix that....

  4. shamai
    Member
    Posted 10 months ago #

    ok so wordpress has updated their version of jquery and this uses old code....
    so its broken.

  5. shamai
    Member
    Posted 10 months ago #

    fix:

    go to the jquery.ui page. download a custom version with the following:
    the core.
    and autocomplete.
    save and get custom js.
    open the plugin to its js file and replace the 1.18 or whatever it is with our new one.

    open gfcptaddonbase.php
    find the line that says
    $src = plugins_url( 'js/jquery-ui-1.18.16.custom.min.js' , __FILE__ ),

    change the name to our new one 1.10.3 viola it works.
    now it just wont work unless its from an embedded form in a post,
    not from theme form...

  6. jonahrbrown
    Member
    Posted 10 months ago #

    With WP 3.6 it displays the same error. Any idea when this will get fixed?

    error:
    '
    Uncaught TypeError: Object function (e,t){return new x.fn.init(e,t,r)} has no method 'curCSS' jquery-ui-1.8.16.custom.min.js?ver=3.6:14
    Uncaught ReferenceError: gfcpt_tag_inputs is not defined tag-it.init.js?ver=3.6:6
    '

  7. shamai
    Member
    Posted 10 months ago #

    get rid of that old jquery. see my post above.
    you can replace it

    but even then theres till is an error of using gravity form in your templates. it still wont work

  8. jamesckemp
    Member
    Posted 5 months ago #

    So it looks as though the problem is actually occuring in the enqueue_custom_scripts function in gfcptaddonbase.php

    It is setting $this->_has_tag_inputs = true;

    however, when it comes to loading the enqueue_scripts, it is seeing that value as false, so not setting the missing variable.

    Should be easy enough to fix for the author?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.