Error "0 WebAssetManager is locked, you came...

Search
Other Bug Reports questions
Forum

Error "0 WebAssetManager is locked, you came late" in template preview with Modules Anywhere plugin enabled

Daniele's Avatar Daniele
Hi,
in my joomla 4.1.5 installation I have some free Regular labs extensions and one pro (conditional content). The template is Helix Ultimate v. 2.0.10.
This problem occurs: when I try to preview the template, I get this error message: 0 WebAssetManager is locked, you came late.
The error does not occur when I disable the System - Regular Labs - Modules Anywhere plugin.
How can I solve?
Thank you!

Regards,
Daniele
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
What do you mean with the template preview? Is that a feature in your Helix template?
Please post a rating at the Joomla! Extensions Directory
Daniele's Avatar Daniele
Hi,
Thanks for the reply.
I mean the preview of the template positions.
System -> Site Template Styles -> Ultimate helix shaper preview
See screenshot.
Peter van Westen's Avatar Peter van Westen ADMIN
Seems to me to be something specific to the Helix template. It doesn't happen on the core template. And the moments Modules Anywhere is normally triggered (and loads modules that can potentially load media through the WebAssetManager) is done at normal stages in the rendering process.
So my best guess is that the Helix template is doing so,mething a bit funky.
I recommend you ask them about it.
Please post a rating at the Joomla! Extensions Directory
Daniele's Avatar Daniele
OK, I'll ask ...
Thank you!
N Jayce's Avatar N Jayce
Hello,

Just to let you know that I have that issue also with a Yootheme template.

I wanted to add a CSS dynamically like this :
.uk-section-default.uk-section.uk-padding-remove-vertical{
display : none;
}

The result was this in the module
{source}<?php
$document->getWebAssetManager()->addInlineStyle('
.uk-section-default.uk-section.uk-padding-remove-vertical{
display : none;
}
');
?>{/source}

And then, got that error.
I usually insert CSS like this sometimes, in J!3 and sourcerer, but that seems not possible anymore now ?
Thanks 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
Can you reproduce it with the Joomla core templates?
(Making sure that module is also shown there)
Please post a rating at the Joomla! Extensions Directory
N Jayce's Avatar N Jayce
Hello,
Sorry for the late reply.
MY BAD !
I forgot to set the plugin activation on the module position !
All is working perfectly fine.
Thanks !
Peter van Westen's Avatar Peter van Westen ADMIN
So if you are using Modules Anywhere (or other extensions that could trigger media loading) inside ”Custom" modules, make sure the "Prepare Content" option is switched on.
Please post a rating at the Joomla! Extensions Directory
Daniele's Avatar Daniele
I believe that "Prepare content" is what in the Italian translation becomes "Interpreta codice plugin" (Interpret plugin code). Il may be useful to some other italian...

Thank you!

Regards,
Daniele
local galaxy's Avatar local galaxy
Thanks for following up on this and posting the fix, helped me!
You can only post on this forum if you log in