JACCESS-GETACTIONS-001

JAccess::getActions()

JAccess::getActions()

getActions() was removed in Joomla 4. Load actions from access.xml.

JAccess::getActions()Access::getActionsFromFile() / getActionsFromData()

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Patch possible — review itJoomla API

What you will see

  • Call to undefined method Joomla\CMS\Access\Access::getActions

Symptoms people search

ACL actions empty · getActions undefined

Replace this code

Swap JAccess::getActions() for Access::getActionsFromFile() / getActionsFromData().

Joomla 3

Remove or stop calling this

$actions = JAccess::getActions('com_lms');

Joomla 4 / 6

Use this instead

use Joomla\CMS\Access\Access;
$actions = Access::getActionsFromFile(JPATH_ADMINISTRATOR . '/components/com_lms/access.xml');

How to fix it

  1. 1Switch to getActionsFromFile or getActionsFromData.

Also known as

getActions · access.xml

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.