After ugprade to M2 2.2.4, I got problem in my custom module. The module has console command but upon upgrade I'm getting "Area code is not set". After few hours of debugging, I found out that the root cause is calling \Magento\Sales\Model\Order object as parameter in my __Construct function.

Replacing it with reourceModel will work, but I'm just wondering why the main order model is not working. Any idea?

1 Answer 1






Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.