Skip to content

Astroid throws InvalidActionException: WebAssetManager is locked on Joomla 5.3.0 #1141

@Dnsftl

Description

@Dnsftl

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:

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.

Screenshots
Image

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

bugSomething isn't working

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions