<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Broken Form -- Not related to Theme/Plugin Conflict.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict</link>
		<description>Gravity Support Forums Topic: Broken Form -- Not related to Theme/Plugin Conflict.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 13:59:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/broken-form-not-related-to-themeplugin-conflict" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-40317</link>
			<pubDate>Mon, 07 Nov 2011 20:05:01 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">40317@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Guys,&#60;/p&#62;
&#60;p&#62;You should see v1.6.1 available by automatic upgrade. This version should resolve this issue. Let me know if anyone is still having trouble. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MikeThacker on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-39681</link>
			<pubDate>Wed, 02 Nov 2011 11:29:07 +0000</pubDate>
			<dc:creator>MikeThacker</dc:creator>
			<guid isPermaLink="false">39681@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have run into this exact issue.  Viewing the preview of any form in our site displays a 404.&#60;/p&#62;
&#60;p&#62;This is happening because of the way gravity forms bootstraps wordpress in preview.php.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;require_once (preg_replace(&#38;quot;/wp-content.*/&#38;quot;,&#38;quot;wp-blog-header.php&#38;quot;,__FILE__));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Loading wp-blog-header.php causes wordpress to instantiate the WP object, which on initialization parses the request and returns a 404 HTTP Status since the preview.php uri does not match any permalink, page or post known to wordpress. You can observe this by attaching a filter to 'status_header' and printing out what wordpress returns:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;status_header&#38;#39;, &#38;#39;print_header&#38;#39;);
function print_header($status_header) {
    echo $status_header;
    return $status_header;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Prints: 'HTTP/1.1 404 Not Found' for any gravity form preview.&#60;/p&#62;
&#60;p&#62;We are running nginx as our web server, and it is configured to handle 404 errors. So, as soon as it gets a 404 response from php/wordpress, it ignores anything else and returns its built in 404 page.  The original submitter may have Apache configured similarly.&#60;/p&#62;
&#60;p&#62;A simple solution for this is to bootstrap wordpress differently in preview.php.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;require_once (preg_replace(&#38;quot;/wp-content.*/&#38;quot;,&#38;quot;wp-load.php&#38;quot;,__FILE__));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This bypasses initiating the WP object and fully loads wordpress. WE have implemented this solution and haven't experienced any issues.&#60;/p&#62;
&#60;p&#62;A second solution would be to set the response header in preview.php to '200' before sending any content, thus overriding the header that wordpress had set.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;status_header(&#38;#39;200&#38;#39;); //wordpress specific&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope this helps others.&#60;/p&#62;
&#60;p&#62;Brian
&#60;/p&#62;</description>
		</item>
		<item>
			<title>znmick on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-35326</link>
			<pubDate>Wed, 14 Sep 2011 15:30:09 +0000</pubDate>
			<dc:creator>znmick</dc:creator>
			<guid isPermaLink="false">35326@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's odd -- We host tons of Wordpress sites on our dedicated and they don't share this issue with gravity forms, but I will go ahead and submit a ticket with my provider.&#60;/p&#62;
&#60;p&#62;Zack
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-35320</link>
			<pubDate>Wed, 14 Sep 2011 15:23:56 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">35320@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is a URL rewriting problem most likely related to .htaccess but possibly a web server related configuration issue.&#60;/p&#62;
&#60;p&#62;If this page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.greenmediahosting.com/wordpress/wp-content/plugins/gravityforms/preview.php?id=10&#34; rel=&#34;nofollow&#34;&#62;http://www.greenmediahosting.com/wordpress/wp-content/plugins/gravityforms/preview.php?id=10&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Returns a 404 error then something on your web server isn't functioning properly because if you browse the server file system you will see that the file exists.  Your server is acting like it does not.  So this is a server related issue involving URL rewriting and permalink handling.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>znmick on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-35310</link>
			<pubDate>Wed, 14 Sep 2011 14:56:59 +0000</pubDate>
			<dc:creator>znmick</dc:creator>
			<guid isPermaLink="false">35310@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nah -- It shouldn't.&#60;/p&#62;
&#60;p&#62;The .htacess and index.php are both moved to the root of public_html, this is something built into the wordpress codex and we've had gravity function fine on other sites we set up this way.&#60;/p&#62;
&#60;p&#62;It's most useful when having an old site up while you are working on another one, then you just move the .htaccess and index and edit a few lines and it works fine, are you sure that's an issue?&#60;/p&#62;
&#60;p&#62;Zack
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-35302</link>
			<pubDate>Wed, 14 Sep 2011 14:33:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">35302@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This page on your site returns a 404:&#60;br /&#62;
&#60;a href=&#34;http://www.greenmediahosting.com/wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://www.greenmediahosting.com/wordpress/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That is unrelated to Gravity Forms but it is related to your problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>znmick on "Broken Form -- Not related to Theme/Plugin Conflict."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/broken-form-not-related-to-themeplugin-conflict#post-35299</link>
			<pubDate>Wed, 14 Sep 2011 14:22:23 +0000</pubDate>
			<dc:creator>znmick</dc:creator>
			<guid isPermaLink="false">35299@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm having an issue with Gravity Forms working, I've exported these settings to a different domain and it works fine.&#60;/p&#62;
&#60;p&#62;Here is the link to the form:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://goo.gl/TWRBR&#34; rel=&#34;nofollow&#34;&#62;http://goo.gl/TWRBR&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In Preview mode when I submit the form it 404's to this URL:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.greenmediahosting.com/wordpress/wp-content/plugins/gravityforms/preview.php?id=10&#34; rel=&#34;nofollow&#34;&#62;http://www.greenmediahosting.com/wordpress/wp-content/plugins/gravityforms/preview.php?id=10&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When I do it on the page, it simply redirects back to the form and does not send an email nor record an entry. I've tried it both with and without AJAX.&#60;/p&#62;
&#60;p&#62;I've also tried to disable all plugins on our site, same exact problems. &#60;/p&#62;
&#60;p&#62;Everything is up to the newest version as far as gravity requirements are concerned. &#60;/p&#62;
&#60;p&#62;I have disabled pretty permalinks -- same issue&#60;br /&#62;
I reenabled them -- same issue.&#60;br /&#62;
I disabled my theme and enabled twentyeleven -- same issue. &#60;/p&#62;
&#60;p&#62;Nothing seems to fix this, and the configuration has been shown to work on other domains…&#60;/p&#62;
&#60;p&#62;Without out this it's putting a halt on our business.&#60;/p&#62;
&#60;p&#62;Ideas?&#60;/p&#62;
&#60;p&#62;Zack
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
