Fixed Jobs triggered by CLI add-on enable/disable run in the context of the add-on being disabled

Affected version


Well-known member
When disabling/enabling add-ons via the CLI, any jobs queued by onActiveChange are run in the parent task where the add-on is disabled.

However, if enabling/disabling an add-on via the web, any jobs queued by onActiveChange run in the next web request where the add-on is enabled.

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.4).

Change log:
Run add-on onActiveChange method in a separate CLI process after transaction committed
Any changes made as a result of this issue being resolved may not be rolled out here until later.