<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.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>THE MOLITOR FORUMS &#187; Topic: Error in the index.php &quot;invalid argument supplied&quot;</title>
		<link>http://www.themolitor.com/forums/topic/error-in-the-indexphp-invalid-argument-supplied</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Error in the index.php &quot;invalid argument supplied&quot;</description>
		<language>en-US</language>
		<pubDate>Wed, 29 Apr 2026 02:16:01 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/error-in-the-indexphp-invalid-argument-supplied" rel="self" type="application/rss+xml" />

		<item>
			<title>maccashareteam on "Error in the index.php &quot;invalid argument supplied&quot;"</title>
			<link>http://www.themolitor.com/forums/topic/error-in-the-indexphp-invalid-argument-supplied#post-9117</link>
			<pubDate>Thu, 19 Apr 2012 10:22:50 +0000</pubDate>
			<dc:creator>maccashareteam</dc:creator>
			<guid isPermaLink="false">9117@http://www.themolitor.com/forums/</guid>
			<description><p>For blakdawg,vikismi, and Justin , here my solution:</p>
<p>just download option tree plugin here : _http://wordpress.org/extend/plugins/option-tree/<br />
activate it and well done!
</p></description>
		</item>
		<item>
			<title>blakdawg on "Error in the index.php &quot;invalid argument supplied&quot;"</title>
			<link>http://www.themolitor.com/forums/topic/error-in-the-indexphp-invalid-argument-supplied#post-9106</link>
			<pubDate>Wed, 18 Apr 2012 19:56:29 +0000</pubDate>
			<dc:creator>blakdawg</dc:creator>
			<guid isPermaLink="false">9106@http://www.themolitor.com/forums/</guid>
			<description><p>Here's the site link:<br />
<a href="http://yourbuzzlive.com/main/" rel="nofollow">http://yourbuzzlive.com/main/</a></p>
<p>Also, no plugins are activated at this point and I just checked the dashboard editor and the style sheet is there. Here's the header of the css file copied from the editor:<br />
/*<br />
Theme Name: The Daily Press<br />
Theme URI: <a href="http://themolitor.com" rel="nofollow">http://themolitor.com</a><br />
Description: Custom theme developed by Chris Molitor.<br />
Author: Chris Molitor<br />
Author URI: <a href="http://themolitor.com/" rel="nofollow">http://themolitor.com/</a><br />
License: GNU General Public License<br />
License URI: license.txt<br />
Version: 1.0<br />
Tags: white, custom-background, threaded-comments, custom-menu<br />
*/
</p></description>
		</item>
		<item>
			<title>blakdawg on "Error in the index.php &quot;invalid argument supplied&quot;"</title>
			<link>http://www.themolitor.com/forums/topic/error-in-the-indexphp-invalid-argument-supplied#post-9105</link>
			<pubDate>Wed, 18 Apr 2012 19:50:44 +0000</pubDate>
			<dc:creator>blakdawg</dc:creator>
			<guid isPermaLink="false">9105@http://www.themolitor.com/forums/</guid>
			<description><p>Hi. I got the same error and this fix did not correct the problem. Is there something else to check?<br />
Please let me know. Thanks.</p>
<p>PS here's the error:<br />
Warning: Invalid argument supplied for foreach() in /home/content/44/9133144/html/yourbuzzlive/main/wp-content/themes/dailypress/index.php on line 21</p>
<p>Actions taken:<br />
Tried to upload the theme in the dashboard with dailypress.zip which was included in the package. this usually works for my installs. Also tried to directly upload unpacked theme file (the folder with the css files) via ftp to the themes folder in wp-content and have checked the content of the uploaded folder and it contails all the php/css/etc files that it should. Both installs yielded the same error.
</p></description>
		</item>
		<item>
			<title>Justin on "Error in the index.php &quot;invalid argument supplied&quot;"</title>
			<link>http://www.themolitor.com/forums/topic/error-in-the-indexphp-invalid-argument-supplied#post-9060</link>
			<pubDate>Tue, 17 Apr 2012 17:46:28 +0000</pubDate>
			<dc:creator>Justin</dc:creator>
			<guid isPermaLink="false">9060@http://www.themolitor.com/forums/</guid>
			<description><p>Take a look here: <a href="http://www.themolitor.com/forums/topic/solving-broken-themestylesheet-missing-wordpress-theme-issues" rel="nofollow">http://www.themolitor.com/forums/topic/solving-broken-themestylesheet-missing-wordpress-theme-issues</a>
</p></description>
		</item>
		<item>
			<title>vikismi on "Error in the index.php &quot;invalid argument supplied&quot;"</title>
			<link>http://www.themolitor.com/forums/topic/error-in-the-indexphp-invalid-argument-supplied#post-8984</link>
			<pubDate>Mon, 16 Apr 2012 14:21:06 +0000</pubDate>
			<dc:creator>vikismi</dc:creator>
			<guid isPermaLink="false">8984@http://www.themolitor.com/forums/</guid>
			<description><p>I have just installed this theme in WP and got this error in the index:</p>
<p>Warning: Invalid argument supplied for foreach() in /home/content/88/9195488/html/wp-content/themes/dailypress/index.php on line 21</p>
<p>This is my index.php:</p>
<p>&#60;?php get_header(); ?&#62;</p>
<p>&#60;div id="main"&#62;</p>
<p>	&#60;?php<br />
	if ( function_exists( 'get_option_tree') ) {<br />
		$theme_options = get_option('option_tree');<br />
		$homeCats = array(<br />
			$cat1 = get_option_tree('cat_1',$theme_options),<br />
			$cat2 = get_option_tree('cat_2',$theme_options),<br />
			$cat3 = get_option_tree('cat_3',$theme_options),<br />
			$cat4 = get_option_tree('cat_4',$theme_options),<br />
			$cat5 = get_option_tree('cat_5',$theme_options),<br />
			$cat6 = get_option_tree('cat_6',$theme_options),<br />
			$cat7 = get_option_tree('cat_7',$theme_options),<br />
			$cat8 = get_option_tree('cat_8',$theme_options),<br />
			$cat9 = get_option_tree('cat_9',$theme_options),<br />
			$cat10 = get_option_tree('cat_10',$theme_options)<br />
		);<br />
	}<br />
	foreach($homeCats as $homeCat) { if($homeCat){<br />
	$catname = get_cat_name( $homeCat );<br />
	?&#62;</p>
<p>	&#60;h2 class="catName"&#62;<a> Articles" href="&#60;?php echo get_category_link($homeCat); ?&#62;"&#62;&#60;?php echo $catname; ?&#62; &#60;span&#62;View All &#8594;&#60;/span&#62;</a>&#60;/h2&#62;<br />
	&#60;div class="cn_wrapper"&#62;<br />
		&#60;div class="cn_preview"&#62;<br />
			&#60;?php<br />
			$showPostsInCategory = new WP_Query(); $showPostsInCategory-&#62;query('cat='.$homeCat.'&#38;showposts=8');<br />
			if ($showPostsInCategory-&#62;have_posts()) :<br />
			while ($showPostsInCategory-&#62;have_posts()) : $showPostsInCategory-&#62;the_post();<br />
			?&#62;<br />
				&#60;div class="cn_content"&#62;<br />
					&#60;h2&#62;<a>"&#62;&#60;?php the_title();?&#62;</a>&#60;/h2&#62;<br />
					<a>" title="&#60;?php the_title_attribute(); ?&#62;"&#62;&#60;?php the_post_thumbnail('slider'); ?&#62;</a><br />
					&#60;p class="metaStuff"&#62;By &#60;?php the_author_posts_link();?&#62;&#160; &#60;?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?&#62;&#60;/p&#62;<br />
					&#60;?php the_excerpt(); ?&#62;<br />
					<a>"&#62;Read More &#8594;</a><br />
				&#60;/div&#62;<br />
			&#60;?php endwhile; endif; ?&#62;<br />
		&#60;/div&#62;&#60;!--end preview--&#62;<br />
		&#60;div class="cn_list"&#62;&#60;/div&#62;<br />
	&#60;/div&#62;&#60;!--end wrapper--&#62;</p>
<p>	&#60;?php }} ?&#62;</p>
<p>&#60;/div&#62;&#60;!--end main--&#62;</p>
<p>&#60;?php<br />
get_sidebar();<br />
get_footer();<br />
?&#62;</p>
<p>So what was wrong?!! Do I have to change anything?</p>
<p>Thanks for the support!!
</p></description>
		</item>

	</channel>
</rss>
