No Code Attached Yet J3 Issue J4 Issue bug
avatar micheleramazza
micheleramazza
25 Feb 2022

Steps to reproduce the issue

Global cache OFF
insert mod_custom with ShowTitle->on Cache->off in footer
insert the same module with a {loadmoduleid xxx} into the page article.

Expected result

I expect one title for every module.

Actual result

The second module is render with 2 titles. Third time the module is render, 3 title. The html content of the module is replaced with the render of the first time the module has been rendered

System information (as much as possible)

not dependent

Additional comments

I have replaced from line 234 of /libraries/src/Helper/ModuleHelper.php
and it works (maybe the cache doesn't work):

234- foreach (explode(' ', $attribs['style']) as $style)
{
if ($moduleContent = LayoutHelper::render('chromes.' . $style, $displayData, $basePath))
{
$modulecontent = $moduleContent; //this is originally $module->content=...
}
}

	// Revert the scope
	$app->scope = $scope;

	$app->triggerEvent('onAfterRenderModule', array(&$module, &$attribs));

	if (JDEBUG)
	{
		Profiler::getInstance('Application')->mark('afterRenderModule ' . $module->module . ' (' . $module->title . ')');
	}

	return $modulecontent;

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar micheleramazza micheleramazza - open - 25 Feb 2022
avatar micheleramazza micheleramazza - change - 25 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 25 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Feb 2022
avatar chmst chmst - change - 28 Feb 2022
Labels Added: J4 Issue bug
avatar chmst chmst - labeled - 28 Feb 2022
avatar chmst chmst - labeled - 28 Feb 2022
avatar chmst chmst - change - 28 Feb 2022
Labels Added: J3 Issue
avatar chmst chmst - labeled - 28 Feb 2022
avatar brianteeman
brianteeman - comment - 23 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

I have however created a pull request for joomla 4 to fix this. #38571

avatar alikon alikon - change - 23 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-23 18:35:46
Closed_By alikon
avatar alikon alikon - close - 23 Aug 2022

Add a Comment

Login with GitHub to post a comment