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 (https://my-domain.com/ta-api/public) 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?

<?php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
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 = "sqlite.so".
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.