Support

Admin Tools

#42285 WAF

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.4.9
PHP version
8.2.29
Admin Tools version
7.6.2

Latest post by nicholas on Sunday, 21 September 2025 02:01 CDT

lcollong

Hello,

 

As per the screenshot, our adminTools WAF is configured to send an email each time a php exception occurs on the site. This is fine.

However, we run in a situation where the error was :


Exception Type: mysqli_sql_exception
File: /home/xubu0735/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php
Line: 309
Message: User xubu0735_userfed2025 already has more than 'max_user_connections' active connections

In this kind of situations, on a busy site, we've received several times hundreds of message (always the same). Thus, overshooting our per hour email quota (500/h). As a result several customers never received their mail.

This is a kind of "corner case" however it would be nice to have a parameter to limit the flow of error notification mails. Or a delay before sending. Each time an exception occurs, your software traps this and send a mail. It could check before sending if at least one minute (example) has last since the last email sent. If not : forget it. The mail and the data may be lost. But if it's assumed....

 

Thanks,

 

Laurent

 

 

nicholas
Akeeba Staff
Manager

Understanding the Exception‑Email Feature

When the exception‑handler runs, it means the site is already in a critical state – the database may be unreachable, disk space could be exhausted, external connectivity might be down, PHP memory may be depleted, or the host operating system could be terminating processes. Because of this, the code that powers the feature is pre‑loaded; it cannot rely on loading additional files or resources at the moment it fires.

What does the feature do?

It sends an email whenever a PHP exception occurs. These same exceptions are also written to your server’s error log (or PHP error log). You might wonder why you would need an email if the information is already in the logs. The answer is that, for particularly obscure exceptions, the email can include a full environment dump – details that are not present in the log – helping you to understand exactly what is happening.

When should you enable it?

Only when you are chasing a rare, hard‑to‑reproduce exception and you need that extra context to diagnose the problem. In those cases, the additional information can be invaluable.

Why it is not suitable for your current situation

Your error log shows a PHP exception stating that Joomla cannot connect to the database because the maximum number of database connections has been exceeded. This is a clear sign that the server is being overwhelmed with requests. Enabling the exception‑email feature in this scenario would cause the server to generate a large volume of emails on top of the already heavy load, effectively DoS‑ing yourself.

Recommended action

  1. Disable the exception‑email feature – it is not required for troubleshooting the “too many connections” issue and will only add unnecessary strain.
  2. Use the standard error logs to investigate the overload; consider implementing request throttling, checking for runaway scripts, or reviewing your server’s connection limits.
  3. If you later encounter an unusual exception that the logs do not explain, you can re‑enable the feature temporarily to capture the detailed dump, then disable it again once the issue is resolved.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!