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.

updated to newest gform version today, broke site. Need help asap.

  1. Billmcq

    I use the following code in my themes function file inorder to automatically insert the contact for in particular categories when it is a single page. This code worked with no issues until I upgraded gforms today. Here is the code:

    /** Add gravity forms so it loads properly
    gravity_form_enqueue_scripts(1, true);*/

    /** Add a contact form at the end of single posts based on category*/
    add_action('genesis_after_post_content', 'insert_form');
    function insert_form() {
    if (is_single() && in_category(array(40,39))) {
    gravity_form(1, true, true, false, '', true);

    Now, after upgrade gforms, I get this crash fatal error:

    Fatal error: Call to undefined function gravity_form_enqueue_scripts() in /home/tim/public_html/wp-content/themes/prose/functions.php on line 163

    If I delete the line about enqueue, I get the following error:
    Fatal error: Call to undefined function gravity_form() in /home/tim/public_html/wp-content/themes/prose/functions.php on line 169

    How do I fix this? I just want the form to show on those category single pages. (worked fine until I did the plugin update today.


    Posted 10 years ago on Tuesday January 31, 2012 | Permalink
  2. Billmcq

    anyone able to point me in the right direction?
    this line in my functions file is causing the crash, but I need it to be able to automatically display the forms.

    gravity_form_enqueue_scripts(1, true);*/

    what caused this to crash after the latest update?

    Posted 10 years ago on Thursday February 2, 2012 | Permalink
  3. ITpearls

    I have the same problem. By me I think the problem is that this call is done in the init action of my own plugin. It seems that this action is called when the gravity form plugin is inactiv. After that, I cannot access the site. I do the following:

    1. comment the line in my plugin
    2. access the plugin page and activate gravity form plugin
    3. uncomment the line in my plugin

    It resolves my problem, but I will have the same one by the next gravity form update. is it a way to define plugin dependency in wordpress? So if gravity form plugin is unactivated, my own will be too?

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