JDISPATCHER-CLASS-001

JDispatcher::getInstance()

JDispatcher / JEventDispatcher

The old dispatcher was removed in Joomla 4. Plugins should subscribe to events, not trigger JDispatcher.

JDispatcher::getInstance()Event dispatcher + SubscriberInterface

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

What you will see

  • Class "JDispatcher" not found
  • Class "JEventDispatcher" not found

Symptoms people search

plugin events never fire · trigger() fatal

Replace this code

Swap JDispatcher::getInstance() for Event dispatcher + SubscriberInterface.

Joomla 3

Remove or stop calling this

$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onFoo', $args);

Joomla 4 / 6

Use this instead

$dispatcher = Factory::getApplication()->getDispatcher();
// Plugins should implement SubscriberInterface

How to fix it

  1. 1Stop calling JDispatcher::getInstance().
  2. 2For plugins, implement SubscriberInterface::getSubscribedEvents().
  3. 3To dispatch, use the application dispatcher and Event classes.

Also known as

JDispatcher · JEventDispatcher · trigger(

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.