I have a site where modules are displayed in incorrect places. I am not sure when the issue was introduced. I restored backups until nov 1st, and the issue is still there.
The issue is that some modules, which should only display in one menu-item (combined with a rule that they should only display on page-type ArticleBlog) are shown on random other menu-items (including Single Article).
I even deleted a Condition and recreated it, but the issue remains the same.
See the confidential information for details
I see you are using YOOtheme Builder.
This could be an issue, where it uses its own way to render modules, and decide what should and shouldn't be displayed.
Can you reproduce the issue on a test site not using YOOtheme Builder?
This is the only site with the issue. I have some more sites that use Modules with Yootheme content, but none as heavy as this site. Note that I have just 3 sites with AMM installed, so I do not have a lot of reference. I have built this site in a time where dynamic content and Yootheme-templates were not yet built inside Yootheme, and the site is too complex to rebuild.
So far, this always used to work correctly.
Can you give me (s)ftp access so I can take a deeper look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
The module list is being passed to the onPrepareModuleList method in Advanced Module Manager, and AMM is filtering it out.
So on the AMM-side all is working.
But it looks like that altered module list is being ignored or overridden by something else.
So my guess would be: YOOtheme Builder
You say that the modules are being rendered through normal module positions.
But the YOOtheme template is using its own stuff for handling module positions.
My advice would be to ask them about this.
Otherwise, try to reproduce this on a simple clean Joomla website with just Advanced Module Manager installed.
And then throw the YOOtheme template in the mix to see if that causes the issues.
That would be a pity. Yootheme is a lot slower to respond than you 😉
I performed a quick test though, to see if the issue was indeed inside Yootheme:
I switched the site to use the Cassiopeia template and assigned the Builder module to template position Banner.
The module still displays in the incorrect pages.
As this is a live site, I only tested for a minute and switched back, but this does seem to indicate that the issue is not inside Yootheme, right?
To exclude other extensions, I have moved the site to a dev-site. I completely uninstalled Yootheme and switched to Cassiopeia again. The Builder modules obviously don't display, but I have created a Custom-HTML module using the same Condition as the Builder modules did.
I only use a few extensions on my sites: Akeeba, 4SEO, RSForm, but I also disabled those. So, only core extensions are installed now.
Still, the module shows on the incorrect place.
Correct me if I'm wrong, but this does seem to point to AMM?
Ok, this seems to be caused by a breaking change (bug) that has been introduced in the latest Joomla 5 release.
They seem to have added faulty checks that reset the module list when no modules should be shown.