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 ReferenceError: gf_apply_rules is not defined

  1. Hello,

    I have looked at a similar post. But can't seem to seem to find an answer.

    I can't understand what has changed in my theme - to cause the problem, as it was working fine before.

    I am getting a javascript error 247Uncaught ReferenceError: gf_apply_rules is not defined on my sign up form which is using conditional logic.

    It seems to be conditional logic which is causing the issue I think.

    I have 3 forms running on the website...
    http://suzukibulletin.co.uk/contact/
    http://suzukibulletin.co.uk/2012/04/26/suzuki-bulletin-launched/

    and the broken one...
    http://suzukibulletin.co.uk/sign-up/

    It completely kills all the javascript running on my page - and I don't understand as it was once upon a time fully working! I've disable all the plugins and it's not a plugin conflict. I've removed every single script from my theme template files, and still not working. The last entry was yesterday, and the only thing I changed today was by adding the 'Google Sitemap Generator' plugin, which I've disabled now.

    I'm loading my jquery at a higher scope in head than the wp_head and the wp_footer is definitely in place.

    I don't suppose you have any other ideas into why this could be happening?

    I am using the latest WordPress 3.3.1 and gravity forms 1.5. If your finding it strange too I can provide you a login.

    Many Thanks
    Josh

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  2. Josh, it doesn't look like our styles or scripts are being output here on your page. I don't see the conditional logic js file for example. How are you placing this form on this page? Does the form show up in the form builder preview?

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  3. Hi Rob,

    Thank you for such and immediate response. Of course I can see why now.

    I was adding this into my functions to stop another jquery file being loaded in the wp_head

    // JQUERY DEREGISTER
    if( !is_admin()){
    	wp_deregister_script('jquery');
    }

    But perhaps this was removing all the jquery scripts from the head. I was trying to only remove the jquery library itself, not all jquery scripts. Durrr!

    But why does a gravity form conflict with my other jquery elements on the page. If you look in the side bar on any form page , it messes up my sliders. http://i.imgur.com/krmlX.png

    It's very strange. I am using http://bxslider.com/ for all my sliders. It is just a plugin conflict?

    Thanks
    Josh

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  4. Hey Josh, glad you got that one sorted. As far as the sliders go, when I click one I do get this JS error: Screenshot

    Good news though is at least that content does work, even though it's not sliding. But seems to be something related to the easing effect.

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  5. Hmmm yeah I can see that error too.

    Thanks for your help Rob.

    Josh

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  6. No problem, glad to help out.

    Posted 12 years ago on Friday May 11, 2012 | Permalink

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