The installation script only creates two of the tables, and then prints out this error:
Error: Formatgroup table creation failed
I've tried to look through the code, but i can't see where the problem is. pnUpper is .1c and postnuke install is .761
Taken from pninit.php of pnUpper:
Code
$groupstable = &$pntable['up_groups'];
$groupscolumn = &$pntable['up_groups_column'];
$flds = "
$groupscolumn[gid] I AUTOINCREMENT PRIMARY,
$groupscolumn[groupname] C (100) NOTNULL DEFAULT '',
$groupscolumn[directory] C (255) NOTNULL DEFAULT '',
$groupscolumn[image] C (40) NOTNULL DEFAULT ''
";
// Creating the table
$sqlarray = $dict->CreateTableSQL($groupstable, $flds, $taboptarray);
if ($dict->ExecuteSQLArray($sqlarray) != 2) {
pnSessionSetVar('errormsg', _PNUPPERCREATETABLEFAILED2);
return false;
}
$idxname = "GroupsIndex";
$idxflds = $groupscolumn['groupname'];
$sqlarray = $dict->CreateIndexSQL($idxname, $groupstable, $idxflds);
if ($dict->ExecuteSQLArray($sqlarray) != 2) {
pnSessionSetVar('errormsg', _PNUPPERCREATEINDEXFAILED2);
return false;
}
$groupscolumn = &$pntable['up_groups_column'];
$flds = "
$groupscolumn[gid] I AUTOINCREMENT PRIMARY,
$groupscolumn[groupname] C (100) NOTNULL DEFAULT '',
$groupscolumn[directory] C (255) NOTNULL DEFAULT '',
$groupscolumn[image] C (40) NOTNULL DEFAULT ''
";
// Creating the table
$sqlarray = $dict->CreateTableSQL($groupstable, $flds, $taboptarray);
if ($dict->ExecuteSQLArray($sqlarray) != 2) {
pnSessionSetVar('errormsg', _PNUPPERCREATETABLEFAILED2);
return false;
}
$idxname = "GroupsIndex";
$idxflds = $groupscolumn['groupname'];
$sqlarray = $dict->CreateIndexSQL($idxname, $groupstable, $idxflds);
if ($dict->ExecuteSQLArray($sqlarray) != 2) {
pnSessionSetVar('errormsg', _PNUPPERCREATEINDEXFAILED2);
return false;
}
Problem seems to be in here somewhere, but I can't nail it down. Any help would be appreciated.
