Getting `Area code is already set` when running consumers
Question
When I am running any of the consumers command from the console:
bin/magento queue:consumers:start exportProcessor
I am getting the following exception from the vendor/magento/framework/App/State.php
, method: setAreaCode($code)
: Area code is already set
.
My current magento version is: 2.3.4. Do you have any ideas why am i getting that exception ?
Thank you
Solution
This looks like a custom piece of code trying to set again the area code, while it is already set at a higher level. Search for usages of the setAreaCode()
and see if you can isolate the culprit one.
Check this link, maybe it helps you https://support.klevu.com/knowledgebase/resolving-area-code-already-set/
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange