I installed CakePHP 2.4.0 and it appears to be working okay, but when the request finishes I get an internal error that AppModel has been redeclared. The stack trace does not even include any of my code, only cakePHP code. It is something to do with the testing system, which I am not even using. The bug appears in a brand new installation and has apparently been fixed a number of times over the years, and in a number of different ways, but it still happens.
Here are two different reports of this problem, along with the fixes that allegedly fixed it. https://github.com/cakephp/cakephp/pull/617
https://github.com/Phally/lazy_model/issues/5
The first solution above was already implemented in cake 2.4.0, but the bug still shows up even with that fix in place. I tried the second solution, but it did not change anything.
Does anyone know a permanent solution to this problem?