Fixed vb3.6 import: [E_NOTICE] Undefined index: options

markus68

Active member
Hi,
fresh install XF 2.0.6a with Importer 1.0.1a bumps out with above error message while importing custom BB Code:

Code:
#0 src/addons/XFI/Import/Importer/vBulletin.php(1750): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/srv/www/flippe...', 1750, Array)
#1 src/XF/Import/Runner.php(160): XFI\Import\Importer\vBulletin->stepCustomBbCodes(Object(XF\Import\StepState), Array, 8)
#2 src/XF/Import/Runner.php(74): XF\Import\Runner->runStep('customBbCodes', 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}

Any workaround to continue my migration-tests ?

TIA,
-Markus
 
It appears that table "bbcode" does not have a column "options" in VB 3.6.

I wrapped the code in vBulltetin with an "!empty" beginning at line 1748:
Code:
                        foreach ($map AS $power => $option)
                        {
                                if (!empty($bbCode['options']))
                                {
                                        if ($this->bitwise($bbCode['options'], $power))
                                        {
                                                $import->$option = true;
                                        }
                                }
                        }

Not sure if the logic is correct but at least it does not bump out.

-Markus
 
Top Bottom