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.

Blank Form on All Browsers

  1. platinumtie
    Member

    I used the shortcode for one of my forms on this page:

    http://strokerecoverybc.ca/coordinator/monthly-report/

    But on every browser, the page shows up blank. I have tried disabling my other plugins, but that didn't help. The issue only appeared after upgrading to WP 3.5.1

    Posted 11 years ago on Monday January 28, 2013 | Permalink
  2. I see one JavaScript error on that page:

    Timestamp: 1/28/13 4:09:35 PM
    Error: TypeError: jQuery.browser is undefined
    Source File: http://strokerecoverybc.ca/wp-content/themes/rttheme13/js/script.js?ver=3.5.1
    Line: 371

    WordPress 3.5.1 comes with and requires jQuery 1.8.3. You're including jQuery 1.9.0 from googleapis:

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?ver=3.5.1'></script>

    That is what's causing your form to fail to display. Remove the call to that jQuery library and let WordPress enqueue the correct 1.8.3 version of the jQuery library and if there are no other JavaScript errors, I think you will find that your form displays properly.

    You can use our theme and plugin conflict resolution steps to determine where that library is being loaded, if you can't fine it: http://rkt.gs/testing

    Posted 11 years ago on Monday January 28, 2013 | Permalink
  3. platinumtie
    Member

    Thanks for your quick reply. For the life of me I cannot find the jQuery 1.9.0. I followed your link and attempted to deactivate all the plugins to find the problem. No such luck.

    Posted 11 years ago on Monday January 28, 2013 | Permalink
  4. You need to find out what file is loading this script:

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?ver=3.5.1'></script>

    My guess is the the theme is doing it in the functions.php file. Theme authors sometimes deregister the built-in jQuery and then load this from googleapis. Check the theme's functions.php

    You did not mention deactivating the theme and trying twenty eleven or twenty twelve: just disabling plugins. Is the theme is adding the script, then activating a default theme will at least confirm the theme is the problem.

    Posted 11 years ago on Monday January 28, 2013 | Permalink
  5. platinumtie
    Member

    ok, so I found a file:

    wp_register_script('jquery',("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');

    and deleted it. But still no fix.

    Posted 11 years ago on Tuesday January 29, 2013 | Permalink
  6. platinumtie
    Member

    Any more thoughts on the issue? Getting pretty desperate to get this fixed.

    Posted 11 years ago on Wednesday January 30, 2013 | Permalink
  7. It's good that you got rid of the old version of jQuery but now there is no jQuery being loaded at all. Normally, WordPress does this on its own. It sounds like the built-in jQuery was deregistered, probably somewhere near the line you removed. Can you check that please?

    You need jQuery loaded in the head of the page for Gravity Forms to work. WordPress does this on its own unless you tell it not to. I think your theme is telling it not to. Look for "deregister" near where you removed that register line.

    Posted 11 years ago on Wednesday January 30, 2013 | Permalink
  8. platinumtie
    Member

    Thank you, thank you, thank you. All is fixed now. Your help is greatly appreciated!

    Posted 11 years ago on Wednesday January 30, 2013 | Permalink
  9. Thank you for the update.

    Posted 11 years ago on Thursday January 31, 2013 | Permalink

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