Uncaught TypeError: Argument 1 passed to SymfonyComponentConsoleHelperProgressBar::setFormat() must be of the...

How to say "Brexit" in Latin?

What are career options for big-picture thinkers with no experience?

Is it possible to grant users sftp access without shell access? If yes, how is it implemented?

Porting Linux to another platform requirements

SET NOCOUNT Error in handling SQL call after upgrade

Why avoid shared user accounts?

I will be going to Sweden on business purpose .Can I visit London from Sweden and how much UK visa will cost?

Do authors have to be politically correct in article-writing?

Early credit roll before the end of the film

LuaTex and em dashes

Eww, those bytes are gross

How can my powered armor quickly replace its ceramic plates?

Use two 8s and two 3s to make the number 24

Pythonのiterable

Why are the books in the Game of Thrones citadel library shelved spine inwards?

Why do neural networks need so many training examples to perform?

Which one of these password policies are more secure?

What's a good word to describe a public place that looks like it wouldn't be rough?

How does Leonard in "Memento" remember reading and writing?

Can we harness gravitational potential energy?

Making him into a bully (how to show mild violence)

use of 4/2 chord more compelling than root position?

Can I write a book of my D&D game?

Story about a person invited to join council of intellects



Uncaught TypeError: Argument 1 passed to SymfonyComponentConsoleHelperProgressBar::setFormat() must be of the type string, null given


Magento 2 data migration RuntimeExceptionMagento 2.3 Inject helper into controller object type error?













2















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




PHP Fatal error: Uncaught TypeError: Argument 1 passed to
SymfonyComponentConsoleHelperProgressBar::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











share|improve this question





























    2















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




    PHP Fatal error: Uncaught TypeError: Argument 1 passed to
    SymfonyComponentConsoleHelperProgressBar::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











    share|improve this question



























      2












      2








      2








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




      PHP Fatal error: Uncaught TypeError: Argument 1 passed to
      SymfonyComponentConsoleHelperProgressBar::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











      share|improve this question
















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




      PHP Fatal error: Uncaught TypeError: Argument 1 passed to
      SymfonyComponentConsoleHelperProgressBar::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








      magento2.3 magento2-migration-tool ssh php-7.2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 18 at 10:05







      sumeet bajaj

















      asked Feb 18 at 9:50









      sumeet bajajsumeet bajaj

      408




      408






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I had just the same issue recently, while migrating from 1.9.1.0 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/1.9.1.0/config.xml) to create progress bar that you can see while migration process in console.



          /vendor/magento/data-migration-tool/src/Migration/App/ProgressBar/LogLevelProcessor.php

          protected function getProgressBar()
          {
          if (null == $this->progressBar) {
          $this->progressBar = $this->progressBarFactory->create($this->getOutputInstance());
          $this->progressBar->setFormat($this->config->getOption(self::PROGRESS_BAR_FORMAT_OPTION));
          }
          return $this->progressBar;
          }


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



          /vendor/magento/data-migration-tool/src/Migration/Config.php

          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 this helps.





          share








          New contributor




          Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "479"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f262222%2funcaught-typeerror-argument-1-passed-to-symfony-component-console-helper-progre%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I had just the same issue recently, while migrating from 1.9.1.0 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/1.9.1.0/config.xml) to create progress bar that you can see while migration process in console.



            /vendor/magento/data-migration-tool/src/Migration/App/ProgressBar/LogLevelProcessor.php

            protected function getProgressBar()
            {
            if (null == $this->progressBar) {
            $this->progressBar = $this->progressBarFactory->create($this->getOutputInstance());
            $this->progressBar->setFormat($this->config->getOption(self::PROGRESS_BAR_FORMAT_OPTION));
            }
            return $this->progressBar;
            }


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



            /vendor/magento/data-migration-tool/src/Migration/Config.php

            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 this helps.





            share








            New contributor




            Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              I had just the same issue recently, while migrating from 1.9.1.0 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/1.9.1.0/config.xml) to create progress bar that you can see while migration process in console.



              /vendor/magento/data-migration-tool/src/Migration/App/ProgressBar/LogLevelProcessor.php

              protected function getProgressBar()
              {
              if (null == $this->progressBar) {
              $this->progressBar = $this->progressBarFactory->create($this->getOutputInstance());
              $this->progressBar->setFormat($this->config->getOption(self::PROGRESS_BAR_FORMAT_OPTION));
              }
              return $this->progressBar;
              }


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



              /vendor/magento/data-migration-tool/src/Migration/Config.php

              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 this helps.





              share








              New contributor




              Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                I had just the same issue recently, while migrating from 1.9.1.0 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/1.9.1.0/config.xml) to create progress bar that you can see while migration process in console.



                /vendor/magento/data-migration-tool/src/Migration/App/ProgressBar/LogLevelProcessor.php

                protected function getProgressBar()
                {
                if (null == $this->progressBar) {
                $this->progressBar = $this->progressBarFactory->create($this->getOutputInstance());
                $this->progressBar->setFormat($this->config->getOption(self::PROGRESS_BAR_FORMAT_OPTION));
                }
                return $this->progressBar;
                }


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



                /vendor/magento/data-migration-tool/src/Migration/Config.php

                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 this helps.





                share








                New contributor




                Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                I had just the same issue recently, while migrating from 1.9.1.0 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/1.9.1.0/config.xml) to create progress bar that you can see while migration process in console.



                /vendor/magento/data-migration-tool/src/Migration/App/ProgressBar/LogLevelProcessor.php

                protected function getProgressBar()
                {
                if (null == $this->progressBar) {
                $this->progressBar = $this->progressBarFactory->create($this->getOutputInstance());
                $this->progressBar->setFormat($this->config->getOption(self::PROGRESS_BAR_FORMAT_OPTION));
                }
                return $this->progressBar;
                }


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



                /vendor/magento/data-migration-tool/src/Migration/Config.php

                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 this helps.






                share








                New contributor




                Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 8 mins ago









                Kirill KorushkinKirill Korushkin

                1012




                1012




                New contributor




                Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Kirill Korushkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f262222%2funcaught-typeerror-argument-1-passed-to-symfony-component-console-helper-progre%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                    How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                    夢乃愛華...