{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/upgrade/issues/86","labels_url":"https://api.github.com/repos/cakephp/upgrade/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/upgrade/issues/86/comments","events_url":"https://api.github.com/repos/cakephp/upgrade/issues/86/events","html_url":"https://github.com/cakephp/upgrade/issues/86","id":93029320,"number":86,"title":"Errors during \"upgrade namespaces\" and other gotchas","user":{"login":"glkaup","id":4357199,"avatar_url":"https://avatars.githubusercontent.com/u/4357199?v=3","gravatar_id":"","url":"https://api.github.com/users/glkaup","html_url":"https://github.com/glkaup","followers_url":"https://api.github.com/users/glkaup/followers","following_url":"https://api.github.com/users/glkaup/following{/other_user}","gists_url":"https://api.github.com/users/glkaup/gists{/gist_id}","starred_url":"https://api.github.com/users/glkaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glkaup/subscriptions","organizations_url":"https://api.github.com/users/glkaup/orgs","repos_url":"https://api.github.com/users/glkaup/repos","events_url":"https://api.github.com/users/glkaup/events{/privacy}","received_events_url":"https://api.github.com/users/glkaup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/upgrade/milestones/1","html_url":"https://github.com/cakephp/upgrade/milestones/1.0.0","labels_url":"https://api.github.com/repos/cakephp/upgrade/milestones/1/labels","id":924890,"number":1,"title":"1.0.0","description":"Upgrade tool for CakePHP 2.x -> 3.0 upgrades.","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2015-01-07T01:37:35Z","updated_at":"2015-07-07T00:41:59Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-07-04T16:47:15Z","updated_at":"2015-07-07T00:47:42Z","closed_at":null,"body":"I've done the following:\r\nDownload and copy contents into E:\\myapp.git\r\n```\r\ncd to folder E:\\myapp.git\r\nE:\\myapp.git>composer self-update\r\nE:\\myapp.git>composer update          // brought in cake 3.0.8\r\n```\r\n\r\nThe first issue I had to solve was that the docs do NOT indicate that a command line version of git.exe needed to be available.  Since I use SmartGit on Windows, I had to add a new entry to the PATH environment variable.\r\n\r\nMy current directory is the folder of my project (E:\\myapp.git) and I use the following command to start the conversion process:\r\n\r\nFIRST STEP:\r\n```\r\nE:\\myapp.git>.\\bin\\cake upgrade locations E:\\myapp.git > E:\\UPG_locations.txt 2>&1\r\n```\r\n\r\nThis produces output beginning with...\r\n```\r\nWelcome to CakePHP v3.0.8 Console\r\nApp : src\r\nPath: E:\\myapp.git\\src\\\r\nWelcome to CakePHP v3.0.8 Console\r\nApp : src\r\nPath: E:\\myapp.git\\src\\\r\n\r\nProcessing ROOT\\.editorconfig\r\n```\r\n... etc ...\r\n\r\nand with out error.  But to get this to work, two folders (Data and Database) that I had in my app folder had to be removed.  They contained large zip and db files which forced the upgrade tool to try and allocate massive amounts of memory... which failed.  I removed those two folders, and now it runs fine.  After each upgrade command, I have done a backup of the entire project folder!\r\n\r\nNEXT STEP:\r\n```\r\nE:\\myapp.git>.\\bin\\cake upgrade namespaces E:\\myapp.git > E:\\UPG_namespaces.txt 2>&1\r\n```\r\n\r\nWhich produces a very large output file including many errors:\r\n\r\n```\r\nerror: Could not access ''E:\\myapp.git\\tmp\\upgrade\\dd8a59b3e6b24728af45f746520a60a93443b424''\r\nUpdate ROOT\\app\\Config\\acl.php\r\nerror: Could not access ''E:\\myapp.git\\tmp\\upgrade\\0c11c967815dc17a961003fac3ca880d57865a2b''\r\nUpdate ROOT\\app\\Config\\database.php\r\n\r\n\r\nerror: Could not access ''E:\\myapp.git\\tmp\\upgrade\\70f6bec3dc3ca26f9ce8bd5fb6906f7ec33d8ce0''\r\nUpdate ROOT\\app\\Console\\Command\\AppShell.php\r\nerror: Could not access ''E:\\myapp.git\\tmp\\upgrade\\a9818200390c980373d7f84590337e18f225b89c''\r\nUpdate ROOT\\app\\Controller\\AppController.php\r\n```\r\n\r\nThe file app\\database.php has been modified with a \"namespace app\\Config\"  even though there are errors!\r\nI have stopped here... since I have been here several times before and cannot find a solution.  In past attempts, I never end up with the new \\src\\Controllers or most of the other folders created as expected.  Sorry, but here I am and really need some help to proceed.\r\n\r\nProceeded with next command, as listed on this site... rename_classes had more errors much like namespaces above.\r\n\r\nThen rename_classes get the following error:\r\n```\r\nParse error: syntax error, unexpected '$class' (T_VARIABLE), expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \\\\ (T_NS_SEPARATOR) in E:\\ezshoot.git\\src\\Shell\\Task\\AppUsesTask.php on line 17\r\n```\r\n\r\nI'm done!  If I'm forced to re-bake and organized the old code... cakePHP 3.0 will NOT be used!\r\n\r\n\r\n\r\nI am willing to supply the backups and output files, but only to the developers of the upgrade tool.\r\n\r\nThanks in advance for any assistance,\r\nGLK\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/upgrade/issues/comments/119036422","html_url":"https://github.com/cakephp/upgrade/issues/86#issuecomment-119036422","issue_url":"https://api.github.com/repos/cakephp/upgrade/issues/86","id":119036422,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T00:47:42Z","updated_at":"2015-07-07T00:47:42Z","body":"@glkaup My blog is not to be considered official documentation. Its simply a place I share things I've learned.\r\n\r\nWould it have been helpful if the installation installation and usage examples in the README were more detailed?"}}