Archive

Posts Tagged ‘Cakephp’

How to resovle Cakephp Missing Database Table error

November 20, 2011 1 comment

1.Customize the error message

Missing Database Table

Error: Database table pages for model Page was not found.

Notice: If you want to customize this error message, create app/views/
errors/missing_table.ctp

 

2. Sometime if you encounter “Missing Database Table” from CakePHP errors, it might not really be due to missing of some database tables.

What you need to do is simple. Clear the cache folders found in CakePHP. The directory should be /app/tmp/cache.

Clear (delete) all files found in these 3 folders:
– models
– persistent
– views

By right, we should only clear the files in models folder. Just to be on the safe side, I strongly recommend clearing all these 3 folders.

Categories: Cakephp Tags: