{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/15441","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/15441/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/15441/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/15441/events","html_url":"https://github.com/magento/magento2/issues/15441","id":325534388,"node_id":"MDU6SXNzdWUzMjU1MzQzODg=","number":15441,"title":"After 2.3.0-alpha upgrade  'Zend\\Mvc\\Controller\\LazyControllerAbstractFactory' not found","user":{"login":"fooman","id":455508,"node_id":"MDQ6VXNlcjQ1NTUwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/455508?v=4","gravatar_id":"","url":"https://api.github.com/users/fooman","html_url":"https://github.com/fooman","followers_url":"https://api.github.com/users/fooman/followers","following_url":"https://api.github.com/users/fooman/following{/other_user}","gists_url":"https://api.github.com/users/fooman/gists{/gist_id}","starred_url":"https://api.github.com/users/fooman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fooman/subscriptions","organizations_url":"https://api.github.com/users/fooman/orgs","repos_url":"https://api.github.com/users/fooman/repos","events_url":"https://api.github.com/users/fooman/events{/privacy}","received_events_url":"https://api.github.com/users/fooman/received_events","type":"User","site_admin":false},"labels":[{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/G1%20Passed","name":"G1 Passed","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-23T03:15:33Z","updated_at":"2018-07-05T16:44:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--- Provide a general summary of the issue in the Title above -->\r\n<!--- Before adding new issues, please, check this article https://github.com/magento/magento2/wiki/Issue-reporting-guidelines-->\r\n\r\n### Preconditions\r\n1. install Magento 2.2\r\n\r\n### Steps to reproduce\r\n<!--- Provide a set of unambiguous steps to reproduce this bug include code, if relevant  -->\r\n1. composer config minimum-stability alpha\r\n2. composer require magento/product-community-edition:2.3.0-alpha --no-update \r\n(also copy updated require-dev dependencies)\r\n3. composer update\r\n4. bin/magento setup:upgrade\r\n\r\n### Expected result\r\n<!--- Tell us what should happen -->\r\n1. Upgrade should run\r\n\r\n### Actual result\r\n<!--- Tell us what happens instead -->\r\n1.\r\n```\r\nphp -dlog_errors_max_len=0 -f bin/magento\r\nPHP Fatal error:  Uncaught Error: Class 'Zend\\Mvc\\Controller\\LazyControllerAbstractFactory' not found in /var/www/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:314\r\nStack trace:\r\n#0 /var/www/vendor/zendframework/zend-servicemanager/src/Config.php(137): Zend\\ServiceManager\\ServiceManager->addAbstractFactory('Zend\\\\Mvc\\\\Contro...')\r\n#1 /var/www/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php(225): Zend\\ServiceManager\\Config->configureServiceManager(Object(Zend\\Mvc\\Controller\\ControllerManager))\r\n#2 [internal function]: Zend\\ModuleManager\\Listener\\ServiceListener->onLoadModulesPost(Object(Zend\\ModuleManager\\ModuleEvent))\r\n#3 /var/www/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\\ModuleManager\\ModuleEvent))\r\n#4 /var/www/vendor/zendframework/zend-eventmanager/src/EventManager.php(248): Zend\\EventManager\\EventManager->triggerListeners('loadModules.pos...', Object(Zend\\ModuleManager\\ModuleEvent))\r\n#5 /var/www/vendor/zendframework/zend-modulemanager/src/ModuleManager.php(129): Zend\\EventManager\\EventManager->triggerEvent(Object(Zend\\ModuleManager\\ModuleEvent))\r\n#6 /var/www/setup/src/Magento/Setup/Application.php(35): Zend\\ModuleManager\\ModuleManager->loadModules()\r\n#7 /var/www/vendor/magento/framework/Console/Cli.php(71): Magento\\Setup\\Application->bootstrap(Array)\r\n#8 /var/www/bin/magento(22): Magento\\Framework\\Console\\Cli->__construct('Magento CLI')\r\n#9 {main}\r\n  thrown in /var/www/vendor/zendframework/zend-servicemanager/src/ServiceManager.php on line 314\r\n```\r\n\r\nThe issue can be fixed by manually editing `composer.json` autoload section to\r\n```\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"Magento\\\\Framework\\\\\": \"lib/internal/Magento/Framework/\",\r\n            \"Magento\\\\Setup\\\\\": \"setup/src/Magento/Setup/\",\r\n            \"Magento\\\\\": \"app/code/Magento/\",\r\n            \"Zend\\\\Mvc\\\\Controller\\\\\": \"setup/src/Zend/Mvc/Controller/\"\r\n        },\r\n```\r\nand then run `composer dumpautoload`.\r\n\r\nHowever overall I think we should strive to not have to make any changes to the `composer.json` file during an upgrade beyond the version number bump of `magento/product-community-edition`. \r\n\r\nAfter the initial `composer create-project magento/project-community-edition` the root `composer.json` file essentially is out of Magento's control and ideally everything we need to pull in/want to change should happen via `magento/product-community-edition`\r\n\r\nIn this particular case I do not understand why this 1 file gets such special treatment and gets added under setup/src. Better options in my mind would be:\r\n1. Upgrade zend-mvc to include this wanted file\r\n2. Provide the file and autoload information via a separate module\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/402783874","html_url":"https://github.com/magento/magento2/issues/15441#issuecomment-402783874","issue_url":"https://api.github.com/repos/magento/magento2/issues/15441","id":402783874,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjc4Mzg3NA==","user":{"login":"buskamuza","id":1749703,"node_id":"MDQ6VXNlcjE3NDk3MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1749703?v=4","gravatar_id":"","url":"https://api.github.com/users/buskamuza","html_url":"https://github.com/buskamuza","followers_url":"https://api.github.com/users/buskamuza/followers","following_url":"https://api.github.com/users/buskamuza/following{/other_user}","gists_url":"https://api.github.com/users/buskamuza/gists{/gist_id}","starred_url":"https://api.github.com/users/buskamuza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buskamuza/subscriptions","organizations_url":"https://api.github.com/users/buskamuza/orgs","repos_url":"https://api.github.com/users/buskamuza/repos","events_url":"https://api.github.com/users/buskamuza/events{/privacy}","received_events_url":"https://api.github.com/users/buskamuza/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T16:44:02Z","updated_at":"2018-07-05T16:44:02Z","author_association":"CONTRIBUTOR","body":"Hi @fooman , please run https://github.com/magento/magento2/blob/2.3-develop/dev/tools/UpgradeScripts/pre_composer_update_2.3.php before `composer update` during upgrade process.\r\nWe know about this issue and are working on the docs and blog post on this (not ready yet).\r\nSorry for the confusion."}}
{"actor":{"display_login":"buskamuza"}}