Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Area code is already set exception #11

Closed
quickshiftin opened this issue May 11, 2017 · 1 comment
Closed

Area code is already set exception #11

quickshiftin opened this issue May 11, 2017 · 1 comment

Comments

@quickshiftin
Copy link

Sometimes when running php bin/magento the following exception is thrown:

[Magento\Framework\Exception\LocalizedException]
Area code is already set

It's similar to this thread

grafikchaos pushed a commit to grafikchaos/magento2-regenurl that referenced this issue Jun 7, 2017
Avoids the LocalizedException error message 'Area code is already set'
by first checking to see if the area code is set or not. If area code is
not set, then set it to 'adminhtml'
@grafikchaos
Copy link
Contributor

See PR #15 for fixed version

@iazel iazel closed this as completed in f72b83c Aug 12, 2017
grafikchaos pushed a commit to grafikchaos/magento2-regenurl that referenced this issue Nov 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants