Now, I don't know whether paginate is to blame, I suspect not. Before
I continue, some system stats:

                 Local                      Remote
PHP:         5.2.5                       5.2.5
MySql:       5.0.51                     5.0.45
Apache:     2.2.6                       1.3.41

Yep, there's a big difference in the Apache version, but I can't
really see it being the problem here.

Code versions - I have just uploaded the full development source to
the server, including the cake directory. the only files that differ
are the database and core files (which differs only in lines defining
Google maps key and Recaptcha keys.

Database versions - the table is actually a view. I have just dropped
and recreated the view from the dev server version.

Code fragment -

157:    $results = $this->paginate('Vcas',$conditions);
158:    $vcass = array();
159:    debug ($results);
160:   foreach($results as $result) :
161:        $vcass[$result['Vcas']['cas_id']] = $result;
162:    endforeach;

Error message -
Notice (8): Undefined index:  Vcas [APP/controllers/
gestiona_controller.php, line 161]

Debug output - the first one is local and is correct. The second one,
from the remote server, appears to fail to create an associative array
for the Vcas view.

Local:

Array
(
    [0] => Array
        (
            [Vcas] => Array
                (
                    [cas_id] => 00117
                    [cas_nom] =>
                    [cas_created] => 2008-04-16 11:42:10
                    [estat_cas_nom] => Actiu
                    [pagw_nom] => Tasques especials de manteniment


Remote:

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [cas_id] => 00056
                    [cas_nom] =>
                    [cas_created] => 2008-04-16 14:06:42
                    [estat_cas_nom] => Actiu
                    [pagw_nom] => Tasques especials de manteniment


I'm stumped. If anyone can offer some pointers or solutions, I'd be a
happy man. All other things being equal, the finger seems to be
pointing at Apache, but I just can't see it myself.

Leo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to