ERROR: Module 'sqlite3' already loaded on line 0 in file Unknown

After installing in my new PHP 7.4 box (composer create-project slim/slim-skeleton:dev-master ta-api) and visiting the URL ( I get the next JSON error message:

“statusCode”: 500,
“error”: {
“type”: “SERVER_ERROR”,
“description”: “ERROR: Module ‘sqlite3’ already loaded on line 0 in file Unknown.”

What am I missing?

It seems there is something wrong with your php setup.

Can you create a standalone php file with the following content and run it?


ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
echo 'hello world';

Do you get a similar error?

No, with the you’re script there is no error. The browser shows the hello world message as expected.

Try to edit the php.ini file and remove the extra duplicated lines like extension = "".
Then restart the webserver.

Sorry, didn’t get a notification about your’re answer.
Strange, would suggest the same as @odan, but i am surprised you’re not getting the error with the sample script.