The Table "devices" For Active Record Class "devices" Cannot Be Found In The Database


I never had this problem before last Friday! Lately (last Friday and Saturday) from some pc which surf this page appears this error: the table "devices" for active record class "Devices" cannot be found in the database I have seen that is a frequent problem but I did not understand how to solve this issue. In my Devices model I have the correct table name

public function tableName()


    return 'devices';


And in my MySQL database the name is the same, devices

Where is the problem?



You get this error sometimes when your /tmp folder on the server is full.


Is there a way to automatically empty tmp folder?

If your own server a CRON job. If hosted, check with them.