Getting error Invalid state change requested in Magento2.2.6












0















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.










share|improve this question



























    0















    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.










    share|improve this question

























      0












      0








      0


      1






      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 22 hours ago









      Herry PatsHerry Pats

      1




      1
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Just take a look at the source-code:




          Checks if change quote's customer id is allowed for current user.







          share|improve this answer
























          • 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











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


          }
          });














          draft saved

          draft discarded


















          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









          0














          Just take a look at the source-code:




          Checks if change quote's customer id is allowed for current user.







          share|improve this answer
























          • 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
















          0














          Just take a look at the source-code:




          Checks if change quote's customer id is allowed for current user.







          share|improve this answer
























          • 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














          0












          0








          0







          Just take a look at the source-code:




          Checks if change quote's customer id is allowed for current user.







          share|improve this answer













          Just take a look at the source-code:




          Checks if change quote's customer id is allowed for current user.








          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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

          Homophylophilia

          Updating UILabel text programmatically using a function

          Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage