Hello/Hi/Greetings,
I have a message from my own server causing a crash
Fatal error: Uncaught Error: Class 'mysqli' not found in /volume1/web/ebgy.mooo.com/piwigo/include/dblayer/functions_mysqli.inc.php:52 Stack trace: #0 /volume1/web/ebgy.mooo.com/piwigo/include/common.inc.php(109): pwg_db_connect(___________________) #1 /volume1/web/ebgy.mooo.com/piwigo/index.php(11): include_once('/volume1/web/eb...') #2 {main} thrown in /volume1/web/ebgy.mooo.com/piwigo/include/dblayer/functions_mysqli.inc.php on line 52
What can I do?
It's happening with apache 2.4/php 7.2 and php 7.3
Piwigo URL: http://ebgy.mooo.Com/piwigo/
PS: It is amazing that the error message is showing my credentials !!
Last edited by mulanee (2021-04-21 17:44:50)
Offline
Install the PHP mysqli extension, in your case maybe php-mysql or php7.3-mysql
https://www.qwant.com/?q=PHP+"Fata … ound"
https://unix.stackexchange.com/a/525904
(taken from [Forum, post 175612 by erAck in topic 29924] [solved] piwigo not working after updating debian 9 to 10 which a forum search for Class 'mysqli' not found would had revealed).
Offline
And (if you haven't already) you might want to change your 'root' password asap, as the error gave that away kindly for you... ;-)
(I find it alarming as well...) <- saw your edit above...
Offline
Thanks everybody.
Mysqli was not ticked in my php setup :(
Changed the connection credentials, nevertheless I find it's critical to see the credentials publicly!
I don't know if it is because of piwigo or php ..
Offline
It's a php thing, it definitively is not Piwigo. Unfortunately, that is directly delivered by php and the absence of the extension that forces the error, it knows nothing of the value of the message.
Offline
Fwiw, the Piwigo installer checks if the mysqli extension is loaded. So you later may have upgraded PHP without the extension.
Offline
erAck wrote:
Fwiw, the Piwigo installer checks if the mysqli extension is loaded. So you later may have upgraded PHP without the extension.
Sure, I have updated php, so it is probably the reason.
Offline