Hello
I have a local microserver hp gen10+ under linuxmint 20.3/piwigo13.8
I upgrade piwigo to ver 14
everything was ok
i upgrade to linuxmint 21.0/php 8.1 and got
"fatal error: uncauaught error: clas "mysqli" not found in var/www/html/piwigo/include/dblayer
............
.../functions_mysql..inc.php on line 52"
any help will be appreciated
(addendum: from thread 1023-11-19 i revert to lm20.3 with timeshift)
Piwigo URL: http:// local network
Offline
You forgot to install the PHP mysqli extension.
Offline
hi,
your diagnosis is right. Thanks.
However, for the dashboard (administration) I got this:
"
Fatal error: Uncaught Error: Call to undefined function mb_substr() in /var/www/html/piwigo/admin/intro.php:397 Stack trace: #0 /var/www/html/piwigo/admin.php(346): include() #1 {main} thrown in /var/www/html/piwigo/admin/intro.php on line 397
"
piwigo/admin.php et /piwigo/admin/ come from the new version 14
I don't see where is the problem.
the rest of the gallery looks ok.
(additional note - not sure if this is the reason - : I encountered problems during the upgrade of lm20 to lm21 and apache2 did not work. I had to do sudo a2dismod php7.4 - sudo a2enmod php8.1 - systemctl restart apache2 and later sudo apt-get install php-mysql)
any help will be appreciated
Offline
You also forgot to install the PHP multibyte mbstring extension.
Offline
Use sudo apt-get install php8.1-mysql to install or enable the mysqli extension for PHP 8.1. Check that the PHP configuration file php.ini includes or loads the mysqli extension and after that restart the web server.
Offline