Good luck with that.

Warning: sqlite_open(): malformed database schema - unable to open a temporary database file for storing temporary tables in /var/www/database/sqlite/common.php on line 10

Try and unfuck your database using a handy reference guide