Re: 2.0 upgrade shell

2011-10-20 Thread Jeremy Burns | Class Outfit
A couple more oddities I just noted.

- I had a model system_component.php. This was upgraded to SystemComponent.php 
but it was moved from Model into Controller/Component.
- I had a model called xuser.php (I placed the x in front to make sure it was 
not be referenced anywhere - I had instead got a model people.php that I was 
using for authentication etc). After the upgrade I had a model User.php, but no 
Xuser.php.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 19 Oct 2011, at 14:56, euromark wrote:

 i just wrote down a list of bugs and enhancements I found the last
 couple of hours trying to port a medium to large sized app
 http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell
 
 
 
 On 19 Okt., 13:32, majna majna...@gmail.com wrote:
 When upgrading plugins for each plugin add plugin option like:
 
 cake upgrade all -p Blog
 
 You have to upgrade App::import() manually.
 
 -- 
 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


Re: 2.0 upgrade shell

2011-10-20 Thread majna
Do you have Controller/AppController.php:

App::uses('Controller', 'Controller');
class AppController extends Controller {
...


2011/10/20 Vitor Pacheco vitorpc...@gmail.com

  Hello, I'm trying to upgrade an application for cake2, and I am getting
 the exception MissingControllerException with the message Controller
 class Controller could not be found.

 I added the folder lib to the include path.

 here is my include 
 path:.:/usr/share/php:/usr/share/pear:/home/vitor/Repos/cakephp2/lib

 Em 19-10-2011 10:56, euromark escreveu:

 i just wrote down a list of bugs and enhancements I found the last
 couple of hours trying to port a medium to large sized 
 apphttp://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell



 On 19 Okt., 13:32, majna majna...@gmail.com majna...@gmail.com wrote:

  When upgrading plugins for each plugin add plugin option like:

 cake upgrade all -p Blog

 You have to upgrade App::import() manually.


 --

 *Vitor Pacheco*
 Skype: vitor.pacheco.costa
 Msn: vitor-...@hotmail.com
 Cel.: 71 8626-7909
 Tel.: 71 3378-5778 / 71 3287-3475

   --
 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


Re: 2.0 upgrade shell

2011-10-20 Thread Jeremy Burns | Class Outfit
I didn't have the line App::uses('Controller', 'Controller'); but I do now.


Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 20 Oct 2011, at 14:49, majna wrote:

 Do you have Controller/AppController.php:
 
 App::uses('Controller', 'Controller');
 class AppController extends Controller {
 ...
 
 
 2011/10/20 Vitor Pacheco vitorpc...@gmail.com
 Hello, I'm trying to upgrade an application for cake2, and I am getting the 
 exception MissingControllerException with the message Controller class 
 Controller could not be found.
 
 I added the folder lib to the include path.
 
 here is my include path: 
 .:/usr/share/php:/usr/share/pear:/home/vitor/Repos/cakephp2/lib
 
 Em 19-10-2011 10:56, euromark escreveu:
 i just wrote down a list of bugs and enhancements I found the last
 couple of hours trying to port a medium to large sized app
 http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell
 
 
 
 On 19 Okt., 13:32, majna majna...@gmail.com wrote:
 When upgrading plugins for each plugin add plugin option like:
 
 cake upgrade all -p Blog
 
 You have to upgrade App::import() manually.
 
 -- 
 Vitor Pacheco
 Skype: vitor.pacheco.costa
 Msn: vitor-...@hotmail.com
 Cel.: 71 8626-7909
 Tel.: 71 3378-5778 / 71 3287-3475
 
 -- 
 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

-- 
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


Re: 2.0 upgrade shell

2011-10-20 Thread Vitor Pacheco
I solved the problem by removing the constructor method that I had in 
my AppController and did not need to add the App:: uses.


Em Qui 20 Out 2011 10:55:27 BRT, Jeremy Burns | Class Outfit escreveu:
I didn't have the line App::uses('Controller', 'Controller'); but I do 
now.



Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 20 Oct 2011, at 14:49, majna wrote:


Do you have Controller/AppController.php:

App::uses('Controller', 'Controller');
class AppController extends Controller {
...


2011/10/20 Vitor Pacheco vitorpc...@gmail.com 
mailto:vitorpc...@gmail.com


Hello, I'm trying to upgrade an application for cake2, and I am
getting the exception MissingControllerException with the
message Controller class Controller could not be found.

I added the folder lib to the include path.

here is my include path:
.:/usr/share/php:/usr/share/pear:/home/vitor/Repos/cakephp2/lib

Em 19-10-2011 10:56, euromark escreveu:

i just wrote down a list of bugs and enhancements I found the last
couple of hours trying to port a medium to large sized app

http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell



On 19 Okt., 13:32, majnamajna...@gmail.com  mailto:majna...@gmail.com  
wrote:

When upgrading plugins for each plugin add plugin option like:

cake upgrade all -p Blog

You have to upgrade App::import() manually.


-- 


*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn:vitor-...@hotmail.com  mailto:vitor-...@hotmail.com
Cel.:71 8626-7909  tel:71%208626-7909
Tel.: 71 3378-5778 / 71 3287-3475


-- 
Our newest site for the community: CakePHP Video Tutorials

http://tv.cakephp.org http://tv.cakephp.org/
Check out the new CakePHP Questions site http://ask.cakephp.org
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
mailto:cake-php%2bunsubscr...@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 http://tv.cakephp.org/
Check out the new CakePHP Questions site http://ask.cakephp.org 
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 
mailto: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


--
*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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


Re: 2.0 upgrade shell

2011-10-19 Thread Jeremy Burns | Class Outfit
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\Consolecake -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()
 

Re: 2.0 upgrade shell

2011-10-19 Thread Jeremy Burns | Class Outfit
I have also tried 'cake bake model all' and got this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to 
allocate 32 bytes) in 
/Volumes/Data/jeremyburns/Sites/CakePHP_2_0/lib/Cake/Model/Datasource/DboSource.php
 on line 434

Jeremy Burns
Class Outfit

Tel: +44 (0) 208 123 3822
Mob: +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com

On 19 Oct 2011, at 08:17, Jeremy Burns | Class Outfit wrote:

 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\Consolecake -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 

Re: 2.0 upgrade shell

2011-10-19 Thread majna
Yes, enable plugins in bootstrap before running upgrade sh.

-- 
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


Re: 2.0 upgrade shell

2011-10-19 Thread majna
When upgrading plugins for each plugin add plugin option like:

cake upgrade all -p Blog

You have to upgrade App::import() manually.

-- 
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


Re: 2.0 upgrade shell

2011-10-19 Thread euromark
i just wrote down a list of bugs and enhancements I found the last
couple of hours trying to port a medium to large sized app
http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell



On 19 Okt., 13:32, majna majna...@gmail.com wrote:
 When upgrading plugins for each plugin add plugin option like:

     cake upgrade all -p Blog

 You have to upgrade App::import() manually.

-- 
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


Re: 2.0 upgrade shell

2011-10-19 Thread Vitor Pacheco
Hello, I'm trying to upgrade an application for cake2, and I am getting 
the exception MissingControllerException with the message Controller 
class Controller could not be found.


I added the folder lib to the include path.

here is my include path: 
.:/usr/share/php:/usr/share/pear:/home/vitor/Repos/cakephp2/lib


Em 19-10-2011 10:56, euromark escreveu:

i just wrote down a list of bugs and enhancements I found the last
couple of hours trying to port a medium to large sized app
http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell



On 19 Okt., 13:32, majnamajna...@gmail.com  wrote:

When upgrading plugins for each plugin add plugin option like:

 cake upgrade all -p Blog

You have to upgrade App::import() manually.


--

*Vitor Pacheco*
Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com
Cel.: 71 8626-7909
Tel.: 71 3378-5778 / 71 3287-3475

--
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


2.0 upgrade shell

2011-10-18 Thread Jeremy Burns
Can anyone give me the steps for upgrading a 1.3.13 app using the
shell? Is it as simple as creating a new v2.0 site, replacing the /app
folder with the 1.3 version and running the command? I've tried this
and am getting various errors, which makes me think I'm not doing it
right.

-- 
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


Re: 2.0 upgrade shell

2011-10-18 Thread rchavik
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 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


Re: 2.0 upgrade shell

2011-10-18 Thread Jeremy Burns | Class Outfit
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 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


Re: 2.0 upgrade shell

2011-10-18 Thread Larry E. Masters
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 know
http://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 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


-- 
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


Re: 2.0 upgrade shell

2011-10-18 Thread #2Will
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.organd 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
  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.organd 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
  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


Re: 2.0 upgrade shell

2011-10-18 Thread euromark
i have another question

after running
E:\...\trunk2\lib\Cake\Consolecake -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


Re: 2.0 upgrade shell

2011-10-18 Thread euromark
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\Consolecake -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