Skip to content
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

Running 'log:clean' through cli results in an error: 'Area code not set' #1442

Closed
hostep opened this issue Jul 5, 2015 · 2 comments
Closed
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@hostep
Copy link
Contributor

hostep commented Jul 5, 2015

Hi

I'm using 0.74.0-beta16.

When I run the following command, it throws errors:

➜ php bin/magento log:clean

  [Magento\Framework\Exception\SessionException]
  Area code not set: Area code must be set before starting a session.

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

log:clean [--days="..."]

This is probably related to #1405

@mazhalai
Copy link
Contributor

mazhalai commented Jul 8, 2015

@hostep thank you for reporting this issue, we have created ticket MAGETWO-39841 to track this issue.

@mazhalai mazhalai added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jul 8, 2015
magento-team pushed a commit that referenced this issue Aug 15, 2015
… error: 'Area code not set' #1442

- fixed log commands
magento-team pushed a commit that referenced this issue Aug 15, 2015
… error: 'Area code not set' #1442

- fixed code style
magento-team pushed a commit that referenced this issue Aug 15, 2015
… error: 'Area code not set' #1442

- fixed indexer commands
magento-team pushed a commit that referenced this issue Aug 15, 2015
magento-team pushed a commit that referenced this issue Aug 15, 2015
… error: 'Area code not set' #1442

- keep single object manager in Magento CLI application
- removed duplicated adding of commands
- process exceptions hidden by ZF
magento-team pushed a commit that referenced this issue Aug 15, 2015
magento-team pushed a commit that referenced this issue Aug 15, 2015
… error: 'Area code not set' #1442

- removed unnecessary dependency between modules
@piotrekkaminski
Copy link
Contributor

This issue should be fixed already.

magento-team pushed a commit that referenced this issue Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

4 participants