pizz's avatar
Level 2

help, I get an error in my database after I have deployed the application

I get the following error. Can someone tell me what I am doing

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DB413.Orders' doesn't exist (SQL: select count(*) as aggregate from Orders where cuid = 1)

I know, it says that Orders table does not exist, but it does. I also put in the order class " protected $ table = "orders"; but this doesn't solve the problem.

does anyone know what i am doing wrong?!?!?!

0 likes
4 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

If it was working in local development, check your letter case, Linux case sensitive. Also make sure the table got uploaded (imported) to the production server.

pizz's avatar
Level 2

how can I check / change that?

jlrdw's avatar

postController and PostController are not the same. That's just one thing to check, just trying to help but it could be something else.

So check your class and filenames for wrong letter size.

Please or to participate in this conversation.