#1 2016-11-30 04:14:26

Kenny Stier

PHP MySQLi Error


My Piwigo site work great! Unless you try to do a lot of browsing in the gallery. If I give the server any kind of load at all (I start clicking around on different buttons) Something crashes and gives me this error


Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/ on line 67

Warning: my_error(): Couldn't fetch mysqli in /var/www/ on line 837

Warning: my_error(): Couldn't fetch mysqli in /var/www/ on line 837
Piwigo encountered a non recoverable error

[mysql error ]
Can't connect to server
#1 my_error /var/www/
#2 include_once /var/www/

Then every page of the gallery I try to view (even the Admin pages) give me an error similar to the one above. After waiting a few minutes, everything goes back to normal until I start doing many tasks with the gallery.

This is very odd, please help!

Piwigo version: 2.8.3
PHP version: 7.0.8-0ubuntu0.16.04.3
MySQL version: 5.7.16-0ubuntu0.16.04.1
Piwigo URL:
Webserver: Caddy -


#2 2016-11-30 10:55:29

Piwigo Team

Re: PHP MySQLi Error

your mysql server is either instable or has awful performances; or it comes from mysql itself
that's a system administration (sys admin) thing

To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do :
My gallery : an illustration of how to integrate Piwigo in your website



#3 2018-05-23 03:36:02


Re: PHP MySQLi Error

I ran into this error and I believe it was caused by my server running out of RAM. I added additional swap file pace and the issue appears to have been resolved.



Board footer

Powered by FluxBB

github twitter newsletter Donate © 2002-2022 · Contact