I think this has been posted in several threads before, but just in case someone goes searching groups for this in the future, and the above solution doesn't work...
Instead of setting permissions, try deleting the model cache files. They'll be re-created next time around with the proper permissions automatically (much lazier and easier). They're in /app/tmp/cache/models . They aren't read from in DEBUG > 0, so that is why it's only happening with DEBUG=0. I think I also read once that if the database table changes, the cached model file will of course be wrong, and it can cause similar or other errors. The app/tmp/cache/models directory holds the results of the "DESC" database queries, IIRC. If you have $persistModel = true; for any of your models, then you might also have some problems if the permissions are off in your /app/tmp/cache/persistent directory I once accidentally checked in the model cache files in my versioning software without realizing, so for a while, every time I did an update of the project files I kept on getting this error, as the files were being replaced with old and broken versions! Don't forget to exclude that directory from your project if you are using version control software (cvs/svn). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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=en -~----------~----~----~----~------~----~------~--~---
