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.

MULTISITE - Form will not display in site

  1. chingy
    Member

    Hiya

    I currently use a plugin called New Blog Templates (http://premium.wpmudev.org/project/new-blog-template/) which allows me to create a template blog so that when a new user registers, they inherit all the page and post settings of the template blog.

    The template includes a PAGE called CONTACT US which includes this: [gravityform id="1" name="Contact us"]

    However when I view the CONTACT US PAGE of a single site it comes up with: Oops! We could not locate your form.

    Is there a way to make a form and all its fields created automatically for the single site upon signup? Obviously they wouldnt be able to access or see the entries from other sites.

    Thanks

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  2. You can specify which forms are created upon site creation by setting GF_IMPORT_FILE in your wp-config.php and pointing that to the XML file which holds the forms you want created with each new site.

    http://www.gravityhelp.com/documentation/page/Advanced_Configuration_Options#GF_IMPORT_FILE

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  3. chingy
    Member

    Thanks

    I followed those instructions but it didnt seem to work.

    When I register a new site it says: You don't have any forms. Let's go create one!

    Does the location of the code in wp-config.php matter? I have it just before Happy Blogging

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  4. chingy
    Member

    I think part one of the problem is that I cannot seem to set the GF_LICENSE_KEY.

    In my wp-config file I have this (code instead of hash of course):

    define("GF_LICENSE_KEY", "#######################");

    However when I create a new website:

    a) It says "You don't have any forms. Let's go create one!
    b) When I go to Forms > Settings > I see that the Support Licence Key has a CROSS instead of a TICK. I know that the key is correct and I've checked it a number of times. In fact, when I copy my licence key from the wp-config file and paste it into the Support Licence Key of the site it works fine and the CROSS becomes a TICK.

    Please help??

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  5. chingy
    Member

    Fixed the above but the problem still seems to exist where I cannot add a template file using GF_IMPORT_FILE

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  6. The location just before "Happy Blogging" is fine.

    Sounds like you fixed the license problem.

    What value are you setting for GF_IMPORT_FILE? It should be a URL to the file should be readable by the web server. Can you show us the line from your wp-config.php so we can see if we can load the file in a web browser?

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  7. chingy
    Member

    Hi, sorry I didnt see your reply.

    Here is my line:

    define("GF_IMPORT_FILE", "http://antweb5.co.uk/wp-content/uploads/gravity/default-forms.xml");

    Posted 11 years ago on Monday February 18, 2013 | Permalink
  8. Can you test to see if this works without using the New Blog Templates plugin? Maybe there is a conflict with that plugin. I can confirm this function works correctly with a multisite install and I verified that your XML file can be read.

    Also, do you know if this plugin works by copying database tables? If so, maybe it needs to copy over the Gravity Forms tables as well? In that case, you would not need this setting in wp-config.php.

    Posted 11 years ago on Monday February 18, 2013 | Permalink
  9. chingy
    Member

    Hi Chris

    I deactivated the plugin and then deleted the plugin and tried signing up again, once again it didn't work.

    I can create forms fine, but I really need the forms created on load :(

    I also tried commenting out my htaccess rules in case something was effecting it but still nothing.

    Any advice?

    Posted 11 years ago on Monday February 18, 2013 | Permalink
  10. @chingty, because you are a developer license holder, you can use our priority support form here : http://www.gravityhelp.com/priority-support/

    We will likely need more information from you. Please open a ticket and we'll get started there. Reference this topic in your ticket. Thank you.

    Posted 11 years ago on Tuesday February 19, 2013 | Permalink
  11. chingy
    Member

    Thanks Chris, I'll go there now.

    I set up a completely fresh website yesterday and did the same setup and it worked fine for me (as a Super Admin of the multisite) - I actually copied the two Gravity Form lines from the original wp-config file too.

    But something I have just noticed, is that on the original site, the site admin (who signed up and created a single site on my network) CANNOT save a form anyway - so this may be why?
    In fact when I try to (as a site admin - not the super admin) it comes up with: There was an error while saving your form. Please contact our support team.

    Posted 11 years ago on Tuesday February 19, 2013 | Permalink
  12. We have your priority support ticket now, so we'll concentrate the support there. Thank you.

    Posted 11 years ago on Tuesday February 19, 2013 | Permalink

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