1

I recently ran into an inconsistency in the Joomla API. Creating a console plugin, which happens to trigger events in other plugins - I found myself unable to trigger a specific event on a live server after successfully testing it on a dev server.

Long story short, it turned out that I had set the access level for the triggered plugin to "Special" on the live server and the CLI plugin was unable to trigger its event.

This, to me, makes no sense. The CLI can create users, take the site on and offline, install and remove extensions, and more... But it can only trigger plugins in the public access level?

How does that make sense?

Edit: I'm not the first to notice this, this problem has existed since J3. The issue was closed because J4 was about to release - no actual fix was ever implemented.

https://github.com/joomla/joomla-cms/issues/16314

1 Answer 1

0

Pull request #44618, when merged in (hopefully) 6.0 adds a --user flag to the CLI, allowing it to run with the privileges of the named user.

https://github.com/joomla/joomla-cms/pull/44618

1
  • the pull request was NOT merged... Commented May 30 at 5:23

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.