<?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: BUG: Invalid argument supplied for foreach() forms_model.php</title>
		<link>https://legacy.forums.gravityhelp.com/topic/bug-invalid-argument-supplied-for-foreach-forms_modelphp</link>
		<description>Gravity Support Forums Topic: BUG: Invalid argument supplied for foreach() forms_model.php</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:25:01 +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/bug-invalid-argument-supplied-for-foreach-forms_modelphp" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "BUG: Invalid argument supplied for foreach() forms_model.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-invalid-argument-supplied-for-foreach-forms_modelphp#post-72313</link>
			<pubDate>Thu, 23 Aug 2012 12:56:38 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">72313@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@infomedia, thanks for the heads up. The changes you have suggested make sense.&#60;br /&#62;
Huw, I have a new version with the change. Send me an email to &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62; if you would like to try it and see if it fixes your issue. Make sure to include a link to this post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Huw Rowlands on "BUG: Invalid argument supplied for foreach() forms_model.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-invalid-argument-supplied-for-foreach-forms_modelphp#post-72268</link>
			<pubDate>Thu, 23 Aug 2012 10:12:00 +0000</pubDate>
			<dc:creator>Huw Rowlands</dc:creator>
			<guid isPermaLink="false">72268@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am getting this warning after upgrading and cannot see the entries of my form?&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in /home/inspired/public_html/dev/ukweddingawards/wp-content/plugins/gravityforms/forms_model.php on line 2612&#60;/p&#62;
&#60;p&#62;Can this be resolved?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infomedia on "BUG: Invalid argument supplied for foreach() forms_model.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-invalid-argument-supplied-for-foreach-forms_modelphp#post-72092</link>
			<pubDate>Wed, 22 Aug 2012 10:45:53 +0000</pubDate>
			<dc:creator>infomedia</dc:creator>
			<guid isPermaLink="false">72092@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In the function build_lead_array on line 2577 of forms_model.php, there is a check on line 2582 &#34;if(is_array($results) &#38;amp;&#38;amp; sizeof($results) &#38;gt; 0)&#34;, however the closing bracket is on line 2585, and on line 2588 there is a foreach loop on the $results variable, outside the check to see if it's an array. This throws an PHP WARNING. I'm not sure if this is the root of the problem, but by moving this loop inside the bracket (placing the bracket on line 2605), it causes the notice to go away. I'm not sure if this has been addressed or mentioned already, but wanted to bring it to the attention of the developers.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
