Fixed vBulletin importers - Undefined index: superModerators

DragonByte Tech

Well-known member
ErrorException: [E_NOTICE] Undefined index: superModerators src/addons/XFI/Import/Importer/vBulletin.php:2441
Generated by: Unknown account Apr 7, 2018 at 12:53 PM

Stack trace
#0 src/addons/XFI/Import/Importer/vBulletin.php(2441): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/dbtech/xf...', 2441, Array)
#1 src/XF/Import/Runner.php(160): XFI\Import\Importer\vBulletin->stepModerators(Object(XF\Import\StepState), Array, 8)
#2 src/XF/Import/Runner.php(74): XF\Import\Runner->runStep('moderators', Object(XF\Import\StepState), 8)
#3 src/XF/Cli/Command/Import.php(66): XF\Import\Runner->run()
#4 src/vendor/symfony/console/Command/Command.php(242): XF\Cli\Command\Import->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 src/vendor/symfony/console/Application.php(843): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 src/vendor/symfony/console/Application.php(193): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\Import), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 src/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 src/XF/Cli/Runner.php(63): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 cmd.php(15): XF\Cli\Runner->run()
#10 {main}


Fillip
 
This is odd. Is it possible that you didn't have any users who were marked as a "super moderator"?

We can just check the superModerators key is set, but it would be good to know how it became to not be set. As far as I can tell, that can only happen if there are no users who are part of a usergroup that has the "super moderator" permission.
 
This is odd. Is it possible that you didn't have any users who were marked as a "super moderator"?
Yes and no.

We did have 3 users who were marked as super moderators, but those users were both super moderators and administrators. I'm assuming the importer disregards super moderators who are also admins, as I believe in XF2 administrator implies super moderator as well.

If you're asking whether we had any users who were only super moderators and not also admins, then the answer is no.


Fillip
 
Back
Top Bottom