PDA

View Full Version : Problems after upgrade


Lionel
11-20-2004, 12:00 PM
I have upgraded the init.php with the new permissions by swapping it with the old ones, did the database upgrade. Now when I try to edit a category, it does not update permissions and it tells me:

Warning: Invalid argument supplied for foreach()

in includes/functions.php on line 2931

which is:

// takes a bitfield and the array describing the resulting fields
function convert_bits_to_array(&$bitfield, $_FIELDNAMES)
{
$bitfield = intval($bitfield);
$arry = array();
foreach ($_FIELDNAMES AS $field => $bitvalue)
{
if ($bitfield & $bitvalue)
{
$arry["$field"] = 1;
}
else

{
$arry["$field"] = 0;
}
}
return $arry;
}

Lionel
11-20-2004, 12:03 PM
And the file that I just downloaded which reads 1.0 in the zip has $version = '1.0 RC3' in the install

Our Sponsors
 

Brian
11-20-2004, 12:08 PM
Gotta love it when I do stupid stuff like that. I went ahead and updated the zip file on here since that could present a pretty big problem. If you'll download it again and upload the links/links_global.php and forum/includes/functions_links.php files then that should take care of the problem.

Lionel
11-20-2004, 12:20 PM
Thank you Brian. That fixed the problem