Open
Description
I am facing the below error despite trying multiple versions of PHP (7.2, 7.3, 8.1) and ensuring the required Sqlite versions(PDO Driver 3.7.17), on shared cPanel servers.
{
"code": 9999,
"message": "SQLSTATE[HY000]: General error: 1 near \"(\": syntax error"
}
Below is its config:
$config = new Config([
'driver' => 'sqlite',
'address' => './logs.db',
// 'address' => 'localhost',
// 'port' => '3306',
//'username' => '',
//'password' => '',
'database' => 'php-crud-api',
// 'debug' => false
]);
Please help me out.