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

有帮助吗?

解决方案

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/

许可以下: CC-BY-SA归因
scroll top