<?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: Invalid argument supplied for foreach() errors on site transfer</title>
		<link>https://legacy.forums.gravityhelp.com/topic/invalid-argument-supplied-for-foreach-errors-on-site-transfer</link>
		<description>Gravity Support Forums Topic: Invalid argument supplied for foreach() errors on site transfer</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 16:19:20 +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/invalid-argument-supplied-for-foreach-errors-on-site-transfer" rel="self" type="application/rss+xml" />

		<item>
			<title>Ken on "Invalid argument supplied for foreach() errors on site transfer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/invalid-argument-supplied-for-foreach-errors-on-site-transfer#post-60277</link>
			<pubDate>Thu, 24 May 2012 13:38:11 +0000</pubDate>
			<dc:creator>Ken</dc:creator>
			<guid isPermaLink="false">60277@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;1) Disabling the CPT add-on removes all errors on the page, but I then get &#34;Oops! We could not locate your form.&#34;&#60;/p&#62;
&#60;p&#62;2) I exported the form from the local dev site and imported into the new site. The new form was created fine in the backend when imported. Updated page with the shortcode to the newly imported form. Form appears fine.&#60;/p&#62;
&#60;p&#62;3) Reactivated CPT add-on and error messages do not appear.&#60;/p&#62;
&#60;p&#62;Conclusion: Possible corrupt form on export/import with backupbuddy? The other 12 forms I had came over fine. Comparing the MySQL table with the local dev form and the new form created from the import there are some differences.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Invalid argument supplied for foreach() errors on site transfer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/invalid-argument-supplied-for-foreach-errors-on-site-transfer#post-60180</link>
			<pubDate>Wed, 23 May 2012 21:23:59 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60180@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am not sure at all. Can you try disabling the Custom Post Types add-on? And can you also try duplicating the form to see if it has the same issue? And does this issue only show on the page or in preview as well?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ken on "Invalid argument supplied for foreach() errors on site transfer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/invalid-argument-supplied-for-foreach-errors-on-site-transfer#post-60169</link>
			<pubDate>Wed, 23 May 2012 18:37:07 +0000</pubDate>
			<dc:creator>Ken</dc:creator>
			<guid isPermaLink="false">60169@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I recently transferred my site from a local test server using backupbuddy.&#60;/p&#62;
&#60;p&#62;The new install seems to be working good except for my contact us form.&#60;/p&#62;
&#60;p&#62;The page is throwing these errors:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravity-forms-custom-post-types\gfcptaddonbase.php on line 116

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravity-forms-custom-post-types\gfcptaddonbase.php on line 50

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravityforms\form_display.php on line 1577

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravityforms\form_display.php on line 1577

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravity-forms-custom-post-types\gfcptaddonbase.php on line 116

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravityforms\form_display.php on line 1577

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravityforms\form_display.php on line 747

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravityforms\form_display.php on line 132

Warning: Invalid argument supplied for foreach() in C:\Sites\wordpress\wp-content\plugins\gravityforms\form_display.php on line 1577&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This page is using the shortcode to display the form. I go to the forms section on the backend and edit the form i reference in the shortcode and it shows:&#60;br /&#62;
`Form Settings : Form ID 13&#60;br /&#62;
Untitled Form&#60;br /&#62;
We would love to hear from you! Please fill out this form and we will get in touch with you shortly.'&#60;/p&#62;
&#60;p&#62;I checked the MySQL database and the form in question does appear in the database for wp_rg_form_meta but when with all the same content I checked against my local instal.&#60;/p&#62;
&#60;p&#62;Should I just try to create a new form. Any ideas as to what is going on? Current version of WP and GF are being used.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
