teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.09k stars 144 forks source link

could not find driver {"exception":"[object] (PDOException(code: 0): #313

Closed michelmelo closed 3 years ago

michelmelo commented 3 years ago

[2021-03-27 11:12:11] production.ERROR: could not find driver {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/mysite/vendor/teamtnt/tntsearch/src/TNTSearch.php:82) [stacktrace]

0 /var/www/mysite/vendor/teamtnt/tntsearch/src/TNTSearch.php(82): PDO->__construct()

1 /var/www/mysite/vendor/teamtnt/laravel-scout-tntsearch-driver/src/Engines/TNTSearchEngine.php(155): TeamTNT\TNTSearch\TNTSearch->selectIndex()

2 /var/www/mysite/vendor/teamtnt/laravel-scout-tntsearch-driver/src/Engines/TNTSearchEngine.php(119): TeamTNT\Scout\Engines\TNTSearchEngine->performSearch()

3 /var/www/mysite/vendor/laravel/scout/src/Builder.php(308): TeamTNT\Scout\Engines\TNTSearchEngine->paginate()

nticaric commented 3 years ago

Can you make sure that you have sqlite driver installed?

sudo apt-get install php7.x-sqlite

Restart Apache

sudo service apache2 restart

Restart Nginx

sudo service nginx restart

After you install it, run <?php phpinfo(); ?>

If you find a section titled pdo_sqlite, it is confirmed that SQLite has been installed

michelmelo commented 3 years ago

tks