Getting error Invalid state change requested in Magento2.2.6
When I am placing order by my payment gateway I am getting error Invalid state change requested. I debug the core code and found that is error is coming from plugin used by core classes. i.e MagentoQuoteModelQuoteRepositoryPluginAccessChangeQuoteControl which is not exist in previous version of magento2 (i.e before Magento2.2) . Have anyone idea what is purpose of this plugin.
magento2
add a comment |
When I am placing order by my payment gateway I am getting error Invalid state change requested. I debug the core code and found that is error is coming from plugin used by core classes. i.e MagentoQuoteModelQuoteRepositoryPluginAccessChangeQuoteControl which is not exist in previous version of magento2 (i.e before Magento2.2) . Have anyone idea what is purpose of this plugin.
magento2
add a comment |
When I am placing order by my payment gateway I am getting error Invalid state change requested. I debug the core code and found that is error is coming from plugin used by core classes. i.e MagentoQuoteModelQuoteRepositoryPluginAccessChangeQuoteControl which is not exist in previous version of magento2 (i.e before Magento2.2) . Have anyone idea what is purpose of this plugin.
magento2
When I am placing order by my payment gateway I am getting error Invalid state change requested. I debug the core code and found that is error is coming from plugin used by core classes. i.e MagentoQuoteModelQuoteRepositoryPluginAccessChangeQuoteControl which is not exist in previous version of magento2 (i.e before Magento2.2) . Have anyone idea what is purpose of this plugin.
magento2
magento2
asked 22 hours ago
Herry PatsHerry Pats
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Just take a look at the source-code:
Checks if change quote's customer id is allowed for current user.
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
|
show 1 more comment
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
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%2fstackoverflow.com%2fquestions%2f54250787%2fgetting-error-invalid-state-change-requested-in-magento2-2-6%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
Just take a look at the source-code:
Checks if change quote's customer id is allowed for current user.
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
|
show 1 more comment
Just take a look at the source-code:
Checks if change quote's customer id is allowed for current user.
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
|
show 1 more comment
Just take a look at the source-code:
Checks if change quote's customer id is allowed for current user.
Just take a look at the source-code:
Checks if change quote's customer id is allowed for current user.
answered 21 hours ago
Philipp SanderPhilipp Sander
8,02323269
8,02323269
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
|
show 1 more comment
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
I found beforeSave() function but, How to check "if change quote's customer id is allowed for current user"?
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
on guest check out it's working but when user can login and trying to place order at that time this error occur.
– Herry Pats
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
i don't get what you mean. the plugin does that for you
– Philipp Sander
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
I found this in source code but how can I debug this error? so I can get a solution.
– Herry Pats
20 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
it depends on your code. the plugin is definitly not the problem. it's essential for security
– Philipp Sander
18 hours ago
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f54250787%2fgetting-error-invalid-state-change-requested-in-magento2-2-6%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