No Code Attached Yet bug
avatar obuisard
obuisard
18 Jul 2023

Steps to reproduce the issue

Have a site with a large number of users (in the thousands).
In the console, go to the Contacts page.

Expected result

The page loads just fine.

Actual result

The page loads after a long time or not at all (the page times out).

System information (as much as possible)

Joomla 4, PHP 8.0

Additional comments

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

avatar obuisard obuisard - open - 18 Jul 2023
avatar obuisard obuisard - change - 18 Jul 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Jul 2023
avatar obuisard obuisard - change - 18 Jul 2023
Title
Admin: Contact view does not load whit a larger user base
Admin: Contact view does not load whith a larger user base
avatar obuisard obuisard - edited - 18 Jul 2023
avatar obuisard obuisard - change - 18 Jul 2023
Title
Admin: Contact view does not load whith a larger user base
Admin: Contact view does not load with a large user base
avatar obuisard obuisard - edited - 18 Jul 2023
avatar brianteeman
brianteeman - comment - 18 Jul 2023

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?

avatar obuisard
obuisard - comment - 18 Jul 2023

I actually had a client using it, but to be honest, it is a niche case.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41187.

avatar brianteeman brianteeman - change - 12 Aug 2023
Labels Added: bug
avatar brianteeman brianteeman - labeled - 12 Aug 2023

Add a Comment

Login with GitHub to post a comment