
$config['smf']['dsn'] = 'mysql:dbname=smf;host=localhost'; $config['smf']['username'] = 'root'; $config['smf']['password'] = ''; $config['smf']['tablePrefix'] = 'smf_'; $config['live'] = true; $config['import_users'] = true; $config['import_categories'] = true; $config['import_private_messages'] = true; $config['import_ignore_boards'] = true; $config['default_user_group'] = 'Forum Members'; $config['usergroup_prefix'] = 'Forum '; $config['attachments_path'] = false;
$modx->resource = $modx->getObject('modResource',236);[2013-03-07 18:58:04] (WARN @ /core/components/discuss/includes/import.smf.php) `236` was requested but no alias was located. [2013-03-07 18:58:06] (INFO @ /core/components/discuss/includes/import.smf.php) Starting import... [2013-03-07 18:58:06] (INFO @ /core/components/discuss/includes/import.smf.php) Encoding conversion set to: UTF-8 => UTF-8 [2013-03-07 18:58:06] (INFO @ /core/components/discuss/includes/import.smf.php) Migrating Ignore Boards... [2013-03-07 18:58:06] (INFO @ /core/components/discuss/includes/import.smf.php) Collecting User cache... [2013-03-07 18:58:06] (INFO @ /core/components/discuss/includes/import.smf.php) Execution time: 2,5631 s

This question has been answered by Alexus. See the first response.
$this->log('_mylog: something'); public function importUserGroups() {
$stmt = $this->pdo->query('
SELECT * FROM '.$this->getFullTableName('membergroups').'
ORDER BY `groupName` ASC
'.(!$this->config['live'] ? 'LIMIT 10' : ''));
//if (!$stmt) { return 'Failed importUserGroups.'; }
if (!$stmt) $this->log('_mylog: failed importUserGroups()');
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
... public function importUserGroups() {
// $stmt = $this->pdo->query('
// SELECT * FROM '.$this->getFullTableName('membergroups').'
// ORDER BY `groupName` ASC
// '.(!$this->config['live'] ? 'LIMIT 10' : ''));
$sql = 'SELECT * FROM '.$this->getFullTableName('membergroups').'ORDER BY `groupName` ASC'.(!$this->config['live'] ? 'LIMIT 10' : '');
$q = $modx->prepare($sql);
$q->execute();
// while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
while ($row = $q->fetch(PDO::FETCH_ASSOC)) {
...
Fatal error: Call to a member function prepare() on a non-object in ...

I could write some scratch tutorial, but wouldn't it be better to ask the author of converter scripts? There is a lot of things I do not understand therein. Almost everything I understood I wrote in first post on this page.
For some reasons I decided to give my new forum a fresh start, and asked old forum moderators to move some valuable messages to new forum manually 