-
-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Describe the bug
When using Joomla 5.3.0 with Astroid (v3.2.1) and the Jollyany template, a fatal error occurs due to a call to WebAssetManager->useAsset() or addInline() after the WebAssetManager has already been locked by the system.
This throws an InvalidActionException with the message:
"WebAssetManager is locked, you came late"
The result is a 500 Internal Server Error, particularly when loading specific content pages.
To Reproduce
Steps to reproduce the behavior:
Go to one of the following URLs:
- https://www.nvsp.nl/sjogren-informatie-voor-partners-familie-en-vrienden
- https://www.nvsp.nl/informatie-voor-werkgevers-over-sjogren-of-non-sjogren-sicca
- https://www.nvsp.nl/informatie-uwv-over-sjogren-en-non-sjogren-sicca
Page attempts to render but crashes
See the 500 error
Stack trace reveals InvalidActionException related to WebAssetManager
Expected behavior
The affected pages should render without error. Astroid should inject inline CSS and typography styles before Joomla locks the WebAssetManager.
InvalidActionException: WebAssetManager is locked, you came late
System Informations (please complete the following information):
- Joomla Version: 5.3.0
- PHP Version: 8.3
- Astroid Version: 3.2.1
- Jollyany Template Version: 3.5.35
- Template Framework Version: 3.5.28
- Device: Laptop
- OS: Windows
- Browser: Chrome, Firefox, Edg (all affected)
Additional context
The trace shows the following relevant calls:
Astroid\Helper\Style::render()
Astroid\Component\Utility::typography()
These attempt to inject CSS after Joomla has locked asset injection, possibly during onAfterRender or within error template overrides.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
