When i trying to install data migration tool then getting this error in SSH

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Helper\ProgressBar::setFormat() must be of the type string, null given, called in /var/www/html/xyz/vendor/magento/data-migration-tool/src/Migration/App/ProgressBar/LogLevelProcessor.php on line 88 and defined in /var/www/html/xyz/vendor/symfony/console/Helper/ProgressBar.php:230


I had just the same issue recently, while migrating from to 2.3.0 The problem is that method getProgressBar trying to get option progress_bar_format from config.xml under your Magento1 version's folder (in my case this is /vendor/magento/data-migration-tool/etc/opensource-to-opensource/ to create progress bar that you can see while migration process in console.


protected function getProgressBar()
    if (null == $this->progressBar) {
        $this->progressBar = $this->progressBarFactory->create($this->getOutputInstance());
    return $this->progressBar;

But method $this->config->getOption(self::PROGRESS_BAR_FORMAT_OPTION)); didn't get option and returned null, that's because:


public function getOption($name)
    return isset($this->options[$name]) ? $this->options[$name] : null; <-- '' instead of null

So i just replaced null to empty strig '', to get default progress bar. And it helped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.