todd
Host responded with this question: This error looks to be related to the number of simultaneous connections. Is each page opening up more than one connection to MySQL?
Anybody know the answer to this?
todd
Further response from host:
"The max_user_connections is set to 100, and your max open process limit is also 115. Are you expecting a traffic increase on the site lately? If so, it would account for the error (if more than 100 active MySQL connections try to be opened at the same time under your account, the error you are seeing is what would be generated)."
I just don't get it. I only use this site for photography and only a handful of friends know about it. It was fine until yesterday. Images I post to other forums to share wouldn't count to these connections would they? Even if they do, I have always done this since I first installed piwigo years ago..
todd
Right now there are 75 open processes and most of them are connecting to this page: /public_html/tmphillips/pg/picture.php
Any ideas why this would suddenly become an issue?
Katryne
Hello ! Maybe your site is invaded by robots. My smaller Piwigo was stuck like that last year and I had to Configure settings and plugins to give the website some breathing room. Have a look at the IP location plugin.
todd
Ok yeah, my host checked for me and they see an increased usage each month to the site, since a few months ago, and most of the traffic is originating from China. 5.7 million hits just this month to the site from China, and about 4.4 million of those hits are going to the picture.php and i.php files in my piwigo folder.
Can I just completely block China from within Piwigo? That would be ideal.
todd
Found a Piwigo plugin called IP Location that allows for country blocking.. Turned that on and will see how it goes...
kleiner_Hobbit
I had the same problem with my Piwigo websites. In the last few days and weeks there have been hundreds of thousands of accesses that have overloaded the server at my web space provider. The pages were then no longer accessible.
The plugin "IP Location" is not a solution because it does not reduce the PHP requests. DNS routing via Cloudflare would be a solution to prevent such attacks. Unfortunately this is not possible with my web host.
With the help of AI, I have now created an .htaccess that only allows users from Germany to access my website. the .htacces conditions are executed BEFORE the PHP processes. Foreign inquiries are immediately rejected.
Since I only have one private page, this restriction is acceptable for me.
todd
Interesting. The plugin has ~sort of~ been working for me so far. It says in the settings that it's working via htaccess but I wonder if your comment about php requests is still a factor impacting my site...
I don't get the max user error anymore but after half a day of it running I couldn't open the plugin settings anymore.. Just times out and returns a 403 page....
Then today a piwigo error on every page about my storage quota exceeded, which means many gigs of data got dumped somewhere. I still haven't been able to find it yet.. So I deleted the plugin and started it over again today and monitoring it.. 9000 pages refused already from China in just a few hours...
AI suggested a cloudflare WAF rule to me but my host can't do it because it's a shared server..
kleiner_Hobbit
So maybe I am wrong with the IP Plugin, when it works with .htaccess.
I will take another look at it!
jdd
Hello,
I had the exact same problem for some time now (a week?), with no or little change to my gallery
"jdanield_piwi983" already have more than allowed...
I don't have any such user
Hosted by o2switch, in France
Piwigo 16.4.0 Dernière version ?
Installé le 11 décembre 2009, il y a 16 ans 9 mois 2 semaines 6 jours
Système d'exploitation: Linux
Container info: (unofficial) Unknown
PHP: 8.1.34 (Montrer les informations) [2026-10-01 09:46:15]
MySQL: 11.4.13-MariaDB [2026-10-01 09:46:15]
Bibliothèque graphique: External ImageMagick 6.9.13-56
Taille du cache 28081.81 Mo calculé il y a 16 minutes Rafraîchir
details available if needed
Thanks
jdd