Magento 2 Uncaught TypeError: Argument 1 […] DataSetup::__construct() […] must be an instance […]Magento Module creation gives errorUncaught TypeError: Argument 1 passed to […] must be an instance ofCustom controller: Argument 1 must be instance of Context, instead Objectmanager is givenMagento 2 Fatal error: Uncaught Error: Cannot instantiate interface on catalog/product pages and widgetsUnable to create order from admin in magento 2“Fatal error: Uncaught TypeError: Argument 1 passed to […]::__construct() must be an instance of […]” after (re-)compileFatal error: Uncaught TypeError: Argument 1 passed to __construct() must be of the type array, null giveMagento2 REST API get all customers detailsMagento 2 ErrorMagento Fatal Error on Running Installation

Pros and cons of writing a book review?

Is it possible for people to live in the eye of a permanent hypercane?

How should I push back against my job assigning "homework"?

How can I offer a test ride while selling a bike?

How to apply the "glow" effect to a rectangle with tcolorbox?

If a problem only occurs randomly once in every N times on average, how many tests do I have to perform to be certain that it's now fixed?

Why was it possible to cause an Apple //e to shut down with SHIFT and paddle button 2?

Show sparse matrices like chessboards

Please help me identify this plane

How can I add depth to my story or how do I determine if my story already has depth?

What people are called boars ("кабан") and why?

Can a class take a different class's spell in their ritual book?

How to detach yourself from a character you're going to kill?

Explain Ant-Man's "not it" scene from Avengers: Endgame

Initialize an array of doubles at compile time

GFCI Outlet in Bathroom, Lights not working

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

How can I determine the spell save DC of a monster/NPC?

Does any lore text explain why the planes of Acheron, Gehenna, and Carceri are the alignment they are?

Can an old DSLR be upgraded to match modern smartphone image quality

Is it legal in the UK for politicians to lie to the public for political gain?

Why does a helium balloon rise?

How do I remove hundreds of automatically added network printers?

Can The Malloreon be read without first reading The Belgariad?



Magento 2 Uncaught TypeError: Argument 1 […] DataSetup::__construct() […] must be an instance […]


Magento Module creation gives errorUncaught TypeError: Argument 1 passed to […] must be an instance ofCustom controller: Argument 1 must be instance of Context, instead Objectmanager is givenMagento 2 Fatal error: Uncaught Error: Cannot instantiate interface on catalog/product pages and widgetsUnable to create order from admin in magento 2“Fatal error: Uncaught TypeError: Argument 1 passed to […]::__construct() must be an instance of […]” after (re-)compileFatal error: Uncaught TypeError: Argument 1 passed to __construct() must be of the type array, null giveMagento2 REST API get all customers detailsMagento 2 ErrorMagento Fatal Error on Running Installation






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment



after adding some new modules, compiling and deploying without any problem the system still works fine



but when I try to checkout and confirm on credit card payment the checkout page reloads, it's not redirecting anymore to the credit card portal for entering my information:



This is my credit card selection
Credit card payment method



When I click on the Completa ordine button (Complete Order)



The loading spinner appears and then disappears again on the same page.



in my browser console I see this error:




VM16995:1 POST http://domain.com/rest/store/V1/carts/mine/payment-information 500 (Internal Server Error)




This is the network trace



Network trace



and in my error.log I see this message:




[Sat May 25 10:20:14.839259 2019] [proxy_fcgi:error] [pid 4427] [client XX.XX.XX.XX:13271] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoSetupModuleDataSetup::__construct() must be an instance of MagentoFrameworkModuleSetupContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /var/www/domain/setup/src/Magento/Setup/Module/DataSetup.php:57nStack trace:n#0 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): MagentoSetupModuleDataSetup->__construct(Object(MagentoFrameworkObjectManagerObjectManager))n#1 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Setup\M...', Array)n#2 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\S...n', referer: http://domain.com/checkout/




In the stack trace on error.log I can't find any reference to one of my modules, even if the presence of create('Magento\\S... at the end of the trace make me think that the trace has been cut for some reason



I've searched for such errors on DataSetup::__construct() but it seems that this error could happen during modules installation, I couldn't find anything about this error on an API call



the rest of the system seems to work fine and I don't have other messages on error.log



how can I solve this?



EDIT
I Just noticed that the error happens on any payment method, not only on credit card, every time I click on complete order on any payment method










share|improve this question









New contributor



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

























    1















    I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment



    after adding some new modules, compiling and deploying without any problem the system still works fine



    but when I try to checkout and confirm on credit card payment the checkout page reloads, it's not redirecting anymore to the credit card portal for entering my information:



    This is my credit card selection
    Credit card payment method



    When I click on the Completa ordine button (Complete Order)



    The loading spinner appears and then disappears again on the same page.



    in my browser console I see this error:




    VM16995:1 POST http://domain.com/rest/store/V1/carts/mine/payment-information 500 (Internal Server Error)




    This is the network trace



    Network trace



    and in my error.log I see this message:




    [Sat May 25 10:20:14.839259 2019] [proxy_fcgi:error] [pid 4427] [client XX.XX.XX.XX:13271] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoSetupModuleDataSetup::__construct() must be an instance of MagentoFrameworkModuleSetupContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /var/www/domain/setup/src/Magento/Setup/Module/DataSetup.php:57nStack trace:n#0 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): MagentoSetupModuleDataSetup->__construct(Object(MagentoFrameworkObjectManagerObjectManager))n#1 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Setup\M...', Array)n#2 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\S...n', referer: http://domain.com/checkout/




    In the stack trace on error.log I can't find any reference to one of my modules, even if the presence of create('Magento\\S... at the end of the trace make me think that the trace has been cut for some reason



    I've searched for such errors on DataSetup::__construct() but it seems that this error could happen during modules installation, I couldn't find anything about this error on an API call



    the rest of the system seems to work fine and I don't have other messages on error.log



    how can I solve this?



    EDIT
    I Just noticed that the error happens on any payment method, not only on credit card, every time I click on complete order on any payment method










    share|improve this question









    New contributor



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





















      1












      1








      1








      I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment



      after adding some new modules, compiling and deploying without any problem the system still works fine



      but when I try to checkout and confirm on credit card payment the checkout page reloads, it's not redirecting anymore to the credit card portal for entering my information:



      This is my credit card selection
      Credit card payment method



      When I click on the Completa ordine button (Complete Order)



      The loading spinner appears and then disappears again on the same page.



      in my browser console I see this error:




      VM16995:1 POST http://domain.com/rest/store/V1/carts/mine/payment-information 500 (Internal Server Error)




      This is the network trace



      Network trace



      and in my error.log I see this message:




      [Sat May 25 10:20:14.839259 2019] [proxy_fcgi:error] [pid 4427] [client XX.XX.XX.XX:13271] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoSetupModuleDataSetup::__construct() must be an instance of MagentoFrameworkModuleSetupContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /var/www/domain/setup/src/Magento/Setup/Module/DataSetup.php:57nStack trace:n#0 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): MagentoSetupModuleDataSetup->__construct(Object(MagentoFrameworkObjectManagerObjectManager))n#1 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Setup\M...', Array)n#2 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\S...n', referer: http://domain.com/checkout/




      In the stack trace on error.log I can't find any reference to one of my modules, even if the presence of create('Magento\\S... at the end of the trace make me think that the trace has been cut for some reason



      I've searched for such errors on DataSetup::__construct() but it seems that this error could happen during modules installation, I couldn't find anything about this error on an API call



      the rest of the system seems to work fine and I don't have other messages on error.log



      how can I solve this?



      EDIT
      I Just noticed that the error happens on any payment method, not only on credit card, every time I click on complete order on any payment method










      share|improve this question









      New contributor



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











      I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment



      after adding some new modules, compiling and deploying without any problem the system still works fine



      but when I try to checkout and confirm on credit card payment the checkout page reloads, it's not redirecting anymore to the credit card portal for entering my information:



      This is my credit card selection
      Credit card payment method



      When I click on the Completa ordine button (Complete Order)



      The loading spinner appears and then disappears again on the same page.



      in my browser console I see this error:




      VM16995:1 POST http://domain.com/rest/store/V1/carts/mine/payment-information 500 (Internal Server Error)




      This is the network trace



      Network trace



      and in my error.log I see this message:




      [Sat May 25 10:20:14.839259 2019] [proxy_fcgi:error] [pid 4427] [client XX.XX.XX.XX:13271] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoSetupModuleDataSetup::__construct() must be an instance of MagentoFrameworkModuleSetupContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /var/www/domain/setup/src/Magento/Setup/Module/DataSetup.php:57nStack trace:n#0 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): MagentoSetupModuleDataSetup->__construct(Object(MagentoFrameworkObjectManagerObjectManager))n#1 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Setup\M...', Array)n#2 /var/www/domain/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130): MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\S...n', referer: http://domain.com/checkout/




      In the stack trace on error.log I can't find any reference to one of my modules, even if the presence of create('Magento\\S... at the end of the trace make me think that the trace has been cut for some reason



      I've searched for such errors on DataSetup::__construct() but it seems that this error could happen during modules installation, I couldn't find anything about this error on an API call



      the rest of the system seems to work fine and I don't have other messages on error.log



      how can I solve this?



      EDIT
      I Just noticed that the error happens on any payment method, not only on credit card, every time I click on complete order on any payment method







      magento2 magento-2.1 module fatal-error






      share|improve this question









      New contributor



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










      share|improve this question









      New contributor



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








      share|improve this question




      share|improve this question








      edited May 25 at 9:36







      ZioBafio













      New contributor



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








      asked May 25 at 8:43









      ZioBafioZioBafio

      62




      62




      New contributor



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




      New contributor




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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Run This Command and Try :-



          sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code var/di

          sudo php bin/magento setup:upgrade

          sudo php bin/magento setup:static-content:deploy -f

          sudo php bin/magento cache:flush


          After Execute Give Permission This Folder var/ generated/ pub/



          Reference Link



          Reference Link






          share|improve this answer























          • Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

            – ZioBafio
            May 25 at 9:34












          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
          );



          );






          ZioBafio is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f276084%2fmagento-2-uncaught-typeerror-argument-1-datasetup-construct-m%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














          Run This Command and Try :-



          sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code var/di

          sudo php bin/magento setup:upgrade

          sudo php bin/magento setup:static-content:deploy -f

          sudo php bin/magento cache:flush


          After Execute Give Permission This Folder var/ generated/ pub/



          Reference Link



          Reference Link






          share|improve this answer























          • Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

            – ZioBafio
            May 25 at 9:34
















          0














          Run This Command and Try :-



          sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code var/di

          sudo php bin/magento setup:upgrade

          sudo php bin/magento setup:static-content:deploy -f

          sudo php bin/magento cache:flush


          After Execute Give Permission This Folder var/ generated/ pub/



          Reference Link



          Reference Link






          share|improve this answer























          • Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

            – ZioBafio
            May 25 at 9:34














          0












          0








          0







          Run This Command and Try :-



          sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code var/di

          sudo php bin/magento setup:upgrade

          sudo php bin/magento setup:static-content:deploy -f

          sudo php bin/magento cache:flush


          After Execute Give Permission This Folder var/ generated/ pub/



          Reference Link



          Reference Link






          share|improve this answer













          Run This Command and Try :-



          sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code var/di

          sudo php bin/magento setup:upgrade

          sudo php bin/magento setup:static-content:deploy -f

          sudo php bin/magento cache:flush


          After Execute Give Permission This Folder var/ generated/ pub/



          Reference Link



          Reference Link







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 25 at 9:13









          Rk RathodRk Rathod

          2,208214




          2,208214












          • Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

            – ZioBafio
            May 25 at 9:34


















          • Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

            – ZioBafio
            May 25 at 9:34

















          Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

          – ZioBafio
          May 25 at 9:34






          Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails

          – ZioBafio
          May 25 at 9:34











          ZioBafio is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          ZioBafio is a new contributor. Be nice, and check out our Code of Conduct.












          ZioBafio is a new contributor. Be nice, and check out our Code of Conduct.











          ZioBafio is a new contributor. Be nice, and check out our Code of Conduct.














          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%2f276084%2fmagento-2-uncaught-typeerror-argument-1-datasetup-construct-m%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