zizohassan / laraflat

Advanced laravel system to build admin panel
http://laraflat.com
MIT License
150 stars 76 forks source link

Table 'laraflat.post' doesn't exist #89

Closed badrshs closed 6 years ago

badrshs commented 6 years ago

I have used Laraflat Commands to create post section with

title ( required ) body( required ) image (required and as an image )

then from translate i finished all translation steps ,

now if i click on post then Datatable will alert an error and the error is what is showing in the image

here

"Illuminate\Database\QueryException"
file
:
"/var/www/xxxxxxxxxx/laraflat/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
line
:
664
message
:
"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laraflat.post' doesn't exist (SQL: select count(*) as aggregate from (select '1' as `row_count` from `post`) count_row_table)"
wanteed-lh commented 6 years ago

https://5dmat-web.com/ar/video/939

badrshs commented 6 years ago

???? this is not related to the problem at all 😆 @wanteed-lh

the issue related to the database not to the image folder 😃

zizohassan commented 6 years ago

check if you have database call laraflat and in this database have table call post

badrshs commented 6 years ago

I solved the problem .

as I told you in another issue (permission ) you have to give permission to database folder but in fact you have to give the permission to all the folder inside database like migration

what happen is you use file_put_contents , and because permission issue , there is no migration file => and then there is no table in database . the thing is, I didnt get any permission error .

after given the right permission to migration folder the problem is solved.

zizohassan commented 6 years ago

good luck