Are you sure your Sqlite configurations have been set well? Because I had the same issue on my Ubuntu 17.04 and it was solved with
sudo apt-get install php7.1-sqlite3
Can I know how you configured your sqlite?