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. April 19, 2014 at 2:19 pm

    Hello, I have problems with the system, I get this message

    Menú
    Missing Database Table

    Error: Database table worwarehouses for model Worwarehouse was not found.

    Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp
    when I open the enterprise system …..I do not understand how to fix it

  1. No trackbacks yet.

Leave a reply to Alfredo Gallo linares Cancel reply