No Code Attached Yet bug good first issue Performance
avatar Hackwar
Hackwar
2 Feb 2026

Steps to reproduce the issue

Create a popular tags module, enable debugging and go to a page that displays the module. See that the query to get the information of the popular tags is run twice.

The problem is, that Dispatcher::dispatch() of the module calls $this->getLayoutData(), which runs all the methods to get the data and when it then later calls parent::dispatch() the parent method calls that again. So we are running this unnecessarily twice.

avatar Hackwar Hackwar - open - 2 Feb 2026
avatar Hackwar Hackwar - change - 2 Feb 2026
Labels Added: bug Performance
avatar Hackwar Hackwar - labeled - 2 Feb 2026
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Feb 2026
avatar richard67
richard67 - comment - 2 Feb 2026

Can this cause issue #46751 ?

avatar richard67
richard67 - comment - 2 Feb 2026

P.S.: Especially this comment #46751 (comment) regarding the twice.

avatar Hackwar
Hackwar - comment - 2 Feb 2026

Nope, this isn't related.

avatar brianteeman
brianteeman - comment - 2 Feb 2026

confirmed

avatar Fedik
Fedik - comment - 3 Feb 2026

Please specify in which module it happen.
I do not see it in mod_articles and mod_custom for example.

It is a bug in the module itself.

avatar brianteeman
brianteeman - comment - 3 Feb 2026

as stated it is the popular tags module

avatar Fedik
Fedik - comment - 3 Feb 2026

Yes, just found, I had to read again, sorry 😄

avatar Fedik
Fedik - comment - 3 Feb 2026

The method dispatch() in this module need to remove.

And this code need to be moved to getLayoutData()

if (!\count($displayData['list']) && !$displayData['params']->get('no_results_text')) {
return;
}

Inside getLayoutData() it should return false to stop rendering.

avatar joomdonation
joomdonation - comment - 3 Feb 2026

Inside getLayoutData() it should return false to stop rendering.

PR, please :D.

avatar Fedik
Fedik - comment - 3 Feb 2026

I leave it for Students 😄
"Good first fix"

avatar chmst chmst - change - 3 Feb 2026
Labels Added: good first issue
avatar chmst chmst - labeled - 3 Feb 2026

Add a Comment

Login with GitHub to post a comment