PDA

View Full Version : vB 3.0.5 problem


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...

Torqued
01-07-2005, 01:09 PM
Did you reapply any hacks/mods to the new init.php?

Deaths
01-07-2005, 01:09 PM
I logged off on my board, and now it only gives me that error, nothing else...

Deaths
01-07-2005, 01:10 PM
Did you have any hacks/mods installed that required edits to init.php?
Nop. I never toughed the content of it...
And it was fine with 3.0.4's init.php

Is anyone else using 3.0.5 getting this problem?

Giray
01-07-2005, 01:22 PM
I'm on 3.0.5 on three boards and no issues yet.

Deaths
01-07-2005, 01:27 PM
Heh, silly me, I forgot I had to make an edit in init.php aswell :confused: .
Let's hope it works now :o

Deaths
01-07-2005, 01:30 PM
Yay, it works now!
But now I got an error in vBa CMPS ~~.

Well, thanks guys for helping me out with this one, heh.

Link14716
01-07-2005, 07:13 PM
Yeah, always remember to redo edits before you replace a file. ;)

Torqued
01-07-2005, 07:35 PM
Yay, it works now!
But now I got an error in vBa CMPS ~~.

Well, thanks guys for helping me out with this one, heh.

Did you re-run the CMPS install progam and have it install/update the templates?