php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

SQLSTATE[HY000]: General error: 1 near \"(\": syntax error [New Versions]

Open drveresh opened this issue 1 year ago • 1 comments

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.

drveresh avatar Jul 15 '24 12:07 drveresh