Home > Cakephp > How to resovle Cakephp Missing Database Table error

How to resovle Cakephp Missing Database Table error

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:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.