<?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: Trouble with the gform_after_submission hook and the $entry object</title>
		<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-the-gform_after_submission-hook-and-the-entry-object</link>
		<description>Gravity Support Forums Topic: Trouble with the gform_after_submission hook and the $entry object</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:40:04 +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/trouble-with-the-gform_after_submission-hook-and-the-entry-object" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Trouble with the gform_after_submission hook and the $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-the-gform_after_submission-hook-and-the-entry-object#post-82923</link>
			<pubDate>Tue, 23 Oct 2012 10:52:05 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">82923@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am glad you figured it out. Thanks for the info.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kevinlearynet on "Trouble with the gform_after_submission hook and the $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-the-gform_after_submission-hook-and-the-entry-object#post-82656</link>
			<pubDate>Mon, 22 Oct 2012 11:50:37 +0000</pubDate>
			<dc:creator>kevinlearynet</dc:creator>
			<guid isPermaLink="false">82656@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've solved the issue. Database caching with APC was enabled using W3 Total Cache plugin. &#60;code&#62;wp_rg&#60;/code&#62; fields were avoided, but not multisite table prefixes. e.g. &#60;code&#62;wp_3_rg_&#60;/code&#62;. Adding &#60;code&#62;wp_3_rg_&#60;/code&#62; to the W3 Total Cache Settings &#38;gt; Database Cache &#38;gt; Advanced &#38;gt; Ignored query stems section solved the issue.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kevinlearynet on "Trouble with the gform_after_submission hook and the $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-the-gform_after_submission-hook-and-the-entry-object#post-82232</link>
			<pubDate>Fri, 19 Oct 2012 12:03:46 +0000</pubDate>
			<dc:creator>kevinlearynet</dc:creator>
			<guid isPermaLink="false">82232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm having some trouble with the gform_after_submission action. I have a multisite installation with a 5 page step form that uses the gform_after_submission action to gather data from the $entry object and store it as a post entry in a custom post type.&#60;/p&#62;
&#60;p&#62;The problem is that the $entry object return seems to be incomplete, with 95% of the field values displayed as empty.&#60;/p&#62;
&#60;p&#62;The following proof of concept function has been placed in a theme's functions.php file. The $entry fields output all appear to be empty after the second question:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function gravity_after_submission( $entry, $form ) {
	echo &#38;#39;&#38;lt;pre&#38;gt;&#38;#39;;
	print_r($entry);
	echo &#38;#39;&#38;lt;/pre&#38;gt;&#38;#39;;
	exit;
}
add_action( &#38;#39;gform_after_submission&#38;#39;, &#38;#39;gravity_after_submission&#38;#39;, 10, 2 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The array that is output:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://gist.github.com/3919004&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/3919004&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When I display the $_POST variable using that same action, I do see that all of the form data has in fact been submitted, but I would prefer to work with the $entry object over the raw $_POST.&#60;/p&#62;
&#60;p&#62;I've been searching around the forms_model.php and forms_display.php trying to pin down where the issue is occurring, but I have a feeling it may be a database/multisite storage issue.&#60;/p&#62;
&#60;p&#62;Any assistance from someone would be greatly appreciated, I've been staring at this for too long and I have a hunch it could be something simple.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
