Deaths
01-07-2005, 01:03 PM
At the very top of every page of my forum I get this error:
Warning: Invalid argument supplied for foreach() in /global.php on line 706
Line 706 is in bold here:
// Make a list of the all the actions...
foreach ($storeactions as $actionid => $theaction) {
if ($theaction['active'] == "1") {
$allowed = explode(",", $theaction['allowedgroups']);
foreach ($allowed as $allow) {
if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) {
$canenter = "1";
}
}
It has something to do with the vb3.0.5's init.php, because I got this problem even before upgrading to 3.0.5, just when uploading init.php.
I thought upgrading would fix the error, but it doesn't...
Warning: Invalid argument supplied for foreach() in /global.php on line 706
Line 706 is in bold here:
// Make a list of the all the actions...
foreach ($storeactions as $actionid => $theaction) {
if ($theaction['active'] == "1") {
$allowed = explode(",", $theaction['allowedgroups']);
foreach ($allowed as $allow) {
if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) {
$canenter = "1";
}
}
It has something to do with the vb3.0.5's init.php, because I got this problem even before upgrading to 3.0.5, just when uploading init.php.
I thought upgrading would fix the error, but it doesn't...