Sunday, November 29, 2020
Home > admin
Magento 2

Magento 2 Error: Invalid state change requested

Actually the custom REST API is throwing "Magento 2 Error message: Invalid state change requested" when customer does not pass the Authentication Token in headers. Magento 2 doesn't give access to Quote for users without authentication token. "CRITICAL: Magento\Framework\Exception\StateException: Invalid state change requested in vendor/magento/module-quote/Model/QuoteRepository/Plugin/AccessChangeQuoteControl.php:45" So it seems like logged in customers

Read More
Web Development

ObjectManager In Magento 2?

Large applications, such as the Magento application, use an object manager to avoid boilerplate code when composing objects during instantiation. Lets see, ObjectManager In Magento 2? In the Magento framework, the implementation of the ObjectManagerInterface performs the duties of an object manager. [crayon-5fc37a525805e577148116/] The ObjectManager class defines the following three methods: create($type, array $arguments

Read More