Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Warning: Invalid argument supplied for foreach() in /bb-settings.php on line 173

@neziniux

Member

I spent a whole day trying to resolve the same problem, until I came accross a sollution. Try the following improvements, worked for me.

In the bb-settings.php version 0.8.3 line 172 find the code:

if ( is_callable( ‘glob’ ) )

foreach ( glob(BBPLUGINDIR . ‘_*.php’) as $_plugin )

require($_plugin);

Replace it with:

if ( is_callable( ‘glob’ ) ) {

$pluginarray = glob(BBPLUGINDIR . ‘_*.php’);

if ($pluginarray)

foreach ( $pluginarray as $_plugin )

require($_plugin);

}

The source (in German): http://www.brusdeylins.info/bbpress/problem-in-bb-settings/#comment-67

Skip to toolbar