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.

display: none and JS Uncaught RangeError

  1. FabiDrive
    Member

    Hey folks,

    i really hope, you can help me.

    I am the coder of http://www.schneider-vertrieb.info/
    I like your plugin so much, that I use it :-) And of course bought it :-)

    I put a whole load of hard work into the site. Now after I updated to Wordpress 3.4.1 and the very latest gravity forms
    some forms don't work. More precisely: they only don't show up (display:none inline).

    I looked for jQuery libs, that I may have included twice, excluded them. Same problem.
    I unluckily included 2 jQuery libs at the same time before the updates, too. After I deleted the responsible line of code no I got an error in inspector (namely: "Uncaught RangeError: Maximum call stack size exceeded").
    Before removing the duplicate jQ lib, I got no error, but the form wasn't visible, too.
    After removing the duplicate form nr. 1 on some pages works, the same form on all the other pages is display:none inline with the "Uncaught RangeError: Maximum call stack size exceeded"-error.

    Error from console in inspector (Chrome) (down under)
    It is some sort of recursive and then it breaks because of the memory of the browser. Don't know.

    Please help me out of this nightmare. If you want, you can have all the code that's needed to fix it.

    Here from Chrome Inspector JS Console
    • m.selectors.preFilter.CLASS
    • m.filter
    • m
    • c.querySelectorAll.m
    • m.matches
    • f.extend.filter
    • f.each.f.fn.(anonymous function)
    • gformIsHidden
    • gf_do_action
    • gf_do_field_action
    • gf_apply_field_rule
    • gf_apply_rules
    • onchange
    • f.event.trigger
    • f.fn.extend.trigger
    • e.extend.each
    • e.fn.e.each
    • f.fn.extend.trigger
    • (anonymous function)
    • e.extend.each
    • e.fn.e.each
    • gf_reset_to_default
    • gf_do_action
    • gf_do_field_action
    • gf_apply_field_rule
    • gf_apply_rules
    • onchange
    • f.event.trigger
    • f.fn.extend.trigger
    • e.extend.each
    • e.fn.e.each
    • f.fn.extend.trigger
    • (anonymous function)
    .
    .
    .
    .

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  2. Can you post a link to the page with your form embedded in it? I don't see one on this page or in the source: http://www.schneider-vertrieb.info/

    Thanks

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  3. This form now shows for me: Screenshot now that the jQuery in the footer is gone.

    Can you post a link to a specific form that is still not working?

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  4. The display:none indicates you are using conditional logic in your form and the fact that the whole form is hidden points to a JavaScript conflict (jQuery.)

    Does the form work fine in the preview from the form builder? If so, begin by testing for theme and plugin conflicts http://rkt.gs/testing

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  5. FabiDrive
    Member

    Ok, for shure.
    2 different links: One with that form, thats visible:
    http://www.schneider-vertrieb.info/umreifung-produkte/kunststoffband/pet-band/

    Form that is invisible:
    http://www.schneider-vertrieb.info/umreifung-produkte/umreifungsgerate/umreifungsgeratefurpet-pp-band/akku-umreifungsgerate/digit-smart-lxt/

    Thanks for helping me

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  6. FabiDrive
    Member

    By the way: Tested it in Preview: It is hidden :-(

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  7. If it does not show in the form preview, chances are the conditional logic rules are incorrect. Can you export the form as XML and email it to me at chris@rocketgenius.com - thank you.

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  8. FabiDrive
    Member

    One field in the form has conditional logic like this(Extended):
    http://d.pr/i/5sM9

    Settings:
    http://d.pr/i/ddPh

    I prerender it like this in functions.php
    http://d.pr/n/WVlj

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  9. FabiDrive
    Member

    @chris sent it to you

    Posted 8 years ago on Friday July 6, 2012 | Permalink
  10. I have your email and I will look at this again today. Thank you.

    Posted 8 years ago on Monday July 9, 2012 | Permalink
  11. Fabian, I emailed you on July 10. Any update?

    Posted 8 years ago on Tuesday July 17, 2012 | Permalink
  12. FabiDrive
    Member

    Hey Chris, thanks for support.

    As you may have noticed. I today reversed gravity forms on my clients website http://schneider-vertrieb.info to a previous version of the plugin.
    Now it just works nicely. "Never change a running system" - I don't like this sentence... I like being up to date.

    In my functions.php I deleted every pre- and post-action for form #1. Nothing!

    Only downgrading has done the job.
    I am a bit depressed about that.
    To fix this, you can have all the code, that you want, if you want to.
    Would like to upgrade in the future as newer things are going to be implemented by you incredible coders!!!

    - I am working with "advanced custom fields" by the way -

    Please reply
    Fabi

    Posted 8 years ago on Wednesday July 18, 2012 | Permalink