Magento2.3 setup:upgrade errorCannot process definition to array for type tinytext on Magento 2.3.0Programmatically installing a moduleStatic Content 404 with Magento 2 and NginxError after removing database PrefixMagento 2.3 Backup failed Error received from server

Is it theoretically possible to hack printer using scanner tray?

How far can gerrymandering go?

Old story where computer expert digitally animates The Lord of the Rings

Classify 2-dim p-adic galois representations

Avoiding repetition when using the "snprintf idiom" to write text

What prevents a US state from colonizing a smaller state?

Existence of infinite set of positive integers s.t sum of reciprocals is rational and set of primes dividing an element is infinite

Does the Grothendieck group of finitely generated modules form a commutative ring where the multiplication structure is induced from tensor product?

Is it advisable to inform the CEO about his brother accessing his office?

Confusion in understanding the behavior of inductor in RL circuit with DC source

Cannot overlay, because ListPlot does not draw same X range despite the same PlotRange

What's the idiomatic (or best) way to trim surrounding whitespace from a string?

Other homotopy invariants?

Russian equivalents of 能骗就骗 (if you can cheat, then cheat)

How to extract coefficients of a generating function like this one, using a computer?

Why are symbols not written in words?

My players like to search everything. What do they find?

Sentences with no verb, but an ablative

Why did the Middle Kingdom stop building pyramid tombs?

Emphasize numbers in tables

What could a Medieval society do with excess animal blood?

How to idiomatically express the idea "if you can cheat without being caught, do it"

*p++->str : Understanding evaluation of ->

When does it become illegal to exchange bitcoin for cash?



Magento2.3 setup:upgrade error


Cannot process definition to array for type tinytext on Magento 2.3.0Programmatically installing a moduleStatic Content 404 with Magento 2 and NginxError after removing database PrefixMagento 2.3 Backup failed Error received from server













4















After being able to update magento to 2.3 (which was a pain by itself) I managed to get to the part where the database needs to be updated. Which is in current state when I try to run the command bin/magento setup:upgrade:



Cache cleared successfully
File system cleanup:
/var/www/html/generated/code/Composer
/var/www/html/generated/code/MSP
/var/www/html/generated/code/Magento
/var/www/html/generated/code/Symfony
Updating modules:
Schema creation/updates:
Cannot process definition to array for type enum


I can't however manage to find where this enum thing comes from. I also can't find any errors containing where this enum thing comes from...



anyone knows where this error comes from and how I can debug this? I know this can't lead to a specific page, but where do I need to focus on and how can I find out how I can solve this massive blockage of the site :D










share|improve this question






















  • What is the PHP version you used for Magento 2.3?

    – Saurabh Dwivedi
    Dec 6 '18 at 15:53











  • We are currently running php7.2

    – David Kooijman
    Dec 6 '18 at 16:24











  • Check this: github.com/bazaarvoice/magento2-extension/issues/45 and this: github.com/magento/magento2/issues/19479

    – Adarsh Khatri
    Dec 9 '18 at 23:05











  • Kindly please disable all the third party modules & try to run the commands again & then check one by one exactly which third party extension is generating this issue!

    – ABHISHEK TRIPATHI
    Dec 10 '18 at 4:50











  • I think this error related to any module for Schema(create or update table)

    – kunj
    Dec 10 '18 at 7:22















4















After being able to update magento to 2.3 (which was a pain by itself) I managed to get to the part where the database needs to be updated. Which is in current state when I try to run the command bin/magento setup:upgrade:



Cache cleared successfully
File system cleanup:
/var/www/html/generated/code/Composer
/var/www/html/generated/code/MSP
/var/www/html/generated/code/Magento
/var/www/html/generated/code/Symfony
Updating modules:
Schema creation/updates:
Cannot process definition to array for type enum


I can't however manage to find where this enum thing comes from. I also can't find any errors containing where this enum thing comes from...



anyone knows where this error comes from and how I can debug this? I know this can't lead to a specific page, but where do I need to focus on and how can I find out how I can solve this massive blockage of the site :D










share|improve this question






















  • What is the PHP version you used for Magento 2.3?

    – Saurabh Dwivedi
    Dec 6 '18 at 15:53











  • We are currently running php7.2

    – David Kooijman
    Dec 6 '18 at 16:24











  • Check this: github.com/bazaarvoice/magento2-extension/issues/45 and this: github.com/magento/magento2/issues/19479

    – Adarsh Khatri
    Dec 9 '18 at 23:05











  • Kindly please disable all the third party modules & try to run the commands again & then check one by one exactly which third party extension is generating this issue!

    – ABHISHEK TRIPATHI
    Dec 10 '18 at 4:50











  • I think this error related to any module for Schema(create or update table)

    – kunj
    Dec 10 '18 at 7:22













4












4








4








After being able to update magento to 2.3 (which was a pain by itself) I managed to get to the part where the database needs to be updated. Which is in current state when I try to run the command bin/magento setup:upgrade:



Cache cleared successfully
File system cleanup:
/var/www/html/generated/code/Composer
/var/www/html/generated/code/MSP
/var/www/html/generated/code/Magento
/var/www/html/generated/code/Symfony
Updating modules:
Schema creation/updates:
Cannot process definition to array for type enum


I can't however manage to find where this enum thing comes from. I also can't find any errors containing where this enum thing comes from...



anyone knows where this error comes from and how I can debug this? I know this can't lead to a specific page, but where do I need to focus on and how can I find out how I can solve this massive blockage of the site :D










share|improve this question














After being able to update magento to 2.3 (which was a pain by itself) I managed to get to the part where the database needs to be updated. Which is in current state when I try to run the command bin/magento setup:upgrade:



Cache cleared successfully
File system cleanup:
/var/www/html/generated/code/Composer
/var/www/html/generated/code/MSP
/var/www/html/generated/code/Magento
/var/www/html/generated/code/Symfony
Updating modules:
Schema creation/updates:
Cannot process definition to array for type enum


I can't however manage to find where this enum thing comes from. I also can't find any errors containing where this enum thing comes from...



anyone knows where this error comes from and how I can debug this? I know this can't lead to a specific page, but where do I need to focus on and how can I find out how I can solve this massive blockage of the site :D







cli setup-upgrade magento2.3






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 6 '18 at 15:48









David KooijmanDavid Kooijman

5711 bronze badges




5711 bronze badges












  • What is the PHP version you used for Magento 2.3?

    – Saurabh Dwivedi
    Dec 6 '18 at 15:53











  • We are currently running php7.2

    – David Kooijman
    Dec 6 '18 at 16:24











  • Check this: github.com/bazaarvoice/magento2-extension/issues/45 and this: github.com/magento/magento2/issues/19479

    – Adarsh Khatri
    Dec 9 '18 at 23:05











  • Kindly please disable all the third party modules & try to run the commands again & then check one by one exactly which third party extension is generating this issue!

    – ABHISHEK TRIPATHI
    Dec 10 '18 at 4:50











  • I think this error related to any module for Schema(create or update table)

    – kunj
    Dec 10 '18 at 7:22

















  • What is the PHP version you used for Magento 2.3?

    – Saurabh Dwivedi
    Dec 6 '18 at 15:53











  • We are currently running php7.2

    – David Kooijman
    Dec 6 '18 at 16:24











  • Check this: github.com/bazaarvoice/magento2-extension/issues/45 and this: github.com/magento/magento2/issues/19479

    – Adarsh Khatri
    Dec 9 '18 at 23:05











  • Kindly please disable all the third party modules & try to run the commands again & then check one by one exactly which third party extension is generating this issue!

    – ABHISHEK TRIPATHI
    Dec 10 '18 at 4:50











  • I think this error related to any module for Schema(create or update table)

    – kunj
    Dec 10 '18 at 7:22
















What is the PHP version you used for Magento 2.3?

– Saurabh Dwivedi
Dec 6 '18 at 15:53





What is the PHP version you used for Magento 2.3?

– Saurabh Dwivedi
Dec 6 '18 at 15:53













We are currently running php7.2

– David Kooijman
Dec 6 '18 at 16:24





We are currently running php7.2

– David Kooijman
Dec 6 '18 at 16:24













Check this: github.com/bazaarvoice/magento2-extension/issues/45 and this: github.com/magento/magento2/issues/19479

– Adarsh Khatri
Dec 9 '18 at 23:05





Check this: github.com/bazaarvoice/magento2-extension/issues/45 and this: github.com/magento/magento2/issues/19479

– Adarsh Khatri
Dec 9 '18 at 23:05













Kindly please disable all the third party modules & try to run the commands again & then check one by one exactly which third party extension is generating this issue!

– ABHISHEK TRIPATHI
Dec 10 '18 at 4:50





Kindly please disable all the third party modules & try to run the commands again & then check one by one exactly which third party extension is generating this issue!

– ABHISHEK TRIPATHI
Dec 10 '18 at 4:50













I think this error related to any module for Schema(create or update table)

– kunj
Dec 10 '18 at 7:22





I think this error related to any module for Schema(create or update table)

– kunj
Dec 10 '18 at 7:22










2 Answers
2






active

oldest

votes


















4





+50









You are getting this error because "data type" of any third party extension's table column is enum.



So you need to find out column name using debug in following file.



See below file /vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php and check this fromDefinition() and add debug code to find column name.



public function fromDefinition(array $data)

$type = $data['type'];
if (!isset($this->definitionProcessors[$type]))

echo "<pre>";
print_r($data); exit();

throw new InvalidArgumentException(
sprintf("Cannot process definition to array for type %s", $type)
);


$definitionProcessor = $this->definitionProcessors[$type];
return $definitionProcessor->fromDefinition($data);



Please run again setup:upgrade and you will get array of column data in console. from this array you will get name of column from your third party extension table.



Now from that table please change column's data type "enum" to "text" and issue will be fixed.



REF: Cannot process definition to array for type tinytext on Magento 2.3.0






share|improve this answer
































    0














    No need to update in core files, please follow up my solution.
    Open Mysql database and select database and use below queries. This query also will be useful to find out the datatype CHAR error when upgrade to Magento 2.3.




    SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='enum';




    Then the table will be list, after that you have to update the column datatype to the acceptable data type like varchar,etc.




    Eg: ALTER TABLE table_name CHANGE column_name VARCHAR(10);




    Note: Update only magento table if you have the result using search query not other mysql table.



    Try this, thumps up.






    share|improve this answer



























      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%2f252702%2fmagento2-3-setupupgrade-error%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4





      +50









      You are getting this error because "data type" of any third party extension's table column is enum.



      So you need to find out column name using debug in following file.



      See below file /vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php and check this fromDefinition() and add debug code to find column name.



      public function fromDefinition(array $data)

      $type = $data['type'];
      if (!isset($this->definitionProcessors[$type]))

      echo "<pre>";
      print_r($data); exit();

      throw new InvalidArgumentException(
      sprintf("Cannot process definition to array for type %s", $type)
      );


      $definitionProcessor = $this->definitionProcessors[$type];
      return $definitionProcessor->fromDefinition($data);



      Please run again setup:upgrade and you will get array of column data in console. from this array you will get name of column from your third party extension table.



      Now from that table please change column's data type "enum" to "text" and issue will be fixed.



      REF: Cannot process definition to array for type tinytext on Magento 2.3.0






      share|improve this answer





























        4





        +50









        You are getting this error because "data type" of any third party extension's table column is enum.



        So you need to find out column name using debug in following file.



        See below file /vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php and check this fromDefinition() and add debug code to find column name.



        public function fromDefinition(array $data)

        $type = $data['type'];
        if (!isset($this->definitionProcessors[$type]))

        echo "<pre>";
        print_r($data); exit();

        throw new InvalidArgumentException(
        sprintf("Cannot process definition to array for type %s", $type)
        );


        $definitionProcessor = $this->definitionProcessors[$type];
        return $definitionProcessor->fromDefinition($data);



        Please run again setup:upgrade and you will get array of column data in console. from this array you will get name of column from your third party extension table.



        Now from that table please change column's data type "enum" to "text" and issue will be fixed.



        REF: Cannot process definition to array for type tinytext on Magento 2.3.0






        share|improve this answer



























          4





          +50







          4





          +50



          4




          +50





          You are getting this error because "data type" of any third party extension's table column is enum.



          So you need to find out column name using debug in following file.



          See below file /vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php and check this fromDefinition() and add debug code to find column name.



          public function fromDefinition(array $data)

          $type = $data['type'];
          if (!isset($this->definitionProcessors[$type]))

          echo "<pre>";
          print_r($data); exit();

          throw new InvalidArgumentException(
          sprintf("Cannot process definition to array for type %s", $type)
          );


          $definitionProcessor = $this->definitionProcessors[$type];
          return $definitionProcessor->fromDefinition($data);



          Please run again setup:upgrade and you will get array of column data in console. from this array you will get name of column from your third party extension table.



          Now from that table please change column's data type "enum" to "text" and issue will be fixed.



          REF: Cannot process definition to array for type tinytext on Magento 2.3.0






          share|improve this answer















          You are getting this error because "data type" of any third party extension's table column is enum.



          So you need to find out column name using debug in following file.



          See below file /vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php and check this fromDefinition() and add debug code to find column name.



          public function fromDefinition(array $data)

          $type = $data['type'];
          if (!isset($this->definitionProcessors[$type]))

          echo "<pre>";
          print_r($data); exit();

          throw new InvalidArgumentException(
          sprintf("Cannot process definition to array for type %s", $type)
          );


          $definitionProcessor = $this->definitionProcessors[$type];
          return $definitionProcessor->fromDefinition($data);



          Please run again setup:upgrade and you will get array of column data in console. from this array you will get name of column from your third party extension table.



          Now from that table please change column's data type "enum" to "text" and issue will be fixed.



          REF: Cannot process definition to array for type tinytext on Magento 2.3.0







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 11 '18 at 6:51

























          answered Dec 11 '18 at 4:32









          hardikhardik

          3683 silver badges12 bronze badges




          3683 silver badges12 bronze badges





















              0














              No need to update in core files, please follow up my solution.
              Open Mysql database and select database and use below queries. This query also will be useful to find out the datatype CHAR error when upgrade to Magento 2.3.




              SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='enum';




              Then the table will be list, after that you have to update the column datatype to the acceptable data type like varchar,etc.




              Eg: ALTER TABLE table_name CHANGE column_name VARCHAR(10);




              Note: Update only magento table if you have the result using search query not other mysql table.



              Try this, thumps up.






              share|improve this answer





























                0














                No need to update in core files, please follow up my solution.
                Open Mysql database and select database and use below queries. This query also will be useful to find out the datatype CHAR error when upgrade to Magento 2.3.




                SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='enum';




                Then the table will be list, after that you have to update the column datatype to the acceptable data type like varchar,etc.




                Eg: ALTER TABLE table_name CHANGE column_name VARCHAR(10);




                Note: Update only magento table if you have the result using search query not other mysql table.



                Try this, thumps up.






                share|improve this answer



























                  0












                  0








                  0







                  No need to update in core files, please follow up my solution.
                  Open Mysql database and select database and use below queries. This query also will be useful to find out the datatype CHAR error when upgrade to Magento 2.3.




                  SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='enum';




                  Then the table will be list, after that you have to update the column datatype to the acceptable data type like varchar,etc.




                  Eg: ALTER TABLE table_name CHANGE column_name VARCHAR(10);




                  Note: Update only magento table if you have the result using search query not other mysql table.



                  Try this, thumps up.






                  share|improve this answer















                  No need to update in core files, please follow up my solution.
                  Open Mysql database and select database and use below queries. This query also will be useful to find out the datatype CHAR error when upgrade to Magento 2.3.




                  SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='enum';




                  Then the table will be list, after that you have to update the column datatype to the acceptable data type like varchar,etc.




                  Eg: ALTER TABLE table_name CHANGE column_name VARCHAR(10);




                  Note: Update only magento table if you have the result using search query not other mysql table.



                  Try this, thumps up.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 24 at 10:41

























                  answered Jun 24 at 10:34









                  ManiMaran AManiMaran A

                  1762 silver badges5 bronze badges




                  1762 silver badges5 bronze badges



























                      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%2f252702%2fmagento2-3-setupupgrade-error%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

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form