Have a site with a large number of users (in the thousands).
In the console, go to the Contacts page.
The page loads just fine.
The page loads after a long time or not at all (the page times out).
Joomla 4, PHP 8.0
The root of the problem is:
When loading the Contacts page, the batch action contains a field that allows the selection of users (to batch associate contacts with users).
The user field used for the batch is found under: layouts/joomla/html/batch/user.php
It calls Joomla\CMS\HTML\Helpers\User userlist function, which queries ALL users, minus the blocked ones.
That's where if fails.
The issue actually exists in Joomla 3, but only after the batch modal has been opened (the page gets unresponsive then).
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Title |
|
Title |
|
I actually had a client using it, but to be honest, it is a niche case.
Labels |
Added:
bug
|
This can potentially happen with tags, modules, menus and categories as well but its much less likely that you would ever have enough to cause a problem.
I'm not even sure why there is even a batch functionality to associate multiple contacts to a single user. What is the real world usecase for this?