Re: "Bug" with media.php CakePHP core file - HELP

2010-12-25 Thread Jesh
Okie i found the solution please refer to http://www.php.net/manual/en/language.operators.errorcontrol.php#98895. You can hack the cake_log.php handleError method, or create a own error handler in bootstrap.php Hope this help. On Dec 20, 10:46 pm, BrendonKoz wrote: > Oh. I didn't realize I could

Re: "Bug" with media.php CakePHP core file - HELP

2010-12-20 Thread BrendonKoz
Oh. I didn't realize I could move that in to my app; I figured only app_* and cake view/layout files could be moved to the app. That makes things much easier. Thanks, euromark! On Dec 16, 10:25 am, euromark wrote: > you dont have to :) > just copy it into your /app/views/ folder > cake will use t

Re: "Bug" with media.php CakePHP core file - HELP

2010-12-16 Thread euromark
you dont have to :) just copy it into your /app/views/ folder cake will use that file then from now on.. On 16 Dez., 15:35, BrendonKoz wrote: > Although I've been tempted to, I don't personally like modifying the > core unless I also try to fix the problem that made me want to modify > it in the

Re: "Bug" with media.php CakePHP core file - HELP

2010-12-16 Thread BrendonKoz
Although I've been tempted to, I don't personally like modifying the core unless I also try to fix the problem that made me want to modify it in the first place (and then submit a ticket). I did a search on the issue, and it seems that CakePHP is not the only "framework" or project to suffer from t

Re: "Bug" with media.php CakePHP core file - HELP

2010-12-15 Thread euromark
i had my log files filled up with that crap as well just comment those lines out - worked for me :) On 15 Dez., 18:18, BrendonKoz wrote: > I would like to trace down the issue I'm about to explain, but I > unfortunately am not sure where to look. Any advice or help would be > appreciated. > > I a

"Bug" with media.php CakePHP core file - HELP

2010-12-15 Thread BrendonKoz
I would like to trace down the issue I'm about to explain, but I unfortunately am not sure where to look. Any advice or help would be appreciated. I am continually getting NOTICE level error messages reported to debug.log from media.php: 2010-12-15 11:04:50 Notice: Notice (8): ob_flush() [ref.outc

Re: requestAction() bug?

2010-11-11 Thread Shashidhar Gampa
I have a typo error here. I am unable to access $this->params['url']['q'] not $this->params['url']['a'] Regards, Shashidhar.G On Fri, Nov 12, 2010 at 2:02 AM, Shashidhar Gampa wrote: > Hello All, > I have a situation with requstAction(

requestAction() bug?

2010-11-11 Thread Shashidhar Gampa
Hello All, I have a situation with requstAction() that I am not sure weather it is a bug or if its behaviour is such. I have router rules set in my application http://host/search/?q=xyz This is routed tot ControllerA action searchDB. inside the method I am able to access $this->par

App::import bug with vendors?

2010-10-18 Thread euromark
to any other lookup (libs, component, ...) and the above call to find my app vendor stuff. Is this a cake1.3 bug? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Gr

Router bug?

2010-10-14 Thread cricket
1.3.4 I'm trying to dynamically set Auth's redirect route but something's not right. The controller action's route: Router::connect( '/galleries/:year/:month/:day/:slug', array( 'controller' => 'galleries', 'action' => 'slug' ), array( 'year' => '2[0-9

Re: Possible bug in HtmlHelper ?

2010-10-06 Thread mark_story
Don't use the Html->tag method to make inputs. It won't do it correctly, as it wasn't intended for this. Use the FormHelper, its much better at building input tags. -Mark On Oct 4, 6:20 am, Adael wrote: > Hi all, in HtmlHelper::tag() (line 728) we found this code: > > if ($text === null) { >  

Possible bug in HtmlHelper ?

2010-10-04 Thread Adael
Hi all, in HtmlHelper::tag() (line 728) we found this code: if ($text === null) { $tag = 'tagstart'; } else { $tag = 'tag'; } So, if you do the call echo $html->tag('input', 'name', 'value'); It's output: name I except: Other way: echo $html->tag('input', 'name', arra

Re: CakePHP ignores notEmpty validation rule when the field's name is not a key in $data! (Bug or Feature?)

2010-09-30 Thread Dr. Loboto
;     $this->assertFalse($this->Post->validates()); // Fails! >   } > >   function testShouldNotBeValidWithNullName() { >     $this->Post->create(array('name' => null)); >     $this->assertFalse($this->Post->validates()); >   } > > I exp

Re: CakePHP ignores notEmpty validation rule when the field's name is not a key in $data! (Bug or Feature?)

2010-09-30 Thread Joshua Muheim
clearly doesn't seem to be able >> to come even close to the experience of RoR. Any yes, I know CakePHP >> isn't RoR, and yes, I could switch (well actually, I can't)... Just my >> 2 c€nts... >> >> >> >> On Thu, Sep 30, 2010 at 2:58 PM

Re: CakePHP ignores notEmpty validation rule when the field's name is not a key in $data! (Bug or Feature?)

2010-09-30 Thread euromark
the experience of RoR. Any yes, I know CakePHP > isn't RoR, and yes, I could switch (well actually, I can't)... Just my > 2 c€nts... > > > > On Thu, Sep 30, 2010 at 2:58 PM, euromark wrote: > > actually it is NOT a bug > > although many are not aware of that

Re: CakePHP ignores notEmpty validation rule when the field's name is not a key in $data! (Bug or Feature?)

2010-09-30 Thread Joshua Muheim
isn't RoR, and yes, I could switch (well actually, I can't)... Just my 2 c€nts... On Thu, Sep 30, 2010 at 2:58 PM, euromark wrote: > actually it is NOT a bug > although many are not aware of that behavior :) > > you need to make sure that the field is passed to the vali

Re: CakePHP ignores notEmpty validation rule when the field's name is not a key in $data! (Bug or Feature?)

2010-09-30 Thread euromark
actually it is NOT a bug although many are not aware of that behavior :) you need to make sure that the field is passed to the validation otherwise it will be ignored @see http://www.dereuromark.de/2010/09/21/saving-model-data-and-security/ On 30 Sep., 14:52, psybear83 wrote: > Hi everyb

CakePHP ignores notEmpty validation rule when the field's name is not a key in $data! (Bug or Feature?)

2010-09-30 Thread psybear83
Fails! } function testShouldNotBeValidWithNullName() { $this->Post->create(array('name' => null)); $this->assertFalse($this->Post->validates()); } I expect all three of them to work, but the 2nd one fails! So why does it validate when there truly is no va

Named parameter issue, or bug in cake

2010-09-28 Thread narciarz
d. (sorry of my english) and thats ok, works fine. And now when i change bod in index.ctp. to zof, cake create link to show like: http://localhost/kejk-1.3.4-0/categories/show/id:12/bod:zof routing not match to writings because zof not match to regex .{4}, and click on it link will cause redir

Re: ACL Behavior Bug?

2010-09-28 Thread Vincent (Eduhub.nl)
Did you find the answer to this? I'm experiencing similar problems with the lft and rght value in the ARO table sometimes being zero. I can't reproduce this problem though, so it's hard to fix. Vincent On Sep 6, 4:31 pm, euromark wrote: > What the ... is the acl behavior doing? > > The user just

Re: Polymorphic BUG? find() in beforeSave()

2010-09-15 Thread Henrique Machado
'foreignKey' => 'foreign_id', 'conditions' => array('Icon.class' => 'Line', 'Icon.type' => 'icon'), 'dependent' => true, ), ); } ?> Att, Henr

Re: Polymorphic BUG? find() in beforeSave()

2010-09-15 Thread Henrique Machado
d some friends, I concluded that I found a bug in polymorphic > Behaviour. > > My Scenario: > > The Picture is my Polymorphic Model: > Picture model: http://bin.cakephp.org/view/1085677267 > > Family hasOne Banner (Banner is an alias to Picture that is polymorphic) > Family h

Polymorphic BUG? find() in beforeSave()

2010-09-14 Thread Henrique Machado
Hello everybody! After a whole day trying to make my application work correctly, asking for help on IRC and some friends, I concluded that I found a bug in polymorphic Behaviour. My Scenario: The Picture is my Polymorphic Model: Picture model: http://bin.cakephp.org/view/1085677267 Family

ACL Behavior Bug?

2010-09-06 Thread euromark
What the ... is the acl behavior doing? The user just updates his password (nothing else) after that he cannot log in anymore because the aro/aco table gets messed up really bad Cake1.3.3 HEAD Any ideas? 23 SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE `User`.`id` = '499949c6-

Re: hasMany problems/bug - need feedback

2010-08-28 Thread Anthony
r network traffic and multiple sql calls, but speed. The > first call takes 140ms with the data I have. The joined one takes > 74ms. > > This gets even worse with containable. Instead of joining the group, > it SELECTS every group by id for every user. It's generating like 70 &g

Re: hasMany problems/bug - need feedback

2010-08-28 Thread Anthony
r network traffic and multiple sql calls, but speed. The > first call takes 140ms with the data I have. The joined one takes > 74ms. > > This gets even worse with containable. Instead of joining the group, > it SELECTS every group by id for every user. It's generating like 70 &g

hasMany problems/bug - need feedback

2010-08-27 Thread Dan Heberden
all takes 140ms with the data I have. The joined one takes 74ms. This gets even worse with containable. Instead of joining the group, it SELECTS every group by id for every user. It's generating like 70 queries instead of one join. I want to make sure i'm not missing something before

CakePHP 1.3.3 and postgresql 8.2.14 Bug

2010-08-10 Thread gurel
CakePHP 1.3.3 was unable to connect to postgres 8.2.14 server (on CentOS 5.5 ) even though all the configuration was correct. I fixed this editing this file: /cake/libs/model/datasources/dbo/ dbo_postgres.php inside the function connect() remove host and port parameters within $conn variable.

Re: bug with HTML entity encoding of attribute of form elements

2010-08-06 Thread Dan Heberden
As for the quotes thing - i meant sending the slash along with it, so the rendered, parse, printed, whatever text would _look_ like onclick="function(\"xxx\");" more or less a work around I agree that it needs to be something specific.. I think escape needs to be mixed - that way it would be ba

Re: bug with HTML entity encoding of attribute of form elements

2010-08-06 Thread drbuzasi
Of course i mean at my first question: ...different options for title/ selectoptions and for attributes in future versions... On aug. 6, 13:21, drbuzasi wrote: > I think that's not a problem of php escaping. Using double quotes in > javascript isn't a good idea since the code generated (assuming

Re: bug with HTML entity encoding of attribute of form elements

2010-08-06 Thread drbuzasi
I think that's not a problem of php escaping. Using double quotes in javascript isn't a good idea since the code generated (assuming it won't be escaped) would be ... onChange="functon("yyy")"... which is meanless because of the wrapping double quotes. IMHO the problem is in form.php and helper.ph

Re: bug with HTML entity encoding of attribute of form elements

2010-08-05 Thread Dan Heberden
Does changing your quote pattern help? echo $this->Form->select('field', array( '1' => '' , '2' => '' ), null, array('onChange' => 'function(\"yyy\")')); \" (because php isn't escaping it) will get sent to the output, which _should_ render onclick="funct

bug with HTML entity encoding of attribute of form elements

2010-08-05 Thread drbuzasi
If a button is needed that is labeled as '' and has an 'onClick' attribute with some javascript containing a text parameter the code can't be created since when 'escape' is set to false in options (button default) the script is OK but buttons label will not be encoded. Setting 'escape' to true HTML

Re: Bug getLastInsertID( )

2010-07-28 Thread Davor Ilic
thanks i will check this because i used the alternate mysql_insert_id() 2010/7/29 Norman Paniagua > when you save a record the id is stored in the model.. like > > $this->Model->save() > $this->Model->id() // Get the current ID of the inserted record > --- > > Norman Paniagua > > > 2010/7/28 Dav

Re: Bug getLastInsertID( )

2010-07-28 Thread Norman Paniagua
when you save a record the id is stored in the model.. like $this->Model->save() $this->Model->id() // Get the current ID of the inserted record --- Norman Paniagua 2010/7/28 Davor Ilic > i can´t use getLastInsertID( )<#12a1bce91255532a_method-ModelgetLastInsertID> > does > anybody use this

Bug getLastInsertID( )

2010-07-28 Thread Davor Ilic
i can´t use getLastInsertID( ) <#method-ModelgetLastInsertID> does anybody use this and it works for him? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "C

Re: Possible bug in Tree, recover

2010-06-24 Thread AD7six
; >http://cakephp.lighthouseapp.com/dashboard > > >> Ok, I added > >> it:http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-s... > > >> Erik S.http://twitter.com/erikstarck > > > Cricket: I think you've misled Erik to think he has a bug. >

Re: Possible bug in Tree, recover

2010-06-23 Thread cricket
dashboard >> >> Ok, I added >> it:http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-s... >> >> Erik S.http://twitter.com/erikstarck > > Cricket: I think you've misled Erik to think he has a bug. The point was that's the place to report bugs. As in: more like

Re: Possible bug in Tree, recover

2010-06-23 Thread AD7six
p/tickets/848-s... > > Erik S.http://twitter.com/erikstarck Cricket: I think you've misled Erik to think he has a bug. "I've executed the individual test case: libs/model/behaviors/ tree.test.php before [] the change and it passes []". Means to me that there's no reas

Re: Possible bug in Tree, recover

2010-06-23 Thread Erik Starck
On Tue, Jun 22, 2010 at 6:56 PM, cricket wrote: > Interesting. You should post a ticket here: > > http://cakephp.lighthouseapp.com/dashboard Ok, I added it: http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/848-save-bug-in-treebehaviorrecover Erik S. http://twitter.com/e

Re: Possible bug in Tree, recover

2010-06-22 Thread cricket
Interesting. You should post a ticket here: http://cakephp.lighthouseapp.com/dashboard On Tue, Jun 22, 2010 at 9:22 AM, Erik Starck wrote: > Hi group! > My first post to this list so here goes... > > I may have found a bug in the recover method in Tree.php, cake 1.3.2. > I was

Possible bug in Tree, recover

2010-06-22 Thread Erik Starck
Hi group! My first post to this list so here goes... I may have found a bug in the recover method in Tree.php, cake 1.3.2. I was getting an SQL error when calling recover: SQL Error: 1062: Duplicate entry '20' for key 'PRIMARY' Here is an example of the SQL: UPDATE `categ

Re: Does it a bug in requestAction ?

2010-06-06 Thread cricket
t; > The case is, requestAction() method does not able to call actions > start with _ in its name. Does it a bug? > > If it is not a bug, so how could I able to request a private action or > _ starting action ? You can't call a private or protected method from outside the cla

Does it a bug in requestAction ?

2010-06-06 Thread saidbakr
start with _ in its name. Does it a bug? If it is not a bug, so how could I able to request a private action or _ starting action ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscri

Re: modelClass value changing - bug of feature?

2010-04-20 Thread Miles J
The $modelClass is only created when you do not define the $uses. On Apr 20, 8:45 am, Leonid Mamchenkov wrote: > Hi, > > On Tue, Apr 20, 2010 at 18:04, jharris wrote: > > > Since you're using multiple models in your controller (the $uses var), > > I think Cake is just getting confused. On constr

Re: modelClass value changing - bug of feature?

2010-04-20 Thread Leonid Mamchenkov
Hi, On Tue, Apr 20, 2010 at 18:04, jharris wrote: > > Since you're using multiple models in your controller (the $uses var), > I think Cake is just getting confused. On construct, it probably pulls > the model name from the controller name (like how you used > Inflector::singularize()) before it

Re: modelClass value changing - bug of feature?

2010-04-20 Thread jharris
Since you're using multiple models in your controller (the $uses var), I think Cake is just getting confused. On construct, it probably pulls the model name from the controller name (like how you used Inflector::singularize()) before it loads models. Then, in the actions it probably pulls the first

modelClass value changing - bug of feature?

2010-04-20 Thread Leonid Mamchenkov
Hello, I came across a weird behaviour that I cannot figure out. The API documentation for Controller class (http://api.cakephp.org/class/ controller) describes the modelClass property in the following way: "This controller's primary model class name, the Inflector::classify()'ed version of the

Re: form helper ESCAPING quotes character values?? a bug?

2010-03-29 Thread toka...@gmail.com
Hi, actually it is not $html->link() but $form->input() echo $form->input('ERItem.value', array('type'=>$type, 'options' => $ERItemsOptions, 'div' => false,

Re: form helper ESCAPING quotes character values?? a bug?

2010-03-27 Thread WebbedIT
Copy and paste your $html->link() call for us to see please. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send em

Re: form helper ESCAPING quotes character values?? a bug?

2010-03-26 Thread toka...@gmail.com
> > How can I escape double quotes when using form helper? Imagine we have > > this value with double quotes stored in database: 15" - 16" > > > How can I render a correct HTML select box? ..now it does this mess !! > > > > >     15" - 16"

Re: form helper ESCAPING quotes character values?? a bug?

2010-03-25 Thread euromark
a correct HTML select box? ..now it does this mess !! > > >     15" - 16" > > > is it a bug?? is there any workaround? > > PS1: escape => true is not helping with quotes.. > > PS2: > This article tell about something similar, but I'd like to us

form helper ESCAPING quotes character values?? a bug?

2010-03-25 Thread toka...@gmail.com
Hi, How can I escape double quotes when using form helper? Imagine we have this value with double quotes stored in database: 15" - 16" How can I render a correct HTML select box? ..now it does this mess !! 15" - 16" is it a bug?? is there any workaround? PS1: e

possible bug with virtualFields

2010-03-10 Thread Ernesto
Hello. i have a simple app running 2 models Order hasMany Item Item belongsTo Order the "code" field in in both models but in ItemModel this is a virtual field var $virtualFields = array("code" => "CONCAT(Order.code, '-', Item.n)"); here's the problem: $myItem = $this->Item->find("all", array

Multiple file Upload through related model (CakePHP bug?)

2010-02-24 Thread Lucca Mordente
Hello! I'm having problems saving multiple files through related model. I have the following structure: Document hasMany Item Item belongsTo Document Item belongsTo File File is a generic model I created to ease attaching a file to a model. My Document form is like following: ... $k=0

Multiple file Upload through related model (CakePHP bug?)

2010-02-24 Thread Lucca Mordente
Hello! I'm having problems saving multiple files through related model. I have the following structure: Document hasMany Item Item belongsTo Document Item belongsTo File File is a generic model I created to ease attaching a file to a model. My form is like following: $k=0; echo $for

Re: Paginator helper bug cakephp 1.2

2010-02-01 Thread Pau
tence display: > Página 1 de 1, Mostrando 3 registros de 3 total, Empezando en el 1, > acabando en el 3 ; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?> > > I look for this unwanted chars in the helper's files but I haven´t > found the bug. > > The table information in

Paginator helper bug cakephp 1.2

2010-01-31 Thread Pau
pages%, Mostrando %current% registros de %count% total, Empezando en el %start%, acabando en el %end%', true) )); This sentence display: Página 1 de 1, Mostrando 3 registros de 3 total, Empezando en el 1, acabando en el 3 ; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?>; ?> I look

Re: weird bug with database field called "date" for a normal date (yyyy-mm-dd)

2010-01-18 Thread John Andersen
Sorry, I only meant that your issue was something similar, not the same :) Good luck hunting it down, John On Jan 17, 11:56 pm, euromark wrote: > darn > i was too quick > > after removing the model "Date" and all related models the same > problem still occured > so it must be something else >

Re: weird bug with database field called "date" for a normal date (yyyy-mm-dd)

2010-01-17 Thread euromark
darn i was too quick after removing the model "Date" and all related models the same problem still occured so it must be something else maybe some conflict with the php date() function? the above link about "data" cant be the solution because this person had a conflict with $model->data in my ca

Re: weird bug with database field called "date" for a normal date (yyyy-mm-dd)

2010-01-17 Thread euromark
you are so right just found the problem, i guess: I have a file date.php with a class "Date" in the models folder this model works, though (thats why i never though about this model name resulting in any upcoming trouble) its just the current model and the post functionatily which screws up... do

Re: weird bug with database field called "date" for a normal date (yyyy-mm-dd)

2010-01-17 Thread John Andersen
Your issue may be related to the one that was discussed in: http://groups.google.com/group/cake-php/browse_thread/thread/759c93f04a626c5b# There it was a table named "data" that gave problems! Your using of "date" may give issues of the same kind - kind of reserved word :) Enjoy, John On Jan 1

weird bug with database field called "date" for a normal date (yyyy-mm-dd)

2010-01-16 Thread euromark
Baked in my current app, the field called "date" results in the following array: Array ( [Ride] => Array ( [id] => [datetime] => Array ( [day] => [month] => [year] => )

Re: i18n and anonymous surfers - bug?

2009-12-31 Thread euromark
thats it :) actually, you need to put it in __construct() as beforeFilter() is not invoked on errors (404 etc) otherwise it would print the error layout without translation PS: i still think this is a bug as it should always fall back to the default language set in configs mark On 31 Dez

Re: i18n and anonymous surfers - bug?

2009-12-31 Thread John Andersen
add: > security level is to low (as there are strange happening with higher > security levels anyway) > > if nobody has a reason/solution i am forced to open a ticket for this > i guess > > On 30 Dez., 15:47, euromark wrote: > > > right > > i think this must

Re: i18n and anonymous surfers - bug?

2009-12-30 Thread euromark
i should probably add: security level is to low (as there are strange happening with higher security levels anyway) if nobody has a reason/solution i am forced to open a ticket for this i guess On 30 Dez., 15:47, euromark wrote: > right > i think this must be some bug in the core > a

Re: i18n and anonymous surfers - bug?

2009-12-30 Thread euromark
right i think this must be some bug in the core although i could not figure out where it happens my version is the 1.3 head right now On 30 Dez., 11:08, John Andersen wrote: > I can confirm this. Just tried it with my development site, which > works well in english and danish, depending

Re: i18n and anonymous surfers - bug?

2009-12-30 Thread John Andersen
I can confirm this. Just tried it with my development site, which works well in english and danish, depending on the language information received from the browser. With anonymouse.org this completely does not work, nothing is translated. Enjoy, John On Dec 29, 5:38 am, euromark wrote: > i wou

i18n and anonymous surfers - bug?

2009-12-28 Thread euromark
i would have never found that out if i hadnt built myself a bot- tracking component it basically logs all non-js-browsing and tries to detect if it was a known search bot anyway this way i found out that my website has been visited by users using http://anonymouse.org/ i tried it out myself and w

ajax, can't find bug!

2009-12-18 Thread Tom
I can't find bug in this source code? Help! /Nothing happens when I select a client/ Thanks. --- /views/elements/activity_filter.ctp --- Select Activities create('Activity', array('type' => 'get&#

Bug on my AROS... :(

2009-11-09 Thread Xanax
Hello, I don't understand my bug. I've created a "parent_node" function on my user model that return a role_id. Every user have a role. When i create a new user, it create also an ARO associated with the proper role. The problem is that EVERY user is registred as ADMIN

BUG(?) Containable + HABTM: including only Model1 WHERE ... in Model2 also returns all Model1 which do not have a Model2

2009-10-23 Thread james revillini
Scenario: Plan HABTM Status Plan Belongsto Department Plan Belongsto Element Controller code: $data= $this->Plan->find('all', array( 'contain' => array ( 'Status.name = "approved"', 'Element',

Re: Bug report: CakePHP saving twice

2009-10-21 Thread AD7six
On 21 oct, 07:59, "Ma'moon" wrote: > You may want to open a ticket @https://trac.cakephp.org/stating the steps > to reproduce your claims so that the core DEVs may review it and fix it. That's pretty bad advice - why should cake devs bother filtering through user-land problems of this nature?

Re: Bug report: CakePHP saving twice

2009-10-21 Thread AD7six
On 21 oct, 06:32, Rawna wrote: > I just found out that CakePHP saving twice when I have warnings (as I > saw it in debug.log) > E.g. I have $this->Model->save() in my controller > > And I have this in my default.ctp template: > > > I think CakePHP is going through the controller action again w

Re: Bug report: CakePHP saving twice

2009-10-21 Thread Dr. Loboto
"Going twice" may occur because of requestAction somewhere. On Oct 21, 11:32 am, Rawna wrote: > I just found out that CakePHP saving twice when I have warnings (as I > saw it in debug.log) > E.g. I have $this->Model->save() in my controller > > And I have this in my default.ctp template: > > >

Re: Bug report: CakePHP saving twice

2009-10-20 Thread Ma'moon
You may want to open a ticket @ https://trac.cakephp.org/ stating the steps to reproduce your claims so that the core DEVs may review it and fix it. On Wed, Oct 21, 2009 at 12:32 AM, Rawna wrote: > > I just found out that CakePHP saving twice when I have warnings (as I > saw it in debug.log) > E

Bug report: CakePHP saving twice

2009-10-20 Thread Rawna
I just found out that CakePHP saving twice when I have warnings (as I saw it in debug.log) E.g. I have $this->Model->save() in my controller And I have this in my default.ctp template: I think CakePHP is going through the controller action again when a warning caused by the above is present. --

Find queries, select fields, and arithmetic: possible DboSource bug?

2009-10-20 Thread Jamie
: "SELECT (`Statistic`.`a` - `StartImport` FROM reports..." It's getting to Startimport and then just chopping off everything afterwards. This is happening in DboSource::fields(), but obviously I don't want to start hacking away at such a core function. So my que

App::Objects bug or feature?

2009-10-19 Thread Eugene
Hello everybody! I am using 1.3 builds and upgrading once a week. It worked for me ok before but on Friday I upgraded to latest version and got this error $a_plugins = App::Objects('plugin'); This array is empty if placed in bootstrap now. In controllers it is still ok. Do you have any ideas a

Re: Possible bug relative to use of memcache

2009-10-15 Thread marco.rizze...@gmail.com
I have read that a method to share the session is exactly using memcache like session_handler. And I have to share Cake session with other web application. On 7 Ott, 16:44, jperras wrote: > Memcache being used as a cache configuration and Sessions have pretty > much nothing in common, unless yo

Re: Strange Bug in 1.2 Framework

2009-10-09 Thread John Andersen
A header() only sends a header information to the browser, it does not stop the following php code from executing. Probably you should use a die() or exit() after the header! Enjoy, John On Oct 9, 11:44 pm, Dewald Pretorius wrote: > Given the following scenario: > > a) In an app controller me

Strange Bug in 1.2 Framework

2009-10-09 Thread Dewald Pretorius
Given the following scenario: a) In an app controller method you do a header redirect to an external site (I did it directly with header() not with $this->redirect). b) Since there's no view output, no ctp file exists. c) The controller method is named somemethod(), not __somemethod(). When Co

Re: Auth component bug

2009-10-09 Thread euromark (munich)
actually i have been using 0 instead of false or null works for me On 8 Okt., 22:03, Miles J wrote: > Try setting null instead of false, Cake acts weird sometimes with > "false". > > On Oct 8, 12:05 pm, ben wrote: > > > I was able to overcome this behavior by setting this in my routes.php > > >

Re: Auth component bug

2009-10-08 Thread Miles J
Try setting null instead of false, Cake acts weird sometimes with "false". On Oct 8, 12:05 pm, ben wrote: > I was able to overcome this behavior by setting this in my routes.php > > Router::connect('/admin/users/login', array('controller' => 'users', > 'action' => 'login')); > > It did the trick

Re: Auth component bug

2009-10-08 Thread ben
I was able to overcome this behavior by setting this in my routes.php Router::connect('/admin/users/login', array('controller' => 'users', 'action' => 'login')); It did the trick for me. My only issue now is that once the user is logged in they do not go back to the page they were attempting to

Re: Auth component bug

2009-10-08 Thread ben
I have the same exact issue and have been searching for a solution for several days now... On Sep 26, 4:06 am, Marcelo wrote: > I'm using Auth component and this is one of the settings in my > AppController's beforeFilter() method: > > $this->Auth->loginAction = array( >                        

Re: Possible bug relative to use of memcache

2009-10-07 Thread jperras
Memcache being used as a cache configuration and Sessions have pretty much nothing in common, unless you've set your session save handler (in app/core.php) to be cache-based, which is usually not a good idea unless you know what you're doing. -j. On Oct 6, 5:19 pm, "marco.rizze...@gmail.com" wr

Re: Possible bug relative to use of memcache

2009-10-07 Thread byqsri
Have someone any suggestion about this? On 6 Ott, 23:19, "marco.rizze...@gmail.com" wrote: > Hi > I have installed memcache on my system. > I have setted CakePHP to use memcache. > I have setted the       Configure::write('Security.level', 'medium'); > All seems to work but sometimes I lost the

Re: Bug? - Accessing Deep Model Relations In Plugins

2009-10-06 Thread Cody Lundquist
out_id so > > this should work. > > In my models I have $hasMany = 'CmsTemplate' for CmsLayout.php and > > $belongsTo = 'CmsLayout' in my CmsTemplate.php. > > > > Any thoughts? > > > > On Oct 7, 4:15 am, brian wrote: > > > >

Re: Bug? - Accessing Deep Model Relations In Plugins

2009-10-06 Thread mark_story
t.php and > $belongsTo = 'CmsLayout' in my CmsTemplate.php. > > Any thoughts? > > On Oct 7, 4:15 am, brian wrote: > > > > > On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios > > wrote: > > > > Greetings, > > > > I'm not sure if this is a b

Possible bug relative to use of memcache

2009-10-06 Thread marco.rizze...@gmail.com
Hi I have installed memcache on my system. I have setted CakePHP to use memcache. I have setted the Configure::write('Security.level', 'medium'); All seems to work but sometimes I lost the session. In particular I note this when I do a sequence of ajax call. A simple example to show this err

Re: Bug? - Accessing Deep Model Relations In Plugins

2009-10-06 Thread MeanStudios
_layout_id so this should work. In my models I have $hasMany = 'CmsTemplate' for CmsLayout.php and $belongsTo = 'CmsLayout' in my CmsTemplate.php. Any thoughts? On Oct 7, 4:15 am, brian wrote: > On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios wrote: > > > Greeti

Re: Bug? - Accessing Deep Model Relations In Plugins

2009-10-06 Thread brian
On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios wrote: > > Greetings, > > I'm not sure if this is a bug or not but here it goes. If I have 3 > models (Layout, Template, Page).  Layout has many Page and Template. > Page and Template have only one Layout.  If I am in the >

Bug? - Accessing Deep Model Relations In Plugins

2009-10-05 Thread MeanStudios
Greetings, I'm not sure if this is a bug or not but here it goes. If I have 3 models (Layout, Template, Page). Layout has many Page and Template. Page and Template have only one Layout. If I am in the PagesController and I do something like $this->Page->Layout->findById ($id) it

Auth component bug

2009-09-26 Thread Marcelo
I'm using Auth component and this is one of the settings in my AppController's beforeFilter() method: $this->Auth->loginAction = array( 'controller' => 'users', 'action' => 'login', Configure::read('Routing.admin') => false

Re: Tree behavior scope bug?

2009-09-16 Thread Jamie
Seriously? Nobody has experience with TreeBehavior's scope option? On Sep 15, 1:45 pm, Jamie wrote: > I'm having an issue with Cake'sTreebehavior, specifically setting ascope. > I've created a dynamic navigation system so that clients can > manage navigation lists and items via a CMS. The asso

Re: Bug?

2009-09-15 Thread Dr. Loboto
1. To not receive empty records in DB you should also set fields there to NOT NULL 2. To make cake validate not only actual POST values but all fields that must be, you need more complex validation: var $validate = array( 'username' => array( 'rule' => 'alphaNumeric', 'required' => true

Tree behavior scope bug?

2009-09-15 Thread Jamie
I'm having an issue with Cake's Tree behavior, specifically setting a scope. I've created a dynamic navigation system so that clients can manage navigation lists and items via a CMS. The associations look like this: NavList hasMany NavItem NavItem belongsTo NavList Simple enough. NavItem uses tr

Re: Bug?

2009-09-15 Thread Vladiq
UNIQUE KEY `username` (`username`), UNIQUE KEY `email` (`email`,`username`), You right. But why validation doesn't work? On 15 сен, 14:48, Martin Westin wrote: > If you really did set "username, email to unique" and not "username > unique and email unique" (see the difference?) all is as i

Re: Bug?

2009-09-15 Thread Martin Westin
If you really did set "username, email to unique" and not "username unique and email unique" (see the difference?) all is as it should be. In the first instance (one index combining the two fields) would have to have the same username and email combination for MySQLs index to throw an error. Is

<    1   2   3   4   5   6   7   8   9   >