New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[J4.0] Errors when triggering onContentPrepare on object in onAfterRender #33979
Comments
This was made to prevent adding an assets after rendering. because the document is rendered and nothing can be added to it. Last chance to do anything with assets is I do not think that it is good idea to call Maybe try another event like |
I think I can deal with my current hurdle by using the onAfterRenderModules instead. |
|
Well, actually when rendering articles (or object disguised as articles). But I'll work my way around it. No problem. |
For an extension I have, I need to grab the article text from a certain article (different to the current article) and pas that through the content & system plugins via the
onContentPrepare
.:I need to do this during the onAfterRender stage.
This works fine in Joomla 3.
However, in Joomla 4 this causes issues with the emailcloak plugin that tries to load assets:
WebAssetManager->useAsset()
.The resulting error is:
So the question is:
Is this something that can be fixed? Or is there some other way that makes it possible to parse article objects through the plugins after the WebAssetManager gets locked without running into fatal errors?
The text was updated successfully, but these errors were encountered: