Importing from a Phorum 3.4.8 database using Impex 1.32. Not all forums are imported.
I added some trace code to 005.php and it appears the problem is that my Phorum forum ids are not sequential (i.e., they're 1,2,3,5,6,7,8,10,11), and the last two forums are skipped.
I tweaked get_phorum3_forum_step in 000.php to use the code below (rather than using $currentforumloop as the id in the select statement).
$sql = "SELECT id, table_name FROM ".$tableprefix."forums ORDER BY id";
$query_id = $Db_object->query($sql);
if(!$Db_object->data_seek($currentforumloop,$query_id))
return false;
$details_list = $Db_object->fetch_array($query_id);
$Db_object->free_result($query_id);
$Db_object->lastquery = $sql;
This seems to have solved the problem.
David
I added some trace code to 005.php and it appears the problem is that my Phorum forum ids are not sequential (i.e., they're 1,2,3,5,6,7,8,10,11), and the last two forums are skipped.
I tweaked get_phorum3_forum_step in 000.php to use the code below (rather than using $currentforumloop as the id in the select statement).
$sql = "SELECT id, table_name FROM ".$tableprefix."forums ORDER BY id";
$query_id = $Db_object->query($sql);
if(!$Db_object->data_seek($currentforumloop,$query_id))
return false;
$details_list = $Db_object->fetch_array($query_id);
$Db_object->free_result($query_id);
$Db_object->lastquery = $sql;
This seems to have solved the problem.
David
Comment