I found this similar question but my problem is different.
I moved my CakePHP 2.2 application to another server. There exists no problem before migration. Most of
If this is helpfull for anyone in 2020.
I had this problem even with full permissions to the model. I tried doing like @theJeztah suggested which was clearing cache/persistent but the problem persisted. What ended up working was switching Configure::write('debug', 0)
to Configure::write('debug', 2)
in the app/core file
. Presumably on debug it clears the cache better.