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;
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
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
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
New contributor
add a comment |
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
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
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
New contributor
add a comment |
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
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
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
New contributor
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
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
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
magento2 magento-2.1 module fatal-error
New contributor
New contributor
edited May 25 at 9:36
ZioBafio
New contributor
asked May 25 at 8:43
ZioBafioZioBafio
62
62
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails
– ZioBafio
May 25 at 9:34
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails
– ZioBafio
May 25 at 9:34
add a comment |
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
Done, nothing changed: No errors during setup and deploy, everything works, payment confirmation fails
– ZioBafio
May 25 at 9:34
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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