Unable to run deploy:mode:set production
Preconditions
- Install from git
- magento/magento2 develop branch
- sha: cbe29b04210a99df03813a9840784908220dae1b
- PHP 7.0.10 (also seen on 5.6.23)
- MySQL 5.6.30
- Install via command line, no sample data
Steps to reproduce
- run ‘php bin/magento deploy:mode:set production'
Expected result
- Run DI compilation and deploy static content
Actual result
- DI compilation is successfully compiled
- Deploy of static content fails with exception
[Exception]
Notice: Undefined index: arguments in /Users/twolaver/GIT/magento2b2b/magento/lib/internal/Magento/Framework/ObjectManager/Config/Compiled.php on line 132
Note
- After deleting contents of var/di, 'setup:static-content:deploy -f' will run successfully
Thank you for your bug report. Internal ticket MAGETWO-60218 is created to track this.
Have the same issue, even after removing var/di var/generation first.
Did a complete reinstall. Still the same issue.
Yeah @PascalBrouwers I saw the same, the only ways to bypass this would be to one of the following
- Merge in the work done in my branch on https://github.com/magento/magento2/pull/7059
- Comment out the following lines of code: https://github.com/convenient/mtwo/blob/7eca94436239585f8f91e981005db2928b77a1d9/app/code/Magento/Deploy/Console/Command/DeployStaticContentCommand.php#L493
@convenient Tnx, it seems to have done the trick. Strange that this behaviour started since my last pull from develop on Oct 26, 2016
I'm closing this issue as internal ticket was closed as duplicate. The issue was fixed in internal ticket MAGETWO-59641 for develop branch and in MAGETWO-60366 for ver. 2.1.