We already had an issue with orphaned attachment and while writing the vb5 module I had the same issue with posts. As a simple solution is possible for nearly all modules it should be added. After the prepare_insert_array (also after the log call) simply add
// An orphaned post which isn't associated with any thread. We can't handle those for several reasons so trick them
if($insert_array['tid'] < 1)
{
$this->increment_tracker('posts');
$output->print_progress('end');
return 0;
}
Ofc modified for the module (tid and posts replaced with the correct variables)
We already had an issue with orphaned attachment and while writing the vb5 module I had the same issue with posts. As a simple solution is possible for nearly all modules it should be added. After the
prepare_insert_array
(also after the log call) simply addOfc modified for the module (tid and posts replaced with the correct variables)