-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: Area code not set: Area code must be set before starting a session. #28
Comments
Hello @samuelecarpene , |
We saw the same issue. I wasn't able to identify the pattern exactly, but it seemed to happen after a deploy. I'm not sure if it's the recompliation, static deploy or cache flush that would trigger it. After a few page loads it would seem to go away. |
I think I know where problem is. Your plugin is applied too deep on Zend Response guts where Magento area code is not set yet at least in production mode. |
Same issue. Disabled this module and my store works now. |
Yes, the issue is confirmed on 2.2, we are working on that |
the same issue with the extension when enabling maintenance mode. |
So sorry for making you wait for so long time. We had crazy time :) |
Does this issue have been solved? We also need it. |
I had the same issue today: When the maintenance mode is enabled (in either Production Mode or Developer Mode) this error pops up, hiding the actual message that is given by the maintenance mode itself. However, I don't think this necessarily needs a fix: In the Developer Mode, you don't need a maintenance mode - perhaps the docs of DevTools could just give a hint that the maintenance mode doesn't work well with the DevTools extension. And in the Production Mode, you should not use the DevTools extension anyway! The extension should be added to the |
We also experience this issue on our development sites, we run 2.3.1. |
After you set |
Any update on a fix for this :) |
In production environment there is an error logged in exception log continuosly
[2018-01-05 08:19:16] main.CRITICAL: Area code not set: Area code must be set before starting a session. {"exception":"[object] (Magento\Framework\Exception\SessionException(code: 0): Area code not set: Area code must be set before starting a session. at [website_path]/vendor/magento/framework/Session/SessionManager.php:175, Magento\Framework\Exception\LocalizedException(code: 0): Area code is not set at [website_path]/vendor/magento/framework/App/State.php:152)"} []
Preconditions
After some search i found that with this module disabled the problem is disappeared.
How can i help you to identify the problem? If there is one...
The text was updated successfully, but these errors were encountered: