Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-11 Thread Bert Van den Brande
Interesting to see the basic memory footprint of a basic CakePHP page. Without reference material of course there's way to evaluate this data :) Glad the problem is sorted out ... On Thu, Sep 10, 2009 at 1:19 PM, Tokasa wrote: > > I did few more testing :) > I have put this in my script to see

Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Tokasa
I did few more testing :) I have put this in my script to see how memory is occupied... http://us2.php.net/manual/en/function.memory-get-usage.php http://us2.php.net/manual/en/function.memory-get-peak-usage.php I have compared 2 use cases: 1) very very simple script BAKED by cakephpit was

Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Bert Van den Brande
Is 8MB much ... all depends on the functionality of the scripts. Personally I almost always need higher limits from the moment you start working with shells/scripts that consume lot's of data. Seeing that you only read 2 records from the database I suspect there is some functionality inside the

Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Tokasa
in the element "draw_form_item.ctp" on line 35 I do only request action to get data and I pass them to render another element but the database is almost empty...I am fetching 1-2 records... is it wrong that I render element from other element? could this increase the memory?? On Sep 10, 11

Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Tokasa
Hi Bert, thanks for your reply. I have tried to raise memory limit from 8MB to 9MB and it works then OK Anyway do you have any idea if 9MB memory usage is absolutely NORMAL or I have to optimize something?? I know I can increase it e.g. up to 128MB but I dont know yet what hosting compan

Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread Bert Van den Brande
I think it also depends on what your own code is doing in "draw_form_item.ctp" on line 35 . Possibly the CakePHP upgrade requires a little bit of extra memory, and your script was already near the limit of 8MB using the previous CakePHP version ? Try raising the memory limit a bit and evaluate t

app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread toka...@gmail.com
Hi, I have got some little issue and I would appreciate if anybody can help me out :) In some specific part PHP (not even cake I guess) gives me strange error. Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /Users/tokasa/www/project/app/views/

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-07 Thread grandpa
I use git for all my projects. I used git with cake back when cake was only officially in an svn repo. Now that cake is officially in a git repo, why dont you just learn and use git? First you clone the cake git repo at http://thechaw.com/cakephp (you will need an account there). It's extremely

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-07 Thread dr. Hannibal Lecter
There is a difference, but you can use either one. /app/vendors is 3rd party code for your application. /vendors however is 3rd party code for all the apps sharing that particular cake setup (see http://book.cakephp.org/view/35/Advanced-Installation for more info on that). On May 6, 5:35 pm, Jam

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread JamesF
any good links for a basic SVN software primer out there? maybe something cake related On May 6, 12:45 pm, Stephen Cuppett wrote: > I have made a couple customizations to CakePHP proper, first in 1.1.x and > then a few less in the 1.2.x series.  The way that I handle upgrades is > within a singl

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread Stephen Cuppett
I have made a couple customizations to CakePHP proper, first in 1.1.x and then a few less in the 1.2.x series. The way that I handle upgrades is within a single commit in my repository covering the complete change, in this case 1.2.2 to 1.2.3. You can do this pretty easily with KDiff3 (Linux/UNIX

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread brian
On Wed, May 6, 2009 at 11:35 AM, JamesF wrote: > > thanks for the tip..i didn't exactly know that you shouldn't mess with > the /cake/ dir > does the same apply to the /vendors folder as opposed to /app/vendors? No, the vendors dir is for 3rd party code. Put whatever you like in there. I have n

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread brian
I generally rename the dir to, eg. cake_1.2.2.8120 like so: app/ cake_1.2.2.8120/cake/ ... and update index.php to point to it. That means I can switch back very easily and always know exactly which version I'm running. Once an upgrade is known working, I just get rid of the older version. On W

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread JamesF
thanks for the tip..i didn't exactly know that you shouldn't mess with the /cake/ dir does the same apply to the /vendors folder as opposed to /app/vendors? On May 6, 10:22 am, "dr. Hannibal Lecter" wrote: > Uh, you're not supposed to touch anything in the cake folder. Your > app_controller.php

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread Dan
Always upgrade on a development server and test first. Upgrading can break things you wouldn't expect. For example, the recent change of the alphanumeric validation rule to support i18l characters broke the automatic Javascript error checking I use (the new regex isn't valid in JS). Instead of ove

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread dr. Hannibal Lecter
Uh, you're not supposed to touch anything in the cake folder. Your app_controller.php should be inside your app folder, i.e. ~/app/ app_controller.php As far as other upgrading go, If you're using 1.2 you can simply overwrite everything in ~/cake and it should work without a problem. Just don't f

Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-06 Thread JamesF
with the release of 1.2.3.8166 that fixes that nasty xss vulnerability ( https://trac.cakephp.org/ticket/6336 ) i feel compelled to upgrade from an earlier build of 1.2. i am not sure of the best way to go about this without losing code i have already made. for example, i have added some things t

Issues with upgrading Cake releases in SVN

2008-07-06 Thread keymaster
Are you saying you do not store cakephp in SVN as a separare "vendor", ie. you aren't using vendor branching? How do you handle cake upgrades? Do just replace the latest cake core folder into each project and recommit to SVN? (I don't change the cake core either. I think the reason svn is flaggi

Re: Upgrading Cake

2008-05-22 Thread AD7six
On May 22, 5:56 pm, Rob Wilkerson <[EMAIL PROTECTED]> wrote: > So as a new (prospective) user, I've been looking at the framework > versions and tutorials and I started wondering what the upgrade path > looked like. From what I can tell, the user code and framework code > is intermingled (albei

Re: Upgrading Cake

2008-05-22 Thread Chris Hartjes
On Thu, May 22, 2008 at 11:56 AM, Rob Wilkerson <[EMAIL PROTECTED]> wrote: > > Would love to know if there's a baked in upgrade path or, if not, what > strategy experienced users employ. > > Thanks. > > Rob Well, I keep my Cake core files out of the web path (no snooping, thanks!) and my app dire

Upgrading Cake

2008-05-22 Thread Rob Wilkerson
So as a new (prospective) user, I've been looking at the framework versions and tutorials and I started wondering what the upgrade path looked like. From what I can tell, the user code and framework code is intermingled (albeit in a very predictable way). Given that, how are upgrades performed?