Steffen
Well-known member
Code:
[LogicException]
Must have use addSmilie() to add at least one smilie before fetching XML.
Exception trace:
() at src/XF/Import/DataHelper/Smilie.php:80
XF\Import\DataHelper\Smilie->getXml() at src/XF/Import/DataHelper/Smilie.php:128
XF\Import\DataHelper\Smilie->saveXml() at src/addons/XFI/Import/Importer/vBulletin.php:5251
XFI\Import\Importer\vBulletin->stepSmilies() at src/XF/Import/Runner.php:163
XF\Import\Runner->runStep() at src/XF/Import/Runner.php:77
XF\Import\Runner->run() at src/XF/Cli/Command/Import.php:72
XF\Cli\Command\Import->execute() at src/vendor/symfony/console/Command/Command.php:242
Symfony\Component\Console\Command\Command->run() at src/vendor/symfony/console/Application.php:843
Symfony\Component\Console\Application->doRunCommand() at src/vendor/symfony/console/Application.php:193
Symfony\Component\Console\Application->doRun() at src/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at src/XF/Cli/Runner.php:63
XF\Cli\Runner->run() at cmd.php:15
Diff:
diff --git a/src/addons/XFI/Import/Importer/vBulletin.php b/src/addons/XFI/Import/Importer/vBulletin.php
index 4db2b1b87..fa9c04027 100644
--- a/src/addons/XFI/Import/Importer/vBulletin.php
+++ b/src/addons/XFI/Import/Importer/vBulletin.php
@@ -5248,7 +5248,10 @@ class vBulletin extends AbstractForumImporter
}
}
- $helper->saveXml($stepConfig['filename']);
+ if ($state->imported > 0)
+ {
+ $helper->saveXml($stepConfig['filename']);
+ }
return $state->complete();
}
Obviously, this error was raised while running the importer on a reduced sample of the database with an empty smileys table.
Last edited: