JHTML-BEHAVIOR-FRAMEWORK-001

JHtml::_('behavior.framework')

behavior.framework (MooTools)

Joomla 4 removed MooTools. behavior.framework and SqueezeBox (behavior.modal) do not exist. The compatibility plugin does not restore them.

JHtml::_('behavior.framework')Do not load MooTools — use vanilla JS or WebAssetManager

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Architecture change — no auto-fixJavaScript

What you will see

  • Call to undefined method
  • SqueezeBox is not defined
  • MooTools is not defined

Symptoms people search

modal popup does nothing · click edit and nothing opens · mootools error in console

Replace this code

Swap JHtml::_('behavior.framework') for Do not load MooTools — use vanilla JS or WebAssetManager.

Joomla 3

Remove or stop calling this

JHtml::_('behavior.framework');
JHtml::_('behavior.modal');

Joomla 4 / 6

Use this instead

// Remove these lines. SqueezeBox and MooTools are gone.
// Use Bootstrap 5 modal or a <dialog> element.

How to fix it

  1. 1Delete behavior.framework, behavior.modal, behavior.caption, behavior.tooltip.
  2. 2Replace modal popups with Bootstrap 5 data-bs-toggle="modal" or HTMLHelper bootstrap.renderModal.
  3. 3Rewrite any MooTools JavaScript ($$, Fx, SqueezeBox) to vanilla JS.

Also known as

behavior.framework · MooTools · SqueezeBox · behavior.modal · behavior.caption · behavior.tooltip

There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.