It is definitely not Apache problem. Are databases same in both environments? Wrong model key may sometimes appear when you use MySQL views instead of tables. Also there may be not enough DB access rights to get tables structure.
On Nov 16, 8:20 pm, Thiago Elias <[email protected]> wrote: > Hey guys. > > I'm experiencing an strange problem these days: > > I have 3 environments for cakePHP: > > - Development (my machine and the other programmers machines) (Windows > XP/SP3 Apache 2 via xammp) > - Test Environment (Debian Linux 5 Lenny Apache 2) > - Production Environment (Debian Linux 4 Etch Apache 1.3) > > Unfortunatelly, I'm not able to change Apache 1.3 to 2.x on Production > Environment right now (We have another server that may be configured in next > days with 2.x) > > The matter is: > > On Development and Test Environments, When I made some $this->model->find(), > the resultant array is normal like this: > > [0] => array( > [Person] => array( > [person_name] => Person name > [created] => 2009-09-10 > ) > [Access] => array( > [login] => some_login_username > [pass] => some_password > ) > ) > > [1] => array( > [Person] => array( > [person_name] => Person name > [created] => 2009-09-10 > ) > [Access] => array( > [login] => some_login_username > [pass] => some_password > ) > ) > > This is normal. I get the array index as the Model name, but when I upload > to my Production Environment, these arrays comes absolutely different, as > below: > > [0] => array( > [0] => array( > [person_name] => Person name > [created] => 2009-09-10 > [login] => some_login_username > [pass] => some_password > ) > ) > > [1] => array( > [0] => array( > [person_name] => Person name > [created] => 2009-09-10 > [login] => some_login_username > [pass] => some_password > ) > ) > > The resultant array is strange. Cake is joining Person and Access, and > instead the model name, he's just naming as 0. > > Anyone here knows something to correct this, or even has experienced this > problem before ?! > > I'm using *cakePHP 1.2.5* in all environments. > > Thanks for the help and patience. (and sorry for my bad english). > > Atenciosamente, > Thiago Elias Rezende Silva > Programador Portal CidadãoPGwww.cidadaopg.sp.gov.br > > Samuel > Goldwyn<http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html> > - "I'm willing to admit that I may not always be right, but I am never > wrong." -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.
