<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: Installation Problem - Cannot modify header information</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Installation Problem - Cannot modify header information</description>
<language>en</language>
<pubDate>Mon, 06 Oct 2008 23:36:11 +0000</pubDate>

<item>
<title>shaythong on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13259</link>
<pubDate>Sun, 20 Jan 2008 19:15:47 +0000</pubDate>
<dc:creator>shaythong</dc:creator>
<guid isPermaLink="false">13259@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@Sam Bauers: Thanks, it really works.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13256</link>
<pubDate>Sun, 20 Jan 2008 08:18:08 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">13256@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;See the solution in this post. It may fix your problem.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.org/forums/topic/php-error-messages?replies=10#post-13143&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/php-error-messages?replies=10#post-13143&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>shaythong on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13254</link>
<pubDate>Sun, 20 Jan 2008 06:54:44 +0000</pubDate>
<dc:creator>shaythong</dc:creator>
<guid isPermaLink="false">13254@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;In bbPress version 0.8.3.1 open file: bb-admin/plugins.php and find:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ( is_callable( &#38;#39;glob&#38;#39; ) ) {
	foreach ( glob(BBPLUGINDIR . &#38;#39;_*.php&#38;#39;) as $_plugin ) {
		$_data = bb_get_plugin_data( $_plugin );
		$_plugins[$_plugin] = $_data ? $_data : true;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Replace with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ( is_callable( &#38;#39;glob&#38;#39; ) ) {
$pluginarray = glob(BBPLUGINDIR . &#38;#39;_*.php&#38;#39;);
if ($pluginarray)
foreach ( $pluginarray as $_plugin )
require($_plugin);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm not sure if this will work.
&#60;/p&#62;</description>
</item>
<item>
<title>erissiva on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13068</link>
<pubDate>Tue, 08 Jan 2008 11:35:55 +0000</pubDate>
<dc:creator>erissiva</dc:creator>
<guid isPermaLink="false">13068@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am currently having this problem as well. The solution of editing line 173 linked to by the above poster has made the errors go away from my main pages, but I still get this error when I go to Admin &#38;gt; Site Management:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Warning: Invalid argument supplied for foreach() in /homedir/bb-admin/plugins.php on line 7&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>chrishajer on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13043</link>
<pubDate>Sun, 06 Jan 2008 15:04:15 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">13043@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;So, why the PHP error then?  Is it related to the PHP version (I think this was happening with PHP version 4.x vs servers with version 5.x)?&#60;/p&#62;
&#60;p&#62;Did anyone review &#60;a href=&#34;http://bbpress.org/forums/topic/warning-invalid-argument-supplied-for-foreach-in-bb-settingsphp-on-line-173?replies=8#post-12848&#34;&#62;this solution&#60;/a&#62;?
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13042</link>
<pubDate>Sun, 06 Jan 2008 15:01:59 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">13042@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;No, not avatars :)&#60;/p&#62;
&#60;p&#62;With WordPress, they include Hello which is an admin only plugin and it serves mostly to show how a plugin is done.  It doesn't affect the public site at all, and it's not activated either.  I would think a similarly benign plugin could be included, just so there is something there.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13039</link>
<pubDate>Sun, 06 Jan 2008 06:04:17 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">13039@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;No, from the PHP docu &#60;code&#62;glob&#60;/code&#62; only returns false when it encounters an error. No files found makes it return an empty array. (I don't have any underscored files and it works for me, too.)&#60;/p&#62;
&#60;p&#62;But I agree with you, those folders should be in there by default. What plugins could be included that could be interesting to everyone? Avatars?
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13037</link>
<pubDate>Sun, 06 Jan 2008 05:35:58 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">13037@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've seen two or three &#60;a href=&#34;http://bbpress.org/forums/topic/warning-invalid-argument-supplied-for-foreach-in-bb-settingsphp-on-line-173?replies=8#post-11278&#34;&#62;seemingly &#60;/a&#62; &#60;a href=&#34;http://bbpress.org/forums/topic/php-error-site-mangement-plugins-page?replies=5#post-13008&#34;&#62;unrelated&#60;/a&#62; &#60;a href=&#34;http://bbpress.org/forums/topic/warning-invalid-argument-supplied-for-foreach-in-bb-settingsphp-on-line-173?replies=8#post-11266&#34;&#62;problems&#60;/a&#62; pop up related to something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ( is_callable( &#38;#39;glob&#38;#39; ) )
 	foreach ( glob(BBPLUGINDIR . &#38;#39;_*.php&#38;#39;) as $_plugin )
 	require($_plugin);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#38;nbsp;&#60;/p&#62;
&#60;p&#62;Seems like if there are no underscore plugins, this fails.  I don't follow the code exactly, but further up in that file, it defines BBPLUGINDIR if it's not already defined as (basically) &#60;code&#62;my-plugins/&#60;/code&#62;.  But this line just says &#34;if glob is callable, then go through the directory for all underscore plugins&#34;.  What happens if there &#60;strong&#62;are&#60;/strong&#62; no plugins there?  This would return false, maybe, instead of an array?&#60;/p&#62;
&#60;p&#62;And, is there a good reason NOT to include a blank directory for &#60;code&#62;my-templates&#60;/code&#62; and &#60;code&#62;my-plugins&#60;/code&#62;?  At least then people would know where to put stuff.  I mean, what IS the reason?  WordPress comes with &#60;code&#62;wp-content/themes/&#60;/code&#62; and &#60;code&#62;wp-content/plugins/&#60;/code&#62; directories, and by default, two themes and two plugins.  That eliminates the possibility of something missing.  Of course, people could delete those, but right off the bat, they wouldn't and things would just &#60;strong&#62;work&#60;/strong&#62; when they started out.&#60;/p&#62;
&#60;p&#62;At the very least, I think this should be fixed to have a conditional looking for underscore plugins before looping through them (i.e. if there are none, you can't loop through them.)&#60;/p&#62;
&#60;p&#62;Maybe someone with a better read on it can explain to me exactly what's happening.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13034</link>
<pubDate>Sun, 06 Jan 2008 01:27:53 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">13034@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can you create the my-plugins directory in your root folder? I assume it isn't there, that's the only reason I can see for glob() to return false rather than an array.
&#60;/p&#62;</description>
</item>
<item>
<title>blue007 on "Installation Problem - Cannot modify header information"</title>
<link>http://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information#post-13032</link>
<pubDate>Sun, 06 Jan 2008 01:04:22 +0000</pubDate>
<dc:creator>blue007</dc:creator>
<guid isPermaLink="false">13032@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi Guys,&#60;/p&#62;
&#60;p&#62;I´ve got a problemrunning the installation properly. These failures appear and I can`t log in to the forum:&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in /var/www/web7/html/stilblogforum/bb-settings.php on line 169&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /var/www/web7/html/stilblogforum/bb-settings.php:169) in /var/www/web7/html/stilblogforum/bb-includes/pluggable.php on line 37&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /var/www/web7/html/stilblogforum/bb-settings.php:169) in /var/www/web7/html/stilblogforum/bb-includes/pluggable.php on line 37&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /var/www/web7/html/stilblogforum/bb-settings.php:169) in /var/www/web7/html/stilblogforum/bb-includes/pluggable.php on line 164&#60;/p&#62;
&#60;p&#62;At the top of the forum, the followinf message is displayed:&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in /var/www/web7/html/stilblogforum/bb-settings.php on line 16&#60;/p&#62;
&#60;p&#62;Can anyone help me? I already tried searching here for an answer, but nothing helped me...&#60;/p&#62;
&#60;p&#62;Thx from Aachen, Germany&#60;/p&#62;
&#60;p&#62;Andreas
&#60;/p&#62;</description>
</item>

</channel>
</rss>
