Announcement

#1 2021-04-21 14:05:20

mulanee
Member
2006-11-25
38

piwigo causing crash through php error..

Hello/Hi/Greetings,

I have a message from my own server causing a crash

Code:

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

 

#2 2021-04-21 21:21:46

erAck
Only trying to help
2015-09-06
2026

Re: piwigo causing crash through php error..

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).


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-04-21 22:36:38

jnashpiwigo
Piwigo Team
2014-10-21
254

Re: piwigo causing crash through php error..

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

 

#4 2021-04-23 16:33:07

mulanee
Member
2006-11-25
38

Re: piwigo causing crash through php error..

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

 

#5 2021-04-23 18:51:21

jnashpiwigo
Piwigo Team
2014-10-21
254

Re: piwigo causing crash through php error..

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

 

#6 2021-04-23 21:43:40

erAck
Only trying to help
2015-09-06
2026

Re: piwigo causing crash through php error..

Fwiw, the Piwigo installer checks if the mysqli extension is loaded. So you later may have upgraded PHP without the extension.


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2021-04-26 12:19:25

mulanee
Member
2006-11-25
38

Re: piwigo causing crash through php error..

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact