etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
971 stars 112 forks source link

Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] #166

Closed siddhantmahajani closed 6 years ago

siddhantmahajani commented 6 years ago

I executed the migration.php file and it has thrown this exception. The exception occurred because of a line in DB.php The line no is 81. The error given to me is: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 no such table: config' in C:\wamp64\www\411\phplib\DB.php:81 Stack trace:

0 C:\wamp64\www\411\phplib\DB.php(81): PDO->prepare('SELECT value ...')

1 C:\wamp64\www\411\phplib\DBArray.php(40): FOO\DB::query('SELECT value ...', Array, 1)

2 C:\wamp64\www\411\phplib\Cookie.php(186): FOO\DBArray->offsetGet('cookie_secret')

3 C:\wamp64\www\411\phplib\Cookie.php(91): FOO\Cookie::getKey()

4 C:\wamp64\www\411\phplib\Cookie.php(105): FOO\Cookie::generate(Array, 1511430410)

5 C:\wamp64\www\411\phplib\Cookie.php(33): FOO\Cookie::write()

6 [internal function]: FOO\Cookie::FOO{closure}()

7 {main}

thrown in C:\wamp64\www\411\phplib\DB.php on line 81