Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drveresh opened this issue Jul 15, 2024 · 1 comment
Open
Assignees

Comments

@drveresh
Copy link

drveresh commented Jul 15, 2024

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.

@mevdschee
Copy link
Owner

mevdschee commented Jul 15, 2024

Hi Veeresh, SQLite 3.22 or higher is required, see tests. What version are you running? Kind regards, Maurits

@mevdschee mevdschee self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants