0

I moved a website (cakephp 2.1) from a test server ( PHP verson 5.3.10 ) to the live server (PHP verson 5.3.17). In the new situate all my code started to complaine about undefined indexes. When debugging an array I see that the array indexes became numbers instead of the Model names!? What can be the problem of that I use the exact same installation of cakephp?

Below the 2 examples of arrays.

this is how the array should be.

Array
(
    [0] => Array
        (
            [Post] => Array
                (
                    [id] => 152
                    [menu_item_id] => 1
                )

        )

This is the array on the live server

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [id] => 152
                    [menu_item_id] => 1

                )

        )
tereško
  • 58,060
  • 25
  • 98
  • 150
Cake PHP
  • 163
  • 5
  • 12
  • 1
    Are you sure that configuration of PHP are identical on both servers ? Maybe you get the same waring on all of them, but live server has different level of `error _reporting` set . – tereško Sep 27 '12 at 07:21
  • problem solve ... need to upgrade PHP version ( like 5.4 ) – Cake PHP Oct 25 '12 at 13:24

0 Answers0