So I'm having limited/mixed results and wanted to post an update. I'm attempting to update a fairly complex app.
I created a blank version of 2.0, then moved my files into the right folders (so controllers into Controller etc) and then ran the upgrade all script. - The shell didn't rename my view folders, so they are still lower case and underscored. - PlugIns seem to be causing a few hiccups; it's complaining about DebugToolkit quite a bit. Have to go and see if there's a new version of it. - I have a scattering of App::import throughout and these haven't been changed to App::uses, so that's a bit of work as the syntax has changed (and unless I'm missing something the second parameter is the location of the component/object I want to call, so I have to locate them first - HttpSocket for example). - I have used Dispatcher::baseUrl() and need to find its replacement - I'm sure there's more issues too. All in it's done a lot for me. Building a new app in 2.0 would be OK but as 2.0 is new and different my confidence post-upgrade is low at this point as I have no feel for what will still need to be changed; worried that I might miss some things that only cause issues way down the road (in production?). My app is not functioning at this time - need to spend more time and will post back later. My thoughts right now are: version 2.0 is clearly better, but can I justify the time/effort/risk upgrading a 1.3 app right now? Jeremy Burns Class Outfit http://www.classoutfit.com On 19 Oct 2011, at 00:58, euromark wrote: > after further testing it seems like "upgrade locations" is causing > this > all other subroutines are working > but this one is finished immediately without any output and then the > two core files are missing > > other things i noticed: > - "upgrade request" seems only to modify "app components". it should > probably check plugin ones, too - as well as all controllers (where > $this->data should also be changed afaik) > - "upgrade helpers" dies with some missing plugin error - although the > plugins are there. do we have to "enable" plugins in the bootstrap > already in order to run this shell script? > > > > > On 19 Okt., 01:30, euromark <dereurom...@googlemail.com> wrote: >> i have another question >> >> after running >> E:\...\trunk2\lib\Cake\Console>cake -app E:\...\trunk2\site upgrade >> all >> why does the shell delete itself? >> >> Console/AppShell.php >> Console/Shell.php >> are missing after that operation! very strange >> >> and it also only fixed __() and other minor stuff >> seems like no relocating took place... >> >> On 19 Okt., 00:22, "#2Will" <willjbar...@gmail.com> wrote: >> >> >> >> >> >> >> >>> I did this yesterday. Similar process - i wasn't sure how to run the >>> upgrade shell, >> >>> I ended up replacing the app folder with my 1.3 app, and then running >>> the shell. I don't have it in my path so instead i cd'd to my app >>> folder and ran ../lib/Cake/Console/cake upgrade all >> >>> which renamed a lot of folders and stuff. >> >>> After that it was a lot of fixing $html to $this->Html (yes, i know - >>> shouldn't have done it like that) and putting turnery operators >>> instead of ife functions (especially in things like slug-able >>> behaviours etc) and replacing file with spf. >> >>> Iv'e got most of a fairly complex app running in a day. Still got >>> some ajax pagination stuff to fix tomorrow. but all in al its not too >>> difficult at all. >> >>> Thanks to the team that made the migration docs, the upgrade script >>> and the new 2.0 release - its all v awesome! >> >>> w >> >>> On Oct 19, 4:31 am, "Larry E. Masters" <php...@gmail.com> wrote: >> >>>> Thanks for updating your progress here. I hope this will help others as >>>> they >>>> start migrating to 2.0. If you find anything that can help us improve the >>>> upgrade process at the core level let us >>>> knowhttp://cakephp.lighthouseapp.com/dashboard >> >>>> -- >>>> Larry E. Masters >> >>>> On Tue, Oct 18, 2011 at 12:27 PM, Jeremy Burns | Class Outfit < >> >>>> jeremybu...@classoutfit.com> wrote: >>>>> I got it to work. >> >>>>> Firstly, I didn't have my path set up correctly. To remedy it, I changed >>>>> the .profile file in my home directory as follows: >> >>>>> export >>>>> PATH=/usr/local/mysql:/user/bin:/Data/jeremyburns/Sites/CakePHP/cake:/Data/ >>>>> jeremyburns/Sites/CakePHP_2_0/lib/Cake/Console:$PATH >> >>>>> -> this being the important piece: >>>>> :/Data/jeremyburns/Sites/CakePHP_2_0/lib/Cake/Console >> >>>>> Then I created a new CakePHP 2.0 site and replaced the entire /app folder >>>>> with my 1.3.13 /app folder. >> >>>>> Then I navigated to the /app folder in Terminal and ran: cake upgrade all >> >>>>> When I visit the new site I'm getting a few errors that I am working >>>>> through and will post progress. >> >>>>> Jeremy Burns >>>>> Class Outfit >> >>>>> http://www.classoutfit.com >> >>>>> On 18 Oct 2011, at 17:21, rchavik wrote: >> >>>>> I'm guessing here, but I find that having directories in app/plugins/ may >>>>> cause the upgrade shell to give errors. Try removing the plugins in that >>>>> directory. >> >>>>> I have also managed to perform upgrade by renaming the app/config to >>>>> app/Config, and implicitly load the plugins by CakePlugin::loadAll() >>>>> Note: it will upgrade the plugins too. So that might not be what you want. >> >>>>> -- >>>>> Our newest site for the community: CakePHP Video Tutorials >>>>> http://tv.cakephp.org >>>>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp >>>>> others with their CakePHP related questions. >> >>>>> To unsubscribe from this group, send email to >>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group >>>>> athttp://groups.google.com/group/cake-php >> >>>>> -- >>>>> Our newest site for the community: CakePHP Video Tutorials >>>>> http://tv.cakephp.org >>>>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp >>>>> others with their CakePHP related questions. >> >>>>> To unsubscribe from this group, send email to >>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group >>>>> athttp://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php