Skip to content

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

@drveresh

Description

@drveresh

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions