-1

I'm installing a theme on my php based ubuntu 22.04 server. I've installed all dependencies, the theme works fine but there's one section that's not working. The error is as follows:

[2023-08-20 15:19:24] production.ERROR: could not find driver (Connection: locations, SQL: pragma table_info("strings")) {"userId":1,"exception":"[object] (Illuminate\Database\QueryException(code: 0): could not find driver (Connection: locations, SQL: pragma table_info("strings")) at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:795) [stacktrace]

Going to inform me I saw that it is a pdo_mysql problem, in fact if I type

php -m | grep pdo_mysql

i get this:

PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20220829/pdo_mysql (/usr/lib/php/20220829/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20220829/pdo_mysql.so (/usr/lib/php/20220829/pdo_mysql.so: undefined symbol: pdo_parse_params)) in Unknown on line 0

I'm using Ubuntu 22.04, MariaDB 10.6 and php 8.2.9. Can someone help me? I tried all the solutions, enable the module from php.ini file, reinstall several times. I do not know what to do

0 Answers0