No Code Attached Yet
avatar ramalama
ramalama
2 Dec 2025

chosen.js got removed in 6.0 ( Tracker 45018) and the files are removed on upgrade from 5.4.

FormBehavior:chosen still exists and is deprecated, removal planned for 7.0 according to comment in code

I cannot find any notice of the removal in migrations doc

Also the deactivation of compat plugin in 5.4 did not point to this error.

The Example for the replacement in FormBehavior contains non working code: WebAssetManaget doesn't have a enableAsset method.

JHtml::_('formbehavior.chosen',[...]) is still used in com_weblinks and com_search

avatar ramalama ramalama - open - 2 Dec 2025
avatar ramalama ramalama - change - 2 Dec 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Dec 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Dec 2025
avatar ramalama ramalama - change - 2 Dec 2025
The description was changed
avatar ramalama ramalama - edited - 2 Dec 2025
avatar ramalama ramalama - change - 2 Dec 2025
The description was changed
avatar ramalama ramalama - edited - 2 Dec 2025
avatar dgrammatiko
dgrammatiko - comment - 7 Dec 2025

Removal of FormBehavior:chosen was planned for 6.0 but somehow slipped and then everything that wasn't removed in 6.0 got a new deprecation for 7.0 (#46367)

JHtml::_('formbehavior.chosen',[...]) is still used in com_weblinks and com_search

Weblinks doesn't use chosen (https://github.com/joomla-extensions/weblinks/tree/5.x-dev), com_search it is but I guess it's abandoned Nothing done the last 2 years (https://github.com/joomla-extensions/search/commits/main/)

avatar richard67 richard67 - change - 18 Jan 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-01-18 14:47:27
Closed_By richard67
avatar richard67 richard67 - close - 18 Jan 2026
avatar richard67
richard67 - comment - 18 Jan 2026

Closing as fixed for the core with PR #46367 . See also previous comment.

avatar ramalama
ramalama - comment - 18 Jan 2026

Sorry to disagree:
chosen.js got removed in 6. If I do a fresh 6 installation, there is not chosen.js anymore.
FormBehavior:chosen still exists (which it should not if chosen if fully removed already) and still tries to load chosen

->registerAndUseScript('joomla-chosen', 'legacy/joomla-chosen.min.js', [], [], ['chosen'])

Also the removal of chosen is still not in the migrations doc linked above.

Imho there is two solutions to it:

  • readd chosen.js into the legacy media and remove it along with FormBehavior:chosen in 7.0
  • remove FormBehavior:chosen in 6.X (since it is not working anyway) and add the removal to the migration doc.

"Its not used in the core anywhere" is imho a weak reason not to fix it.

avatar richard67 richard67 - change - 18 Jan 2026
Status Closed New
Closed_Date 2026-01-18 14:47:27
Closed_By richard67
avatar richard67 richard67 - reopen - 18 Jan 2026
avatar richard67
richard67 - comment - 18 Jan 2026

Reopened.

Add a Comment

Login with GitHub to post a comment